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);
}
	}