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

Windows Need help adding Step-On-Tile script!

Oldschool'er

Tibia since 1998'
Joined
Dec 14, 2010
Messages
2,198
Reaction score
149
Location
United States
yes id like help adding a script to my server so when you step on a tile you teleport to a donation castle need help adding script through teamviewer if anyone can please message me!!


local positions =
{
place = {x=100, y=100, z=7} – New position.
}
function onStepIn(cid, item, fromPos, item2, toPos)
if (item.uid == 5820) then — Unique ID of the Tile.
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, ”You got teleported!”)
doTeleportThing(cid, positions.place)
end
return TRUE
end


i have NO idea where to add this or but it so if someone can help me please message me!!


AND NO I CANNOT PAY FOR SUCH A EASY THING TO ADD!
 
try this

Code:
--- Script by Hrsha
function onStepIn(cid, item, position, fromPosition)

ppos = getPlayerPosition(cid)
topos = {x = 100, y = 100, z = 7}

if isPlayer(cid) == true then
doTeleportThing(cid, topos, TRUE)
doSendMagicEffect(ppos,10)
doSendMagicEffect(topos,10)

end
return 1
end

and this on movment.xml

Code:
<movevent type="StepIn" actionid="125" event="script" value="tile.lua"/>

just set actionid of tile on map editor and put the same actionin on xml line
 
try this

Code:
--- Script by Hrsha
function onStepIn(cid, item, position, fromPosition)

ppos = getPlayerPosition(cid)
topos = {x = 100, y = 100, z = 7}

if isPlayer(cid) == true then
doTeleportThing(cid, topos, TRUE)
doSendMagicEffect(ppos,10)
doSendMagicEffect(topos,10)

end
return 1
end

and this on movment.xml

Code:
<movevent type="StepIn" actionid="125" event="script" value="tile.lua"/>

just set actionid of tile on map editor and put the same actionin on xml line

thanks
 
try this

Code:
--- Script by Hrsha
function onStepIn(cid, item, position, fromPosition)

ppos = getPlayerPosition(cid)
topos = {x = 100, y = 100, z = 7}

if isPlayer(cid) == true then
doTeleportThing(cid, topos, TRUE)
doSendMagicEffect(ppos,10)
doSendMagicEffect(topos,10)

end
return 1
end

and this on movment.xml

Code:
<movevent type="StepIn" actionid="125" event="script" value="tile.lua"/>

just set actionid of tile on map editor and put the same actionin on xml line

um this script isnt gonna work :/ i need multiple teleport's for donation castle's for my server
 
its working ( it teleport u from tile to
topos = {x = 100, y = 100, z = 7}
just edit it to your position and add actionid 125 to tile which it gonna teleport u to castle house

this will teleport u from tlie to house u can creat other script by the same steps
to make it teleport u back from house to x position
 
yeah but all the people with
Code:
if (item.uid == 5820)
walk on the tile of actionid="125" then that means your donation castle is open to the public lol..
 
Back
Top