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

Action random tp rune

for 0.3.5pl1

Lua:
function onUse(cid, item, frompos, item2, topos)

local pos = {{x=10, y=10, z=7}, {x=20, y=20, z=7}, {x=30, y=30, z=7} ,{x=40, y=40, z=7}} -- position to teleport.

local rand = math.random(1, #pos)
doTeleportThing(cid, pos[rand])
doSendMagicEffect(10, pos[rand])
end
end
return 1
end
 
Interesting!

:p could be a random event like a roulletee system or something
 
Could be done that it is on having given him to a lever or Teleport¿?

For Tfs 0.3.5 Pl1

Rthx.
 
Lua:
function onUse(cid, item, frompos, item2, topos)

local pos = 
 {x=10, y=10, z=7},
 {x=20, y=20, z=7},
 {x=30, y=30, z=7},
 {x=40, y=40, z=7}} -- position to teleport.

local rand = math.random(1, #pos)
doTeleportThing(cid, pos[rand])
doSendMagicEffect(10, pos[rand])

end
return TRUE
end
 
Back
Top