Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2006, 05:59 PM
Zengez
Hill Giant
 
Join Date: Nov 2004
Posts: 160
Default

Ok, apparently the above doesn't work but this does...

if ($itemcount{8205} == 1)
{
if ($class eq "Warrior"){quest::summonitem ("60332");}
if ($class eq "Cleric"){quest::summonitem ("20076");}
if ($class eq "Paladin"){quest::summonitem ("48147");}
if ($class eq "Ranger"){quest::summonitem ("62649");}
if ($class eq "Shadowknight"){quest::summonitem ("48136");}
if ($class eq "Druid"){quest::summonitem ("62880");}
if ($class eq "Monk"){quest::summonitem ("67742");}
if ($class eq "Bard"){quest::summonitem ("77631");}
if ($class eq "Rogue"){quest::summonitem ("52348");}
if ($class eq "Shaman"){quest::summonitem ("57405");}
if ($class eq "Necromancer"){quest::summonitem ("64067");}
if ($class eq "Wizard"){quest::summonitem ("16576");}
if ($class eq "Magician"){quest::summonitem ("19092");}
if ($class eq "Enchanter"){quest::summonitem ("52962");}
if ($class eq "Beastlord"){quest::summonitem ("57054");}
if ($class eq "Berserker"){quest::summonitem ("18609");}
}

So, the programmer in me dies a little inside using all those if statements instead of else if but i can't seem to get the else to work without killing it entirely, so i'm not really sure.
Reply With Quote
  #2  
Old 08-20-2006, 07:31 PM
ylosh
Sarnak
 
Join Date: Jan 2006
Posts: 39
Default

elsif is the cheese for perl..
Reply With Quote
  #3  
Old 08-21-2006, 09:04 AM
Thristam
Hill Giant
 
Join Date: Jun 2006
Posts: 117
Default

Ylosh is correct. You must use elsif "else if" does not work.
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:18 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