spider661
06-22-2008, 05:14 PM
sub EVENT_ITEM
{
if (plugin::check_handin(\%itemcount, 1389 => 1) && $epic15 == 3)
{
quest::say("Good report to Sergeant Zind and see if he needs any help. Here you hang onto the jewel for safekeeping.");
quest::summonitem("1389");
quest::setglobal("epic15", 4, 5, "F");
}
else
{
quest::say ("Hang on to this");
plugin::return_items(\%itemcount);
}
}
it should take an item with id 1389 if you have the quest and give it back and if you don't have the quest give it back say he don't need it and if you already done the quest give it back then if you give him an item he don't need he should give it back.
i have tried it 4 diff ways he takes the item if you have the quest and gives it back if you give him the wrong item he gives it back but if you give him the quest item and you have already don't the quest or are not at this point yet he will not give it back.
with the way it is above he don't even say anything just takes the item if you don't have the quest.
whats up?
{
if (plugin::check_handin(\%itemcount, 1389 => 1) && $epic15 == 3)
{
quest::say("Good report to Sergeant Zind and see if he needs any help. Here you hang onto the jewel for safekeeping.");
quest::summonitem("1389");
quest::setglobal("epic15", 4, 5, "F");
}
else
{
quest::say ("Hang on to this");
plugin::return_items(\%itemcount);
}
}
it should take an item with id 1389 if you have the quest and give it back and if you don't have the quest give it back say he don't need it and if you already done the quest give it back then if you give him an item he don't need he should give it back.
i have tried it 4 diff ways he takes the item if you have the quest and gives it back if you give him the wrong item he gives it back but if you give him the quest item and you have already don't the quest or are not at this point yet he will not give it back.
with the way it is above he don't even say anything just takes the item if you don't have the quest.
whats up?