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

Lua Erro Script NPC'S

samuel157

/root
Joined
Mar 19, 2010
Messages
518
Solutions
3
Reaction score
71
Location
São Paulo, Brazil
GitHub
Samuel10M
HELP PLEASE

LUA:
[14/08/2022 21:47:59] [Error - Npc interface]
[14/08/2022 21:48:00] data/npc/scripts/scarabitens.lua:onThink
[14/08/2022 21:48:00] Description:
[14/08/2022 21:48:00] (luaGetNpcDistanceTo) Thing not found

[14/08/2022 21:48:00] [Error - Npc interface]
[14/08/2022 21:48:00] data/npc/scripts/scarabitens.lua:onThink
[14/08/2022 21:48:00] Description:
[14/08/2022 21:48:00] (luaGetCreatureName) Creature not found

[14/08/2022 21:48:00] [Error - Npc interface]
[14/08/2022 21:48:00] data/npc/scripts/scarabitens.lua:onThink
[14/08/2022 21:48:00] Description:
[14/08/2022 21:48:00] data/npc/lib/npcsystem/npchandler.lua:301: bad argument #3 to 'gsub' (string/function/table expected)
[14/08/2022 21:48:01] stack traceback:
[14/08/2022 21:48:01]     [C]: in function 'gsub'
[14/08/2022 21:48:01]     data/npc/lib/npcsystem/npchandler.lua:301: in function 'parseMessage'
[14/08/2022 21:48:01]     data/npc/lib/npcsystem/npchandler.lua:538: in function 'onWalkAway'
[14/08/2022 21:48:01]     data/npc/lib/npcsystem/npchandler.lua:473: in function 'onThink'
[14/08/2022 21:48:01]     data/npc/scripts/scarabitens.lua:8: in function <data/npc/scripts/scarabitens.lua:8>

[14/08/2022 21:48:02] [Error - Npc interface]
[14/08/2022 21:48:02] data/npc/scripts/scarabitens.lua:onThink
[14/08/2022 21:48:02] Description:
[14/08/2022 21:48:02] (luaGetNpcDistanceTo) Thing not found

[14/08/2022 21:48:02] [Error - Npc interface]
[14/08/2022 21:48:02] data/npc/scripts/scarabitens.lua:onThink
[14/08/2022 21:48:02] Description:
[14/08/2022 21:48:02] (luaGetCreatureName) Creature not found

[14/08/2022 21:48:03] [Error - Npc interface]
[14/08/2022 21:48:03] data/npc/scripts/scarabitens.lua:onThink
[14/08/2022 21:48:03] Description:
[14/08/2022 21:48:03] data/npc/lib/npcsystem/npchandler.lua:301: bad argument #3 to 'gsub' (string/function/table expected)
[14/08/2022 21:48:03] stack traceback:
[14/08/2022 21:48:03]     [C]: in function 'gsub'
[14/08/2022 21:48:03]     data/npc/lib/npcsystem/npchandler.lua:301: in function 'parseMessage'
[14/08/2022 21:48:03]     data/npc/lib/npcsystem/npchandler.lua:538: in function 'onWalkAway'
[14/08/2022 21:48:03]     data/npc/lib/npcsystem/npchandler.lua:473: in function 'onThink'
[14/08/2022 21:48:03]     data/npc/scripts/scarabitens.lua:8: in function <data/npc/scripts/scarabitens.lua:8>
 

Attachments

Solution
X
Untitled.png

Quick question..

With 10 mentions of a particular script erroring.. vs 8 mentions of the npchandler...
Why did you only send the the npchandler?

The rest of us know the npchandler is useless information in 99% of cases.. but like..
Even if you don't know which of the 2 mentioned scripts are the problem..

Why wouldn't you send both?

---
Anyway..

the problem is inside data/npc/scripts/scarabitens.lua

Please post that.
Untitled.png

Quick question..

With 10 mentions of a particular script erroring.. vs 8 mentions of the npchandler...
Why did you only send the the npchandler?

The rest of us know the npchandler is useless information in 99% of cases.. but like..
Even if you don't know which of the 2 mentioned scripts are the problem..

Why wouldn't you send both?

---
Anyway..

the problem is inside data/npc/scripts/scarabitens.lua

Please post that.
 
Solution
Back
Top