Hello,
Im using TFS 0.3.
And im trying to fix my NPC's. But everytime I start the OT i get this error:
My bows.lua is:
And the NPC file is:
What is the problem?
Im using TFS 0.3.
And im trying to fix my NPC's. But everytime I start the OT i get this error:
Code:
[02/02/2009 01:36:13] Lua Script Error: [Npc interface]
[02/02/2009 01:36:13] data/npc/scripts/bows.lua
[02/02/2009 01:36:13] luaGetItemDescriptions(). Item not found
[02/02/2009 01:36:13] Lua Script Error: [Npc interface]
[02/02/2009 01:36:13] data/npc/scripts/bows.lua
[02/02/2009 01:36:13] data/lib/function.lua:311: attempt to index a number value
[02/02/2009 01:36:13] [Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/bows.lua
My bows.lua is:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
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
-- OTServ event handling functions end
npcHandler:addModule(FocusModule:new())
And the NPC file is:
Code:
<npc name="Bowman" script="data/npc/scripts/bows.lua" walkinterval="0" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="142" head="79" body="118" legs="115" feet="114" addons="3" corpse="2212"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="shop_buyable" value="crossbow,2455,160;enchanted spear,7367,100;assassin star,7368,100;bow,2456,130;spear,2389,1;royal,7378,50;bolt,2543,2;arrow,2544,1;power,2547,6" />
</parameters>
</npc>
What is the problem?