Jump to content

  •  

Photo

R> OnSell NPC script


  • Please log in to reply
2 replies to this topic

#1 dfabsgwapings

dfabsgwapings

    Advanced Member

  • Members
  • PipPipPip
  • 150 posts
  • Github:dfabsgwapings

Posted 02 May 2017 - 05:48 AM

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.



#2 dfabsgwapings

dfabsgwapings

    Advanced Member

  • Members
  • PipPipPip
  • 150 posts
  • Github:dfabsgwapings

Posted 03 May 2017 - 01:16 AM

bump to this topic. Sorry !!



#3 dfabsgwapings

dfabsgwapings

    Advanced Member

  • Members
  • PipPipPip
  • 150 posts
  • Github:dfabsgwapings

Posted 06 May 2017 - 10:37 PM

anyone?






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 25 user(s)