Check if all mobs are dead and spawn a new mob
Hey everyone,
Trying to make a BossPQ type thing on our server, and needed a bit of help.
How it works is you are warped to a map based on your level range, then a boss spawns, then once you kill it, a new higher level one spawns, and once you kill that another higher level one than before spawns, and so on.
Question is, how could I make this work? It obviously involves:
- To check if all mobs (i.e. current boss) are dead.
- Spawn a new boss.
I know how to do this if the player clicks on an NPC and to check if the current boss is dead, and then spawn it for themselves. But that gives them time to regenerate and so on. We want it to be non-stop and crazy.
How could this be done?
Thanks all!
Re: Check if all mobs are dead and spawn a new mob
Add something in the die function of the mob. If mob with x id dies, spawn a new one immediately.
Re: Check if all mobs are dead and spawn a new mob
Would work. But what if we're hosting events or something? I want that case to be true only in the specified map.
Re: Check if all mobs are dead and spawn a new mob
Quote:
Originally Posted by
Drum
Would work. But what if we're hosting events or something? I want that case to be true only in the specified map.
Then check for the Map ID as well x).