Multiple item return on single item handin
Npc seems to skip the quest:summonitem part and goes right to the end where it hands me back my item.
Code:
sub EVENT_SAY |
Hmm, try trying an elseif instead of an else?
|
There should only be one EVENT_ITEM subroutine per quest file. You need to combine them all into one. Then place each valid turn in combination in an if clause.
Code:
If (plugin::check_handin(...)) { when the routine is finished, it will check to see if there are still any items that were turned in but not needed. If so, it will return them. If you want to allow for multiple quests to be completed with a single hand in, just change the elsif to an if. Each step will remove any items it needed from the turn in. Nothing will be returned to the player unless you either explicitly summon it and/or use the return_items plugin. |
Thanks ! I'll try that.
|
All times are GMT -4. The time now is 11:14 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.