zirra
Member
Running tfs 0.2
client for 9.60
here's the error
and heres the script
i've searched around found other people with the same/similar errors but none were for my client.
client for 9.60
here's the error
Code:
[03/10/2012 18:21:49] Lua Script Error: [Npc interface]
[03/10/2012 18:21:49] data/npc/scripts/spellsvilenecromancer.lua
[03/10/2012 18:21:49] data/npc/lib/npcsystem/modules.lua:748: attempt to call global 'getItemNameById' (a nil value)
[03/10/2012 18:21:49] stack traceback:
[03/10/2012 18:21:49] [C]: in function 'getItemNameById'
[03/10/2012 18:21:49] data/npc/lib/npcsystem/modules.lua:748: in function 'addBuyableItem'
[03/10/2012 18:21:49] data/npc/scripts/spellsvilenecromancer.lua:14: in main chunk
[03/10/2012 18:21:49] [Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/spellsvilenecromancer.lua
[03/10/2012 18:21:49] data/npc/scripts/weapons.lua:69: '<eof>' expected near 'end'
and heres the script
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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({'spellbook'}, 2175, 150, 'spellbook')
shopModule:addBuyableItem({'magic lightwand'}, 2163, 400, 'magic lightwand')
shopModule:addBuyableItem({'storm of horror spell scroll'}, 10292, 8000, 'storm of horror scroll')
shopModule:addBuyableItem({'eternal winter spell scroll'}, 10295, 6000, 'eternal winter spell scroll')
shopModule:addBuyableItem({'paralyze spell scroll'}, 10373, 1900, 'paralyze spell scroll')
shopModule:addBuyableItem({'enchant party spell scroll'}, 10330, 4000, 'enchant party spell scroll')
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
i've searched around found other people with the same/similar errors but none were for my client.