Help with item turn in quest
I need help with a simple turn in.
In the script below you can give npc one out of many possible items, and then I want npc to give it right back to you. If this would be just 1 item, it would be easy... Suggestions? Code:
sub EVENT_ITEM |
In your if check, don't use the plugin and it won't eat the item.
|
Remove the else block and just have the return_items line after the if block. It will return everything. Inside your if, you can do your special processing for the checked item id's.
|
I got you! Thank you =)
|
I got one more question - what If I want npc to report which item specifically was given to him? I do not want to make 100 IF statements, so is something like this possible:
Give item to npc > item id stored into $a > npc says "you gave me item id $a" or close to that? |
From the Quest Tutorial Wiki Page:
http://www.eqemulator.net/wiki/wikka...=QuestTutorial Code:
$item1 - The item# in the first slot. |
I didn't test this, but maybe something like this?
Code:
sub EVENT_ITEM |
AWESOME!! Thank you very much guys, you saved me a week of work! =)
one final question - for Item# corresponds to specific item slot- top to bottom? Let say players puts his 2 items into 1st and 3rd slot, will script read them as item1 and item3 or as 1 and 2? |
Yeah, I am pretty sure it is top to bottom, so 1st and 3rd slot would be $item1 and $item3.
|
All times are GMT -4. The time now is 07:56 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.