Ir para conteúdo

Featured Replies

Postado

COMO FACO PARA POR RANDOM AREA, PARA QUE OS PLAYES NAO APARECAM UM EM CIMA DO OUTRO 

NAS POSIÇÕES QUE ESTAO EM NEGRITO!!

 

 

torneio = {


awardTournament = 2152,
awardAmount = 80,
playerTemple = {x = 1241, y = 1825, z = 7},
tournamentFight = {x = 1243, y = 1854, z = 7},
area = {fromx = 1212, fromy = 1832, fromz = 7, tox = 1278, toy = 1879, toz= 7},
waitPlace = {x = 1242, y = 1890, z = 7}, 
waitArea = {fromx = 1231, fromy = 1883, fromz = 7, tox = 1253, toy = 1898, toz= 7}, 
startHour = "18:10:00",    
endHour = "18:15:00", 
price = 100, 
}

function getPlayersInArea(area)                                      

local players = {}

for x = area.fromx,area.tox do
for y = area.fromy,area.toy do
for z = area.fromz,area.toz do

local m = getTopCreature({x=x, y=y, z=z}).uid

if m ~= 0 and isPlayer(m) then
table.insert(players, m)
end
end
end
end
return players
end

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