View Single Post
  #6  
Old 03-29-2004, 04:44 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

Quote:
Originally Posted by xtestx
sub EVENT_SAY{
if($mname =~ /^King_Phil/{

if($text=~/Hail/i){quest::say("Greetings $name.");}
}
}

#your standard default.pl EVENT_SAY behavior
}
Should be:

Code:
sub EVENT_SAY
{ 
  if(($mname =~ /King_Phil/) && ($text=~/Hail/i))
  { 
    quest::say("Greetings $name.");
  } 
}
Quote:
Originally Posted by xtestx
and save that in notepad as what type of file again? then put it in the quests folder? and is $zonesn a folder or...?
Read the sticky. Save it as NPCID.pl in the folder relevant to the zone's short name of where the NPC is. So if King_Phil is in East Freeport and had ID of 546 the file would be: C:\EQEMu\quests\freporte\546.pl.

By $zonesn I meant the short name of the zone. To find it out, see the zone names list or use $zonesn in Perl as a variable.
__________________

kRPG Profile
Reply With Quote