View Single Post
  #10  
Old 06-25-2008, 09:08 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

i think you have an icorect follow up of elses and ifs in first part

there can only be ONE else inside a single if and i belvie you have incorect open closed brakets

Code:
sub EVENT_SAY 
{  - OPENED
if($text=~/hail/i)
{ - OPENED
if(plugin::check_hasitem($client, 13732))
{ - OPENED
quest::say("What is this? You bring good tidings indeed, $name! Give me the item.");
}  - CLOSED
else
{  - OPENED
quest::say("Do you not see I have enough [trouble] already? Your welcome here is doubtful");
}  - CLOSED


- MISSING CLOSEING BRAKET HERE

if($text=~/trouble/i)
{
quest::say("I sense my will is being bent by some [evil].");
}
if($text=~/evil/i)
{
quest::emote("mumbles inaudibly; his eyes stare blankly");
}
}

}  - WRONGLY PLACED BRAKET
Reply With Quote