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

How do i get teleporting to work?

andurz

Senior Member
Joined
Nov 1, 2008
Messages
126
Reaction score
0
Location
$wedeN
Hello,i finally fixed my npc system (IM SO FUCKING HAPPY :D)

Now i only got like 1 bugg left, and its the TP scroll quest
The thing is that when you are standing on a platform and saying "Shit" you will get tped, but it dosent work:/

Here is a error im getting on my console

Code:
Lua Script Error: [TalkAction Interface] 
[23/02/2009  02:34:41] data/talkactions/scripts/tp scroll.lua:onSay

[23/02/2009  02:34:41] data/talkactions/scripts/tp scroll.lua:5: attempt to call global 'comparePos' (a nil value)
[23/02/2009  02:34:41] stack traceback:
[23/02/2009  02:34:41] 	data/talkactions/scripts/tp scroll.lua:5: in function <data/talkactions/scripts/tp scroll.lua:4>

I asked a guy on a server, he said something about adding pos or something in the Global.lua
 
No need to change the positions. The script is basically trying to run a function which doesn't exist (comparePos).

Add this into your functions.lua file, or in the actual script file (if you're lazy that is). ;p
PHP:
function comparePos(pos1, pos2)
     return (pos1.x == pos2.x and pos1.y == pos2.y and pos1.z == pos2.z)
end
 
Back
Top