knightxd
Member
Well, im trying to make an NPC to sell many fluids on the trade window...
like, beer, oil, manafluid etc..
but here goes the problem, when i add them with the same flask container (like 2006 in example) the trade window only show the last one, in case here the life fluid.
how can i make the npc put all the items on trade window??
here goes the code that i'm using:
like, beer, oil, manafluid etc..
but here goes the problem, when i add them with the same flask container (like 2006 in example) the trade window only show the last one, in case here the life fluid.
how can i make the npc put all the items on trade window??
here goes the code that i'm using:
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:addBuyableItem({'oil'}, 2006, 4400, 11, 'oil')
shopModule:addBuyableItem({'mana fluid'}, 2006, 100, 7, 'mana fluid')
shopModule:addBuyableItem({'life fluid'}, 2006, 80, 10, 'life fluid')
npcHandler:addModule(FocusModule:new())