• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Sell NPC

dchampag

Well-Known Member
Joined
Jul 15, 2008
Messages
679
Reaction score
55
Location
USA
Hi I've created a sell NPC through lua but it seems that if you sell using the trade window if you have 3 stacks of an item, say I sell 4 of them it takes 4 from each stack, if I have 100 stacks still takes 4 from every stack if I sell 100 it takes every single 100 stack

Any idea?
 
It's not the lua the lua uses the NPC system it uses shopmoduleSellable or whatever the function is

I need to find the problem in the shop system for tfs I'm guessing its just searching for the item id and just removing the amount for the id but it only does it with trade window if you type the item name to sell it works fine
 
Last edited:
Back
Top