Ernstjan
Active Member
Woot The scripts works fine I really like it
!
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
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