View Single Post
  #6  
Old 07-31-2004, 03:37 PM
bbum
Banned
 
Join Date: Apr 2004
Posts: 245
Default

Quote:
sub dwarfsay{
if($text =~ /Dwarves smell/i){
quest::say("How dare you insult our noble race !!!");
quest::shout("Smell my hammer, then !");
quest::attack($name);
return 1;
}
return 0;
}
what is return 1 and return 0 i dont understand, will this not work?


Quote:
sub EVENT_SAY{
if ($text=~ /Hail/i){quest::say("Do you accept the mission or do you wish to leave?");}
if ($text=~ /leave/i){quest::say("How unfortunate.");
quest::attack($name);
}

}
Reply With Quote