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

Lua [0.4] door teleport to position

foulla

Member
Joined
Jun 26, 2016
Messages
78
Solutions
1
Reaction score
6
Hello otland , need script door can teleport u to position X,Y,Z 120,150,7
TFS 0.4
 
Solution
put an ActionID on the door in map editor.

XML:
<action actionid="45001" event="script" value="teleportingDoor.lua"/>
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    doTeleportThing(cid, {x = 120, y = 150, z = 7})
    return true
end
put an ActionID on the door in map editor.

XML:
<action actionid="45001" event="script" value="teleportingDoor.lua"/>
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    doTeleportThing(cid, {x = 120, y = 150, z = 7})
    return true
end
 
Solution
put an ActionID on the door in map editor.

XML:
<action actionid="45001" event="script" value="teleportingDoor.lua"/>
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    doTeleportThing(cid, {x = 120, y = 150, z = 7})
    return true
end
TY 😍
 
Back
Top