Hello, I would like some help with this problem:
(I have searched and tried diferent scripts)
When I sell something to my npc that buys loot, with the trade window and for example I have boots of haste on and boots of haste on my backpack as well, I select sell 1 boh and the npc buys both of them, and if you sell it with the npc channel instead it buys correctly, only 1 pair.
So I don't know if its something simple or complicated please help me.
Info:
TFS 3.4
Npc system of tfs too.
script:
I didnt include the rest of the items, the format is the same
Thanks in advance![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
(I have searched and tried diferent scripts)
When I sell something to my npc that buys loot, with the trade window and for example I have boots of haste on and boots of haste on my backpack as well, I select sell 1 boh and the npc buys both of them, and if you sell it with the npc channel instead it buys correctly, only 1 pair.
So I don't know if its something simple or complicated please help me.
Info:
TFS 3.4
Npc system of tfs too.
script:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addSellableItem({'sword', 'sword'}, 2376, 25, 'sword')
npcHandler:addModule(FocusModule:new())
I didnt include the rest of the items, the format is the same
Thanks in advance