Quote:
#this command isn't working. maybe quest::return_items returns a false value when it gives soemthing back.
quest::say("These are not the pieces I need.");
}
}
|
That command does work, just doesn't for some reason in this specific quest, here is another quest I have that works perfect.
Code:
sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Hail $class , How are ye today? If it's armor your wanting I'm your man. I have all the materials except a mold. If you can bring me a Mold I'll make you the best armor I've got. If it is a weapon you seek then you should speak to my brother.");
}
}
sub EVENT_ITEM {
if(plugin::check_handin(\%itemcount, 16346 =>1)) { # tunic
quest::summonitem(4154);
quest::exp(500);
quest::emote("Bort smiles warmly as he hands you your reward.");
quest::say("Enjoy Your new Breastplate");
quest::ding();
}
elsif(plugin::check_handin(\%itemcount, 16343 =>1)) { # sleeves
quest::summonitem(4155);
quest::exp(500);
quest::emote("Bort smiles warmly as he hands you your reward.");
quest::say("Enjoy Your new Vambraces");
quest::ding();
}
elsif(plugin::check_handin(\%itemcount, 16344 =>1)) { # leggings
quest::summonitem(4158);
quest::exp(500);
quest::emote("Bort smiles warmly as he hands you your reward.");
quest::say("Enjoy Your new Leggings");
quest::ding();
}
elsif(plugin::check_handin(\%itemcount, 16345 =>1)) { # gauntlets
quest::summonitem(4157);
quest::exp(500);
quest::emote("Bort smiles warmly as he hands you your reward.");
quest::say("Enjoy Your new Gauntlets");
quest::ding();
}
elsif(plugin::check_handin(\%itemcount, 16299 =>1)) { # cap
quest::summonitem(4153);
quest::exp(500);
quest::emote("Bort smiles warmly as he hands you your reward.");
quest::say("Enjoy Your new Cap");
quest::ding();
}
elsif(plugin::check_handin(\%itemcount, 16297 =>1)) { # bracers
quest::summonitem(4156);
quest::exp(500);
quest::emote("Bort smiles warmly as he hands you your reward.");
quest::say("Enjoy Your new Bracer");
quest::ding();
}
elsif(plugin::check_handin(\%itemcount, 16298 =>1)) { # boots
quest::summonitem(4159);
quest::exp(500);
quest::emote("Bort smiles warmly as he hands you your reward.");
quest::say("Enjoy Your new Boots");
quest::ding();
}
else {
plugin::return_items(\%itemcount);
quest::say("I can't do anything with this item! You can have it back.");
}
}
I do appreciate you taking the time to help with this quest though, honestly it was starting to drive me nuts.