i would like to request a script that let's you talk to an NPC and you need to give him an item so a window opens as shown in exemple 2
and you have to select the item he asked, if it's the wrong one it buzzes and closes the window.
if it's the good one the window closes too (you lose the number of items asked) and i should be able to activate a self switch or a switch if the item and the number of items was correct.
UPDATE: I want the window to look like the one in the exemples , with the description of the item 'n all
exemple :
you talk to a guy and he asks you for 2 apples ,
you get him the apples , he asks if you did get him ,window opens, you select the item, number(2 apples) is removed from inventory , window closses, a self trigger is triggered and he gives your reward.