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

Solved Teleport Scroll link

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if not getCreatureCondition(cid, CONDITION_INFIGHT) then
        doTeleportThing(cid, getPlayerMasterPos(cid))
        doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
    else
        doPlayerSendCancel(cid, "PZ locked!")
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
    return true
end

Just a basic script that will teleport the player to their hometown (temple)
 
I put it in actions like this
<action itemid="1984" script="other/teleportscroll.lua"/>
put in your script
and this is the error i get

teleport scroll error.png
 
found the problem.
it was from when i was trying to fix obsidian knife and i put in one of the clay statues wrong.
still doesnt work too :/

But the tp scroll works great! thanks
 
Back
Top