bruise
10-31-2011, 11:26 PM
I'm currently having an issue with my quests where the "summonitem" part of the quest won't work. It works on all other npc's in the game but when I create a new npc and load the quest onto the npc, everything works great except the player doesn't receive the item. I have tried rebooting the server, turning qglobals on/off, etc. Below is one of GeorgeS' example quests and when I summon the items, the NPC says "This is yours..etc" but the item is not received.
tl;dr: I'm using GeorgeS quest editor. Everything works fine except when I give a new quest to a newly created npc.
#Multiple item turn in And a reward issued
sub EVENT_SAY {
if ($text =~/Hail/i) { quest::say ("I need 1 Metal Bits, 1 Metal Twine and 1 ruby to make your ruby crown"); }
}
sub EVENT_ITEM
{
if (plugin::check_handin(\%itemcount, 16905 => 1, 16857 => 1, 10035 => 1))
{
quest::emote("removes a item from his pocket.");
quest::say("This is yours. Care for it well!");
quest::SummonItem(10051); #ruby crown
}
}
Thanks!
tl;dr: I'm using GeorgeS quest editor. Everything works fine except when I give a new quest to a newly created npc.
#Multiple item turn in And a reward issued
sub EVENT_SAY {
if ($text =~/Hail/i) { quest::say ("I need 1 Metal Bits, 1 Metal Twine and 1 ruby to make your ruby crown"); }
}
sub EVENT_ITEM
{
if (plugin::check_handin(\%itemcount, 16905 => 1, 16857 => 1, 10035 => 1))
{
quest::emote("removes a item from his pocket.");
quest::say("This is yours. Care for it well!");
quest::SummonItem(10051); #ruby crown
}
}
Thanks!