Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:10 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3