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

Movement request, Teleport by Unique ID

Lanibox

Brutal1ty.com
Joined
Sep 21, 2010
Messages
179
Reaction score
4
Hey, I allready tried to search for this but could not find.
I need teleport system that teleports by unique ID.

As example, if teleport action id is 4000 and unique id is 5001, it goes to position1, but if unique id is 5002 it goes to position2.

Would be nice to have this :)
 
Add this in your teleporter Script:
Lua:
local positions = {
[5001] = {x = , y = , z = },
[5002] = {x = , y = , z = },
...
}

function onStepIn(cid, item, ...)
    doTeleportThing(cid, positions[item.uid]
    return TRUE
end
Just an example
 
Add this in your teleporter Script:
Lua:
local positions = {
[5001] = {x = , y = , z = },
[5002] = {x = , y = , z = },
...
}

function onStepIn(cid, item, ...)
    doTeleportThing(cid, positions[item.uid]
    return TRUE
end
Just an example

Thanks :)
 
Back
Top