First, let me state that i did not experiment any of these things, it's just the way i understand it works.
Mobs are spawned when their respawn timer ends up. When killed or depops, they are marked for respawn after respawn_time (as defined in the database).
the EVENT_SPAWN is a script routine that is called when a mob is spawned, as a side effect. It may or may not have any consequence, it doesn't change the above rule.
When using a script as described above, you simply force depop time at a given time (or after a given time). When you quest::depop() in the script, it just tells the server to depop. I think this starts the respawn_timer countdown.
Well, if anyone has experience about this matter, or time to trace the code, it would be 10000 times more valuable than the few above forecasts. It might just be that way.
|