Mob Action
Posted: Sat Mar 16, 2013 7:13 am
Hopefully this is the right place for it, if not apologies! Please move to the correct place and I'll do better next time!
Where would I find where mobAction is being set (for example where mobAction == ACTION_DEATH and mobAction == ACTION_NONE would be set after a mob has been killed).
The reason I ask is that I'm amending the Zilart Kings to have 30 minute mini windows, but I have noticed that at the moment the onMobDeath and onMobDespawn events are both raised before the mob has finished despawning, so if you try and pop the same mob again (eg you just killed faf and you want to respawn it in 21 hours), the respawn call in the LUA wont work because the system sees the mob as already being spawned (action != 0 or 24).
Ive had a look through the code and headers etc, I can see where the LUA scripts are being called, but not where that call is being called from or when the actions are set.
Where would I find where mobAction is being set (for example where mobAction == ACTION_DEATH and mobAction == ACTION_NONE would be set after a mob has been killed).
The reason I ask is that I'm amending the Zilart Kings to have 30 minute mini windows, but I have noticed that at the moment the onMobDeath and onMobDespawn events are both raised before the mob has finished despawning, so if you try and pop the same mob again (eg you just killed faf and you want to respawn it in 21 hours), the respawn call in the LUA wont work because the system sees the mob as already being spawned (action != 0 or 24).
Ive had a look through the code and headers etc, I can see where the LUA scripts are being called, but not where that call is being called from or when the actions are set.