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

mapping help

Keshoo

Newer Rich
Joined
Feb 23, 2010
Messages
166
Reaction score
5
is there any way to edit object on floor like flower for example to work as teleport but there is no destination table, or i have to add script to work as teleport?
 
You have to add a script, I don't know what kind of checks you want to add (level/vocation/storages), etc.
But something as simple as this should work.
Lua:
local justTP = MoveEvent()
justTP:type("stepin")

function justTP.onStepIn(player, item, position, fromPosition)
local NextPlayerPos = {x=1000, y=1000, z=7}
    if not player or player:isInGhostMode() then
        return true
    end
        player:teleportTo(NextPlayerPos)
    return true
end

justTP:aid(4389)
justTP:register()
 
Last edited:
Back
Top