View Single Post
  #8  
Old 06-18-2011, 04:07 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Ok, I think I fixed it then; running some final tests before committing. Depop with true was resetting the timer, but not writing it to the database. So if you did #repop, waited for the normal respawn time, or the zone was reset, the NPC would respawn. I changed it so that setting it true will restart the clock. Default is changed to false. Here are the methods:

quest::depop(id) - NPC id optional. Depops the NPC and does not reset the timer. As long as zone is up or until #repop is done, NPC stays depopped.
$npc->Depop() - Reset is optional and defaulted to false. This acts just like the quest::depop() method.
$npc->Depop(1) - Depops the NPC as if it were killed. NPC will repop based upon normal spawntimer value.

There is also still the quest::dis(en)able_spawn2 which I didn't change.
Reply With Quote