Hi guys... I have this bug that makes me f*cking crazy, when you try to buy something, the console says an error
[Warning - Eryn] NpcSystem:
ShopModule.onBuy - Item not found on shopItems list
I really dont know why, but here's an script of a buggy NPC
This script its NOT working, what the hell?
[Warning - Eryn] NpcSystem:
ShopModule.onBuy - Item not found on shopItems list
I really dont know why, but here's an script of a buggy NPC
Lua:
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({'rope'}, 2120, 50, 'rope')
shopModule:addBuyableItem({'scythe'}, 2550, 50, 'scythe')
shopModule:addBuyableItem({'pick'}, 2553, 50, 'pick')
shopModule:addBuyableItem({'shovel'}, 2554, 50, 'shovel')
npcHandler:addModule(FocusModule:new())
This script its NOT working, what the hell?