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

Solved TFS 1.1 npchandler

7804364

Member
Joined
Mar 6, 2010
Messages
457
Reaction score
10
issue cant talk to any npc
Code:
Lua Script Error: [Npc interface]
data/npc/scripts/default.lua:onCreatureSay
luagetDistanceTo(). Thing not found
stack traceback:
        [C]: in function 'getDistanceTo'
        data/npc/lib/npcsystem/npchandler.lua:560: in function 'isInRange'
        data/npc/lib/npcsystem/npchandler.lua:401: in function 'onCreatureSay'
        data/npc/scripts/default.lua:7: in function <data/npc/scripts/default.lua:7>

Lua Script Error: [Npc interface]
data/npc/scripts/dicer.lua:onCreatureSay
luagetDistanceTo(). Thing not found
stack traceback:
        [C]: in function 'getDistanceTo'
        data/npc/lib/npcsystem/npchandler.lua:560: in function 'isInRange'
        data/npc/lib/npcsystem/npchandler.lua:401: in function 'onCreatureSay'
        data/npc/scripts/dicer.lua:7: in function <data/npc/scripts/dicer.lua:7>

Lua Script Error: [Npc interface]
data/npc/scripts/default.lua:onCreatureSay
luagetDistanceTo(). Thing not found
stack traceback:
        [C]: in function 'getDistanceTo'
        data/npc/lib/npcsystem/npchandler.lua:560: in function 'isInRange'
        data/npc/lib/npcsystem/npchandler.lua:401: in function 'onCreatureSay'
        data/npc/scripts/default.lua:7: in function <data/npc/scripts/default.lua:7>

Lua Script Error: [Npc interface]
data/npc/scripts/captainbluebear.lua:onCreatureSay
luagetDistanceTo(). Thing not found
stack traceback:
        [C]: in function 'getDistanceTo'
        data/npc/lib/npcsystem/npchandler.lua:560: in function 'isInRange'
        data/npc/lib/npcsystem/npchandler.lua:401: in function 'onCreatureSay'
        data/npc/scripts/captainbluebear.lua:7: in function <data/npc/scripts/captainbluebear.lua:7>
 
Is it just the Dicer npc or every npc like you said ?
You can try replacing your
Code:
data\npc\lib\npcsystem\npchandler.lua
with the one i put into paste bin below @7804364
http://pastebin.com/K5AK6eyP[/QUOTE
everyone one, when i say "hi" they dont respond and the error appears in console

Is it just the Dicer npc or every npc like you said ?
You can try replacing your
Code:
data\npc\lib\npcsystem\npchandler.lua
with the one i put into paste bin below @7804364
http://pastebin.com/K5AK6eyP
It worked thanks bro
but i get this error when i try to spawn captain bluebear as he wont spawn?
Code:
Lua Script Error: [Npc interface]
data/npc/scripts/Captain Bluebear.lua
data/npc/scripts/Captain Bluebear.lua:22: attempt to index global 'TravelLib' (a nil value)
stack traceback:
        [C]: ?
        data/npc/scripts/Captain Bluebear.lua:22: in main chunk
        [C]: in function 'createNpc'
        data/compat.lua:444: in function 'doCreateNpc'
        data/talkactions/scripts/place_npc.lua:12: in function <data/talkactions/scripts/place_npc.lua:1>
[Warning - NpcScript::NpcScript] Can not load script: Captain Bluebear.lua
 
Last edited by a moderator:
Comment your bluebear script.
Error: (TravelLib) Line: 22
this Travel lib seems to hit most of my captains
http://pastebin.com/PZZwx73M


Even king tibianus

Code:
Lua Script Error: [Npc interface]
data/npc/scripts/King Tibianus.lua
data/npc/scripts/King Tibianus.lua:143: attempt to call method 'addGreetMessage' (a nil value)
stack traceback:
        [C]: in function 'addGreetMessage'
        data/npc/scripts/King Tibianus.lua:143: in main chunk
        [C]: in function 'createNpc'
        data/compat.lua:444: in function 'doCreateNpc'
        data/talkactions/scripts/place_npc.lua:12: in function <data/talkactions/scripts/place_npc.lua:1>
[Warning - NpcScript::NpcScript] Can not load script: King Tibianus.lua
 
Here, download this lib file and replace it with yours make sure to back yours up incase it does not work.
I dont have time to scan the file its 5 AM i am tired you can scan it or simply see its small and only contains Textedit files. Lua/xml
Code:
Data/Npc/lib
https://mega.co.nz/#!98liiTiI!Ghkj25mXGnMIe9z-OOzT1FAmkDWc0KhalzlZwIHMKvs

I'f this does not work i cant do much more tonight i need sleep if someone has not yet helped you by morning ill try fixing it for you.
later~
 
Here, download this lib file and replace it with yours make sure to back yours up incase it does not work.
I dont have time to scan the file its 5 AM i am tired you can scan it or simply see its small and only contains Textedit files. Lua/xml
Code:
Data/Npc/lib
https://mega.co.nz/#!98liiTiI!Ghkj25mXGnMIe9z-OOzT1FAmkDWc0KhalzlZwIHMKvs

I'f this does not work i cant do much more tonight i need sleep if someone has not yet helped you by morning ill try fixing it for you.
later~
aye aye thanks bro ill try it now

Here, download this lib file and replace it with yours make sure to back yours up incase it does not work.
I dont have time to scan the file its 5 AM i am tired you can scan it or simply see its small and only contains Textedit files. Lua/xml
Code:
Data/Npc/lib
https://mega.co.nz/#!98liiTiI!Ghkj25mXGnMIe9z-OOzT1FAmkDWc0KhalzlZwIHMKvs

I'f this does not work i cant do much more tonight i need sleep if someone has not yet helped you by morning ill try fixing it for you.
later~
same error man
Code:
Lua Script Error: [Npc interface]
data/npc/scripts/Captain Bluebear.lua
data/npc/scripts/Captain Bluebear.lua:22: attempt to index global 'TravelLib' (a nil value)
stack traceback:
        [C]: ?
        data/npc/scripts/Captain Bluebear.lua:22: in main chunk
        [C]: in function 'createNpc'
        data/compat.lua:444: in function 'doCreateNpc'
        data/talkactions/scripts/place_npc.lua:12: in function <data/talkactions/scripts/place_npc.lua:1>
[Warning - NpcScript::NpcScript] Can not load script: Captain Bluebear.lua

[Error - Npc::loadFromXml] Failed to load data/npc/Captain Bluebear.xml: File was not found

anyone my some of my npcs are not working?
@zbizu
 
Last edited by a moderator:

Similar threads

Back
Top