View Single Post
  #3  
Old 05-20-2005, 12:58 PM
_Kerosh_
Sarnak
 
Join Date: Nov 2004
Posts: 59
Default

woah, first
if($text=~/truth is good/i && $class == 'Paladin')
that should be an elsif
Also, you might want to re-format
elsif(($text=~/truth is good/i) && ($class eq "Paladin"))

Ya, you want to use eq when it is letters. " " works around Paladin, and ' ' works too. I always use " "

after all functions, always use a ; to end it, such as:
quest::say("Pleased to meet you.");
Notice the ; at the end. Without that you will get a crap load of syntax errors. Do not use it after if statements, elsif statements, or else statements.
This what you had:
quest::say("Pleased to meet you $name, if you are a newcomer to Freeport then you can clearly see we are having quite the rat problem. If you are interested the militia has granted me some coin to reward those that bring me four rat whiskers.")

Ok, next
A possible problem could be
else
{
}
not sure as use that, I always use elsif, it much easier .

Another problem, did you want the guy to spawn? I suggest making an origin spawn in some random GM Box (Origin Spawn is using the #spawn command), then spawning that origin spawn's NPC ID. That should be about it ^^
__________________
Fate Industries Admin
Reply With Quote