• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

OTHire - Teleports

Eldora

Banned User
Joined
Oct 19, 2009
Messages
604
Reaction score
26
Why doesn't the teleports for changing recidence work on OTHire?

LUA:
function onStepIn(cid, item, position, fromPosition)

local pos = {x = 32369, y = 32241, z = 7}

    if isPlayer(cid) == 1 then
        doTeleportThing(cid, pos)
        doPlayerSetTown(cid, 3)
        doSendMagicEffect(getCreaturePosition(cid), 12)
    end
end

function onAddItem(moveitem, tileitem, position)
    local pos = {x = 32369, y = 32242, z = 6}
    doTeleportThing(moveitem.uid, pos)
        doSendMagicEffect(pos, 13)
end
 
LUA:
function onStepIn(cid, item, position, fromPosition)
    local pos = {x = 32369, y = 32241, z = 7}
    if isPlayer(cid) then
        doTeleportThing(cid, pos)
        doPlayerSetTown(cid, 3)
        doSendMagicEffect(getCreaturePosition(cid), 12)
    end
    return true
end

function onAddItem(moveitem, tileitem, position)
    local pos = {x = 32369, y = 32242, z = 6}
    doTeleportThing(moveitem.uid, pos)
    doSendMagicEffect(pos, 13)
    return true
end
 
Back
Top