View Single Post
  #1  
Old 05-23-2011, 10:04 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default add functinoality to quest::depop()

quest::depop does not cause the respawn timer for a NPC with a respawn timer to kick in.

Here is an example from Manaetic_Behemoth.pl
Code:
quest::spawn2(206074,0,0,$x,$y,$z,0);
quest::depop();
#update spawn timer after depop or mob will repop when zone resets
#quest::updatespawntimer(spawn2.id,(int(rand(DB_Variance))+DB_Respawn-(DB_Variance/2))*1000); #variance setting
quest::updatespawntimer(42135,(int(rand(25920))+129600-(25920/2))*1000); #respawn with variance
Could we get 2 optional parameters added to quest::depop?

1: BOOL
FALSE = Default. Just depop. Current functionality.
TRUE = Use Respawn time and variance in DB if parameter 2 is not present or = 0

2: INT
A respawn timer passed by quest script, only used when optional parameter 1 is present and = TRUE. This is useful for various PoP bosses who have shortened respawn tiemrs on event failure.
Reply With Quote