There is a bug in the quest code. The fixed code works as it's supposed to. It returns the item that was chosen in the chooserandom statement...
This is the code (and fix) for the Doran Vargnus quest (Doran_Vargnus.pl)
original code:
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 13995 =>1 )) {
quest::say("Thank you, here is your reward.");
quest::ChooseRandom(3301,3048,3042,3050,3044,20809,7012,3103,3111,3110,7015);
}
plugin::return_items(\%itemcount);
}
Fixed code:
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 13995 =>1 )) {
quest::say("Thank you, here is your reward.");
quest::summonitem(quest::ChooseRandom(3301,3048,3042,3050,3044,20809,7012,3103,3111,3110,7015));
}
plugin::return_items(\%itemcount);
}