View Single Post
  #1  
Old 04-08-2015, 01:22 PM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default 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 {
	if($text=~/hail/i) {
		quest::say("Free me!");
	} 
	}
	
	
	
	sub EVENT_ITEM { 
	if(plugin::check_handin(\%itemcount, 19697 => 1)) { # Key
		quest::say("Thank you $name!");
	$mob->Depop(StartSpawnTimer);
		}
			plugin::return_items(\%itemcount);
}
	}
__________________
Owner and Developer - Everquest: A New World
Reply With Quote