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:
here is code for npchanlder:
http://wklej.org/id/1641707/
here is for npc.cpp
http://wklej.org/id/1641723/
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>
http://wklej.org/id/1641707/
here is for npc.cpp
http://wklej.org/id/1641723/
Last edited: