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

Solved Teleport player can only pass

Kojiiro

Nobody cares. Do yourself.
Joined
May 10, 2010
Messages
534
Reaction score
9
Location
Brazil
Good people to me here again to ask for a script that can be teleported player so if I play a gp or a backpack will not only player's telepotado
Would someone help me?

Hugs kojiiro:peace:
 
Last edited:
so overall, has telepots certain that if you throw garbage eg vials, gps backpacks and they are teleported into place only player you know?
 
So you want it like that: Players won't be able to throw items to it? Only players will pass? Everything will be teleported if you use Item ID 1387 (normal teleport)
 
Make new item in map and give unique ID 33545 for it.
Make this tile where your teleport is to PZ area!
Add this to movements.xml
Lua:
  <movevent type="StepIn" uniqueid="33545" event="script" value="Epicteleport.lua" />
Epicteleport.lua
Lua:
local newpos = {x=32042, y=33773, z=7} --Teleport to this position

function onStepIn(cid, item, position, fromPosition)
    if isPlayer(cid) == TRUE then

      doSendMagicEffect(getPlayerPosition(cid), 2)

      doTeleportThing(cid,newpos)

      doSendMagicEffect(newpos,10)
else
            doPlayerSendCancel(cid, "Only players can pass.")
end
return TRUE

end
This is teleport only for players, you can't throw items in it. And monsters can't go over it since it is PZ area :D
 
Back
Top