Making a Npc Despawn
Writing a code for a simple quest trying to make the npc despawn and start respawn timer when item is turned in. Currently the npc wont despawn. Any clues what I missed?
Code:
sub EVENT_SAY { |
For the '$mob->Depop(StartSpawnTimer);' portion try this:
Code:
$npc->Depop(1); |
quest::depop(npc_type_id) # A single mob will de-spawn and not start the spawn timer.
This command will also work. The quest command happens to be the one I use for the depops I've worked with on my server. Alternatively: quest::depop_withtimer(npc_type_id) # A single mob will de-spawn and start the spawn timer. This one will apply the timer if you ever need it to. |
Worked perfectly KK ty sir flawless as always. Ty for the suggestion Leet,was going to give those a shot first but was worried as I have about 10 total mobs all with different ID's and really didnt feel like making a quest for each one,and was worried applying quest based on name could make wrong npc despawn,or all of them.
|
One more question. How can I make the turn in update a task? Was looking at the wiki but theres not a whole lot of break down on this.
|
Try this:
Code:
sub EVENT_ITEM { |
All times are GMT -4. The time now is 11:52 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.