• 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 Npc system tfs 0.4 help please!

butynhuuw

New Member
Joined
Nov 28, 2009
Messages
51
Reaction score
1
Hey guys, my friend is a donator here and we I help him with scripts and etc.
We got a problem in npc system... it seems to be very serious...
We use libs of the real server, and when we talk to the npcs in-game we got problems like this:

[1:6:25.687] [Error - NpcScript Interface]
[1:6:25.687] data/npc/scripts/default.lua:eek:nCreatureSay
[1:6:25.687] Description:
[1:6:25.687] data/npc/lib/npc.lua:51: attempt to call global 'isValidPosition' (a nil value)
[1:6:25.687] stack traceback:
[1:6:25.687] data/npc/lib/npc.lua:51: in function 'getNpcDistanceTo'
[1:6:25.703] data/npc/lib/npcsystem/npchandler.lua:593: in function 'isInRange'
[1:6:25.703] data/npc/lib/npcsystem/npchandler.lua:414: in function 'onCreatureSay'
[1:6:25.703] data/npc/scripts/default.lua:7: in function <data/npc/scripts/default.lua:7>

[1:6:29.734] [Error - NpcScript Interface]
[1:6:29.734] data/npc/scripts/default.lua:eek:nCreatureSay
[1:6:29.734] Description:
[1:6:29.734] data/npc/lib/npc.lua:51: attempt to call global 'isValidPosition' (a nil value)
[1:6:29.734] stack traceback:
[1:6:29.734] data/npc/lib/npc.lua:51: in function 'getNpcDistanceTo'
[1:6:29.734] data/npc/lib/npcsystem/npchandler.lua:593: in function 'isInRange'
[1:6:29.734] data/npc/lib/npcsystem/npchandler.lua:414: in function 'onCreatureSay'
[1:6:29.734] data/npc/scripts/default.lua:7: in function <data/npc/scripts/default.lua:7>

We have tried all kinds of libs... the libs that already comes in the tfs 0.4 didn't work either... we use the npcs of the real server, that are the same of all global servers...

Can anybody help?
 
Function isValidPosition is located in lib file 032-position.lua, which means you haven't updated it.

If you don't have access to a recent revision of 0.4, then your only option is to downgrade your npc lib.
 
Back
Top