View Full Version : multi-class armor quest
Aonelyn
07-07-2008, 06:49 PM
sub EVENT_ITEM
{
if ($itemcount{17} == 1 && $class eq 'Paladin,Bard')
{
quest::summonitem (18);
quest::shout("Congratulations $name");
}
}
how could i get this to work?
AndMetal
07-07-2008, 07:02 PM
Try this:
sub EVENT_ITEM {
if ($itemcount{17} == 1) {
if ($class eq "Paladin" || $class eq "Bard") {
quest::summonitem(18);
quest::shout("Congratulations $name");
}
} else {
plugin::return_items(\%itemcount);
quest::say("WRNG ITMZ FTWZ!!1");
}
}
You could also do it this way (all on 1 line):
sub EVENT_ITEM {
if ($itemcount{17} == 1 && ($class eq "Paladin" || $class eq "Bard")) {
quest::summonitem (18);
quest::shout("Congratulations $name");
}
}
Hope this helps.
trevius
07-07-2008, 08:02 PM
I had issues with getting some of these to work as well, but I finally got them all working. You might be able to find some good examples in the Custom Quests section of the forums. Here are some examples of quests I posted there for class specific rewards:
http://www.eqemulator.net/forums/showthread.php?t=24921
http://www.eqemulator.net/forums/showthread.php?t=24321
Aonelyn
07-07-2008, 09:49 PM
Thanks guys.
Andmetal,Trevius Thanks for the fast responses.
You guys are a great part of this community.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.