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

Solved When you logout while talking with npc it creates an error.

Pietia

Active Member
Joined
Jan 13, 2008
Messages
2,147
Reaction score
48
Location
Poland
HI I have an odd bug with npchandler basically this bug is when you talk to npc and logout there is spam of errors in console like that:

Code:
Lua Script Error: [Npc interface]
data/npc/scripts/Carlin/Fenbala.lua:onThink

data/npc/scripts/lib/npcsystem/npchandler.lua:221: bad argument #3 to 'gsub' (st
ring/function/table expected)
stack traceback:
        [C]: in function 'gsub'
        data/npc/scripts/lib/npcsystem/npchandler.lua:221: in function 'parseMes
sage'
        data/npc/scripts/lib/npcsystem/npchandler.lua:371: in function 'onWalkAw
ay'
        data/npc/scripts/lib/npcsystem/npchandler.lua:324: in function 'onThink'

        data/npc/scripts/Carlin/Fenbala.lua:14: in function <data/npc/scripts/Ca
rlin/Fenbala.lua:14>
here is code for npchanlder:
http://wklej.org/id/1641707/


here is for npc.cpp
http://wklej.org/id/1641723/
 
Last edited:
You sure it is bcz you logout, even tho you just say hi and then logout?
 
npchandler.lua#L370, local parseInfo = { [TAG_PLAYERNAME] = getPlayerName(self.focus) or -1}
 
L364 Oh, i thougt he mby needed to change this:
Code:
if(cid == self.focus) then
to this:
Code:
if(self:isFocused(cid)) then
 
Back
Top