I found this script by Punit and Emistry that allows loot and unequipped items to be sold easily. The NPC will ask if the player wants to sell all items in their inventory and pay for all of them when the player accepts. The purpose of this script is to make it easier for players to sell loot they find.
Problem:
The issue is when selling items that stack (e.g. ygg berries, potions, arrows, treasure boxes), it only treats the stack as though it's only one item and only pays for that item. For example, a treasure box sells for 150,000z. If you have 3 treasure boxes it should sell for 450,000z but the NPC only pays 150,000z.
This is not an issue for items that don't stack, especially equipment. Meaning if you have 2 broadswords in the inventory, the NPC would buy them correctly.
It would be greatly appreciated if anyone can help point out the issue with the script. I looked into the manuals and documentation but I couldn't really understand all of it because I'm new to this.
Question
Alenovo
Hello everyone,
I found this script by Punit and Emistry that allows loot and unequipped items to be sold easily. The NPC will ask if the player wants to sell all items in their inventory and pay for all of them when the player accepts. The purpose of this script is to make it easier for players to sell loot they find.
Problem:
The issue is when selling items that stack (e.g. ygg berries, potions, arrows, treasure boxes), it only treats the stack as though it's only one item and only pays for that item. For example, a treasure box sells for 150,000z. If you have 3 treasure boxes it should sell for 450,000z but the NPC only pays 150,000z.
This is not an issue for items that don't stack, especially equipment. Meaning if you have 2 broadswords in the inventory, the NPC would buy them correctly.
Script:
It would be greatly appreciated if anyone can help point out the issue with the script. I looked into the manuals and documentation but I couldn't really understand all of it because I'm new to this.
Thanks in advanced.
Link to comment
Share on other sites
4 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.