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.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-22-2004, 03:54 PM
hypershadow66
Banned
 
Join Date: Nov 2003
Posts: 335
Default $class == warrior?

Sorry. was fixed =/
Reply With Quote
  #2  
Old 08-22-2004, 03:59 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default Re: $class == warrior?

Quote:
Originally Posted by hypershadow66
The lines are this

Code:
}
 if (($itemcount{22} == 4) && ($class == WARRIOR))
{
quest::say("Thank you Warrior for your help.  Here is a mighty sword for your troubles!");
quest::summonitem(23);
}
 if (($itemcount{22} == 4) && ($class == CLERIC))
{
quest::say("Thank you Cleric for your help.  Here is a mighty mace for your troubles!");
quest::summonitem(24);
}
but it doesnt work? The class names where tried in all caps/lower caps, etc. and still didnt work. What should be done to fix this?
Try:
Code:
}
if($itemcount{22} == 4)
  {
  if($class == Warrior)
    {
    quest::say("Thank you warrior for your help. Here is a mighty sword for your troubles.");
    quest::summonitem(23);
    }
  if($class == Cleric)
    {
    quest::say("Thank you cleric for your help. Here is a mighty mace for your troubles.");
    }
  }
} 
#
#Last } closes sub EVENT_SAY so remove it if not done
#
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
Reply


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 12:00 AM.


 

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