Vá em data/actions/scripts, crie um arquivo chamado 8place.lua e adicione dentro:
function onUse(cid)
local places = {{x = 1, y = 2, z = 7}, {x = 1, y = 2, z = 7}, {x = 1, y = 2, z = 7}, {x = 1, y = 2, z = 7}, {x = 1, y = 2, z = 7}, {x = 1, y = 2, z = 7}, {x = 1, y = 2, z = 7}, {x = 1, y = 2, z = 7}}
if not isInArray({x = 86, y = 1254, z = 7}, getThingPos(cid)) then
return doPlayerSendCancel(cid, "Você não está na posição correta.") and true
end
doSendMagicEffect(getThingPos(cid), 14)
doTeleportThing(cid, places[math.random(#places)])
return true
end
Em actions.xml adicione a seguinte tag:
<action actionid="13139" event="script" value="8place.lua"/>
Prontinho, basta adicionar "ACTIONID 13139" pelo RME nesta alavanca, boa sorte.





info
Grupo: Visconde
Registrado: 21/08/11
Posts: 470
Reputação: +5
Char no Tibia: ...