Hello. Im using 7.72 OThire distro. In npc/scripts/lib/npcsystem/ is located a lua file called modules.lua with implemented functions for shopping. I created my own NPC using those functions in npcsystem. Everything works fine but player does not get a money for an item that he sold.
Here is the sample of my code where im using that function.
Modules.lua containing function addSellableItem - http://pastebin.com/S2x5Wi1W
My NPC lua script - http://pastebin.com/zBmx9QQP
Thanks for reply and sorry for bad english
Here is the sample of my code where im using that function.
Code:
shopModule:addSellableItem({'knight axe'}, 2430, 2000,'Knight axe')
Modules.lua containing function addSellableItem - http://pastebin.com/S2x5Wi1W
My NPC lua script - http://pastebin.com/zBmx9QQP
Thanks for reply and sorry for bad english