Page 1 of 1

Spawns - Min/Max Level

Posted: Sat May 30, 2009 1:31 pm
by Scatman
Did the min/max level fields for spawns ever work? I notice we have some cases where the spawns are exactly the same except their levels differ by 2 or 3 levels. We are currently making 3 different IDs for this, when every other attribute is exactly the same. So in cases where a cave serpent can spawn and be level 9, 10, or 11, we have to spawn 3 and combine them into a spawn group with a 33.33% chance to spawn. That is fine, but once we start having a cave serpent, a rat, or a spider that can spawn at each spawn point, it'll get ugly combining 3 cave serpents, 3 rats, and 3 spiders into one spawn group and adjusting their spawn percentage accordingly.

Re: Spawns - Min/Max Level

Posted: Sun May 31, 2009 6:46 am
by LethalEncounter
It will after I check my changes in.

Re: Spawns - Min/Max Level

Posted: Sun May 31, 2009 7:48 am
by LethalEncounter
One question though: Would you want me to modify the given HP/Power based on the level if you give a min_level and max_level, or just treat the HP/Power as the same for both?

Re: Spawns - Min/Max Level

Posted: Sun May 31, 2009 7:59 am
by Scatman
Modify the hp/power based respective to the level if ya can.

Re: Spawns - Min/Max Level

Posted: Sun May 31, 2009 9:14 am
by John Adams
LE, would it help any to change the spawn.hp and spawn.power fields to maybe spawn.min_hp, spawn_min_power and add a max option?

If I had my way, I'd do away with these values in the DB completely, especially if you are going to ask World to determine NPC HP/Power based on it's min/max level. Those fields always left me - nervous.

And I've always craved a spawn_details table as well... matching how characters and character_details work. Don't mobs have resists, and special abilities? Not to add too much onto this request... just asking.

Re: Spawns - Min/Max Level

Posted: Sun May 31, 2009 10:04 am
by Zcoretri
John Adams wrote:....
And I've always craved a spawn_details table as well... matching how characters and character_details work. Don't mobs have resists, and special abilities? Not to add too much onto this request... just asking.
Yes they do John

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 6:47 am
by John Adams
LE/Scatman, if this is fully implemented (min/max level + HP/Power calcs), I can close the request.

This and size_offset seem to work great. Just not sure if we gave you adequate feedback on HP.

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 2:23 pm
by LethalEncounter
I haven't added the code to handle different hp/power yet.

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 2:58 pm
by ZexisStryfe
I actually have a question regarding mob HP...

As a high end raider, one thing I notice is that on live, a lvl 86 x4 "trash" mob might have 4 million hp, however a lvl 86 x4 "boss" mob may have upwards of 12 million. If the emulator is determining HP by lvl, how do we compensate for this?

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 3:16 pm
by LethalEncounter
We could base the hp/power calculations based on it's level and the difficulty of the spawn. Anyone know where I can get some combat stats for a decent variety of spawns?

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 3:17 pm
by Scatman
For special spawns the HP/Power can be directly modified too.

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 3:20 pm
by ZexisStryfe
LethalEncounter wrote:We could base the hp/power calculations based on it's level and the difficulty of the spawn. Anyone know where I can get some combat stats for a decent variety of spawns?
See that's the thing. Both these mobs are the same level (86)and difficulty (Epicx4) but have vastly different amounts of HP.

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 3:21 pm
by ZexisStryfe
... and just because I wanted to hit 500 posts :P

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 3:34 pm
by LethalEncounter
lol, ahh I misread your post. I thought you were saying the difference between a regular trash mob and a heroic.

Re: Spawns - Min/Max Level

Posted: Tue Jun 02, 2009 4:34 pm
by John Adams
Then it sounds like Zexis brings up a good argument for *not* letting World determine stats on-the-fly, but to store them as we would character details (which we are discussing in another thread).

Anyway, I think the min/max request is closed. Works fine. The HP/Power + other stats, we'll cover coming soon.

Thanks LE!