Hey right now I'm making a adventure game but I kinda need help with scripting.I have a NPC that Im using , Im trying to add a quest to the NPC.A quest so that if you have a certain item in your inventory than it will collect your item then it will reward you with XP/Coins.

Also the certain Item is a black coat so I need to learn how to make the coat so that when some one clicks on the coat the coat goes in there Inventory but the coat is still on the ex: table. So how do you make the npc and coat thing?