Hello I need a NPC that allows player to exchange item A to item B, and vice versa.
The NPC needs two options, a player can trade 1 itemA for 8 itemB. Or trade 10 itemB for 1 item A.
The player must also be able to tell how many they want to exchange with a input box. If the players says they want to exchange 7 item A's, then the NPC will check to make sure they have enough then remove those items from the players inventory and give them 56 (8*7) item B. The same for when trading from item B -> item A.
You can use any placeholder item id for both of the item A and B. I will change it to my custom item later when I have decided on the item ID.
Question
windston
Hello I need a NPC that allows player to exchange item A to item B, and vice versa.
The NPC needs two options, a player can trade 1 itemA for 8 itemB.
Or trade 10 itemB for 1 item A.
The player must also be able to tell how many they want to exchange with a input box. If the players says they want to exchange 7 item A's, then the NPC will check to make sure they have enough then remove those items from the players inventory and give them 56 (8*7) item B. The same for when trading from item B -> item A.
You can use any placeholder item id for both of the item A and B. I will change it to my custom item later when I have decided on the item ID.
Hopefully I explained that well enough.
Any help is appreciated, thanks.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.