Jump to content
  • 0
Sign in to follow this  
dfabsgwapings

R> OnSell NPC script

Question

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.


Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.