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 10-13-2008, 02:41 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Quote:
if ($class eq 'Warrior' || $class eq 'Rogue' || $class eq 'Monk' || $class eq 'Berserker' || $class eq 'Shadowknight' || $class eq 'Paladin' || $class eq 'Ranger' || $class eq 'Bard' || $class eq 'Beastlord' || $class eq 'Cleric' || $class eq 'Druid' || $class eq 'Shaman' || $class eq 'Wizard' || $class eq 'Magician' || $class eq 'Enchanter' || $class eq 'Necromancer')
Is there a time that they would not be one of these classes? You are just doing a test, not defining anything.
Reply With Quote
  #2  
Old 10-13-2008, 03:03 AM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

from what I can see the the primary problem all along was that you kept using

$class == "Wizard"

instead of

$class eq 'Warrior'
Reply With Quote
  #3  
Old 10-13-2008, 03:33 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Quote:
Originally Posted by joligario View Post
Is there a time that they would not be one of these classes? You are just doing a test, not defining anything.
You know, I would think the same thing, but I can not get it to work without setting it up that way. I think it needs to check the class first so it knows which reward to summon. Otherwise, it doesn't want to do the class check for my rewards after the rewards are defined.

And ya, if you aren't using a numeric value, you have to use eq instead of ==.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #4  
Old 10-14-2008, 03:03 AM
paaco
Discordant
 
Join Date: Jan 2005
Posts: 320
Default

Using the last code you posted Trevius, I can't seem to figure out why but...

Shadowknight = Quest works 100%
Druid = Nothing happens, Eats the item
Warrior = You get the first reward on the list for Warriors
Every other class tested = eats the item...tested Ranger, Mage, Necro
Reply With Quote
  #5  
Old 10-14-2008, 03:51 AM
paaco
Discordant
 
Join Date: Jan 2005
Posts: 320
Default

fixed using my earlier version of the quest, replaced all of the == with eq and it works fine.
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 08:39 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