EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   multi-class armor quest (https://www.eqemulator.org/forums/showthread.php?t=25646)

Aonelyn 07-07-2008 06:49 PM

multi-class armor quest
 
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:

Code:

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):

Code:

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.


All times are GMT -4. The time now is 03:17 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.