• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.0 - ProcessnodeMessage

vingo

Active Member
Joined
Oct 27, 2012
Messages
464
Reaction score
43
Im always getting errors with npcs handing out addons.


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:onCreatureSay(cid, type, msg) end
Line 35
npcHandler:say('Ah, right! The warrior sword! Here you go.')
 
Back
Top