View Single Post
  #3  
Old 01-28-2008, 03:51 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

I think you're looking for $npc->Kill().

Example:
Code:
sub EVENT_SAY {
	if ($text=~/kill yourself/i) {
		quest::say("As you wish, oh great one");
		$npc->Kill();
	}
}
Found here: QuestObjects (Wiki).

Something interesting about the quest system is that, basically, the quest:: commands are wrappers for the commands listed in the above Wiki article. For example, you can make an NPC say something using $npc->Say(), although that one in particular takes an additional option (format).
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote