Alright, I'm having a problem with my NPC talk script. I want the player to be able to buy a rare once a week from the back door dealer who only comes out on the weekends but all he does is take the troll hide and gives nothing in return! Even worse, HE DOESNT EVEN SPEAK WITH YOU! D:
My current script:
hasinventory [player] [TrollHide] [>=] 
inventory [player] [take] [TrollHide] 
inventory [player] [add] [ShieldBadge] 
SetText [NPC Cords] [Thanks for buying my loot, [Gamertag]!]
SetText [NPC Cords] [If you don't have the hide then I don't have the gear! Get going, [gamertag]!]
Could you help out in any way?
I also would like to know if you could show me the script that allows for a menu with items for sale to be opened when you speak with an NPC, thanks!