View Full Version : $class == warrior?
hypershadow66
08-22-2004, 03:54 PM
Sorry. was fixed =/
Cisyouc
08-22-2004, 03:59 PM
The lines are this
}
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:
}
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
#
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.