hello does anyone knows how to do this?
if the player click an NPC a Sell window will appear. Player can only sell one equipment at a time (only equipment item can be sell). If a player put 1x hat (ID: 2220) and click on sell, a progress bar will appear for 10 seconds and after that the player will get 1 or 2 Gold Coin (ID: 671). However if the player put 1x Cap (ID: 2226) and click on sell, a progress bar will appear for 10 seconds and after that the player will get 1 or 2 Bronze Coin (ID: 673).
If the player put an item other than the item mentioned above and the player click the sell button. The trade will be cancelled automatically.
I hope someone can help me on doing this.