vingo
Active Member
- Joined
- Oct 27, 2012
- Messages
- 464
- Reaction score
- 43
Im always getting errors with npcs handing out addons.
For example
I go to the npc, I say "warrior" he says do you have 100 iron ores and piece of iron steel, I say yes and boom he takes items nothing happends this message appears.
Line 7
function onCreatureSay(cid, type, msg) npcHandler
nCreatureSay(cid, type, msg) end
Line 35
npcHandler:say('Ah, right! The warrior sword! Here you go.')
For example
PHP:
Lua Script Error: [Npc interface]
data/npc/scripts/Morgan.lua:onCreatureSay
data/npc/lib/npcsystem/npchandler.lua:609: table index is nil
stack traceback:
[C]: in function '__newindex'
data/npc/lib/npcsystem/npchandler.lua:609: in function 'say'
data/npc/scripts/Morgan.lua:35: in function 'callback'
data/npc/lib/npcsystem/keywordhandler.lua:26: in function 'processMessage'
data/npc/lib/npcsystem/keywordhandler.lua:136: in function 'processNodeMessage'
data/npc/lib/npcsystem/keywordhandler.lua:104: in function 'processMessage'
data/npc/lib/npcsystem/npchandler.lua:400: in function 'onCreatureSay'
data/npc/scripts/Morgan.lua:7: in function <data/npc/scripts/Morgan.lua:7>
I go to the npc, I say "warrior" he says do you have 100 iron ores and piece of iron steel, I say yes and boom he takes items nothing happends this message appears.
Line 7
function onCreatureSay(cid, type, msg) npcHandler
Line 35
npcHandler:say('Ah, right! The warrior sword! Here you go.')