Quote:
Originally Posted by shaznito
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 13953 => 3) && $gold == 30) {
quest::say ("You are one lucky bixie buster. I just made a batch of honey jum. Here. No waiting for you. One jar for your good work. Bye, now!");
quest::summonitem(13952);
quest::faction(218,5);
quest::faction(77,5);
quest::faction(133,5);
quest::faction(208,5);
quest::faction(48,-5);
quest::exp(50);
}
plugin::return_items(\%itemcount);
quest::say("This is not all!! Kizzie says, three honeycombs and thirty gold coins!! Oooh!! They never listen.");
}
|
If I'm not mistaken, I believe you need to put the plugin::return_items & quest say into an else statement, otherwise it will not only return the leftover items every time, but also the return dialogue.
I think an overarching solution to this is to modify plugin::return_items to return values like check_handin does, that way, you can do something like this:
Code:
if (plugin::return_items(\%itemcount)) {
quest::say("Steempy, you eediot! I don't need these items!!");
}
I tried to do this a while back, but for some reason, I couldn't get any positive values returned. Then again, I'm also not sure if world needs to be restarted to have the plugin scripts reloaded.