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

random teleport - need help

straher

???
Joined
Mar 23, 2010
Messages
255
Reaction score
3
Hi. I've found on forum this kind of teleport rune, however I need it to be transformated to movement action with specified actionID

here's the script

Code:
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

Help! Please!
 
change
Code:
function onUse(cid, item, frompos, item2, topos)
to
Code:
function onStepIn(cid, item, position, fromPosition)
 
Back
Top