View Single Post
  #7  
Old 09-04-2004, 02:43 PM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

Pay closer attention to where you are putting your brackets. Look at Charmy's example above. Also, you might want to try something like this to eliminate duplicate code (untested):

Code:
if ($text =~ /hail/i)
{
   if ($class eq "Rogue")
   {
      if ($ulevel > 64)
      {
         quest::say ("you're over 64!");
      }
      else
      {
         quest::say ("you're not over 64!");
      }
   }
   else
   {
      quest::say ("begone! you're not a rogue!");
   }
}
Also, if you do not know what is causing a problem with your perl, run it with perl, rather than through the emu!
Reply With Quote