Ir para conteúdo

Featured Replies

Postado
5 minutos atrás, gobr disse:

s

movements/scripts crie um arquivo chamado aleat.lua

-- By Gustavo Ntos--
--                --
function onStepIn(cid, item, position, fromPosition)
local teleport = math.random(1, 15)
local t1 = {x=?, y=?, z=?}
local t2 = {x=?, y=?, z=?}
local t3 = {x=?, y=?, z=?}
local t4 = {x=?, y=?, z=?}
local t5 = {x=?, y=?, z=?}
local t6 = {x=?, y=?, z=?}
local t7 = {x=?, y=?, z=?}
local t8 = {x=?, y=?, z=?}
local t9 = {x=?, y=?, z=?}
local t10 = {x=?, y=?, z=?}
local t11 = {x=?, y=?, z=?}
local t12 = {x=?, y=?, z=?}
local t13 = {x=?, y=?, z=?}
local t14 = {x=?, y=?, z=?}
local t15 = {x=?, y=?, z=?}
if teleport == 1 then
doTeleportThing(cid, t1)
end
if teleport == 2 then
doTeleportThing(cid, t2)
end
if teleport == 3 then
doTeleportThing(cid, t3)
end
if teleport == 4 then
doTeleportThing(cid, t4)
end
if teleport == 5 then
doTeleportThing(cid, t5)
end
if teleport == 6 then
doTeleportThing(cid, t6)
end
if teleport == 7 then
doTeleportThing(cid, t7)
end
if teleport == 8 then
doTeleportThing(cid, t8)
end
if teleport == 9 then
doTeleportThing(cid, t9)
end
if teleport == 10 then
doTeleportThing(cid, t10)
end
if teleport == 11 then
doTeleportThing(cid, t11)
end
if teleport == 12 then
doTeleportThing(cid, t12)
end
if teleport == 13 then
doTeleportThing(cid, t13)
end
if teleport == 14 then
doTeleportThing(cid, t14)
end
if teleport == 15 then
doTeleportThing(cid, t15)
end
return true
end

 

 

movements.xml

 

<movevent type="StepIn" actionid="46789" event="script" value="aleat.lua"/> 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo