enriel
Big L
[25/03/2008 15:39:35] Lua Script Error: [Npc interface]
[25/03/2008 15:39:35] data/npc/scripts/amulet.luanCreatureSay
[25/03/2008 15:39:35] data/npc/lib/npcsystem/modules.lua:741: attempt to call global 'doPlayerBuyItem' (a nil value)
I get that error on this npc
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end
npcHandler:addModule(FocusModule:new())
Anyone that can help me really fast?