• 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!

PROBLEM WITH NPC: Lua Script Error: [Npc interface]

pichetas

New Member
Joined
Nov 22, 2008
Messages
21
Reaction score
2
it keeps bumping up on the cmd

Lua Script Error: [Npc interface]
data/npc/scripts/data/npc/scripts/Arkuliuss.lua:eek:nThink
data/npc/lib/npcsystem/npchandler.lua:623: table index is nil
stack traceback:
[C]: in function '__newindex'
data/npc/lib/npcsystem/npchandler.lua:623: in function 'say'
data/npc/scripts/data/npc/scripts/Arkuliuss.lua:30: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:479: in function 'onThink'
data/npc/scripts/data/npc/scripts/Arkuliuss.lua:25: in function <data/npc/scripts/data/npc/scripts/Arkuliuss.lua:25>

can somebody help me?
 

Attachments

Last edited:
Solution
This is because you're not supplying the 'target' of the message.
You can't supply the target, because there is no target available.

tldr, you're using the wrong function here.

use this instead
Lua:
doCreatureSay(getNpcCid(), thinkMsg[rand], TALKTYPE_SAY)
This is because you're not supplying the 'target' of the message.
You can't supply the target, because there is no target available.

tldr, you're using the wrong function here.

use this instead
Lua:
doCreatureSay(getNpcCid(), thinkMsg[rand], TALKTYPE_SAY)
 
Solution
Back
Top