• 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 Teleport pos.

Vecay

New Member
Joined
Aug 29, 2014
Messages
30
Reaction score
3
Hello,
It's possible to gain telpeport pos via lua??

For example

Is telleport on 1000,1001,7, and i need to gain this dastination position.


Can any help me?
 
First off, What's your server version?
Second, Are you trying to find a location, or simply teleport to a location?

Teleporter is at location x,y,z and player goes to x,y,z?
 
For most older TFS versions:

Teleport to a position.
Code:
doTeleportThing(cid, position)
Create teleport.
Code:
doCreateTeleport(itemid, toposition, createposition)
You can add a position by using x =, y =, z = in a table.
Code:
{x = 100, y = 100, z = 7}



TFS 1.x

Code:
player:teleportTo(position, false)
Code:
Game.createItem(itemId, 1, position):setDestination(position)
Code:
Position(100, 100, 7)

Next time post your server version.
 
Last edited:
TFS 0.4 and not this. I'm need to gain destination of exist teleport on the map like on which pos this teleport teleporting.
 
You can add actionids/uniqueids to the teleports and get the position this way, create a table that matches those ids with the right positions.
 
I think I understand.
If it's already in the map, go to that location using your map editor and select properties, and it will show the co-ordinates of where the teleport is going.
Alternatively there could be a action or unique id placed on the teleporter and then you will need to check in movements (most likely) or actions (unlikely) for that aid/uid and find the script that it is running off of, which will then show you the co-ordinates of the teleport.
 
Back
Top