Ir para conteúdo

Featured Replies

Postado

tem como dexa somente player de lv 100 até 110 entrar nessa arena?

a arena ta configura somente lv 30 +, só dei exemplo

script:

-- pvp arena lever

function onUse(cid, item, frompos, item2, topos)

if item.uid == 1945 and item.itemid == 1945 then

player1pos = {x=119, y=35, z=9, stackpos=253}

player1 = getThingfromPos(player1pos)

player2pos = {x=130, y=35, z=9, stackpos=253}

player2 = getThingfromPos(player2pos)

if player1.itemid > 0 and player2.itemid > 0 then

arenalevel = 30

player1level = getPlayerLevel(player1.uid)

player2level = getPlayerLevel(player2.uid)

if player1level >= arenalevel and player2level >= arenalevel then

for arenax = 121,128 do

for arenay = 33,37 do

arenapos = {x=arenax, y=arenay, z=9, stackpos=253}

arenacreature = getThingfromPos(arenapos)

if arenacreature.itemid > 0 then

doPlayerSendCancel(cid,"Espere a luta acabar.")

return 1

end

end

end

nplayer1pos = {x=121, y=35, z=9}

nplayer2pos = {x=128, y=35, z=9}

doSendMagicEffect(player1pos,2)

doSendMagicEffect(player2pos,2)

doTeleportThing(player1.uid,nplayer1pos)

doTeleportThing(player2.uid,nplayer2pos)

doSendMagicEffect(nplayer1pos,10)

doSendMagicEffect(nplayer2pos,10)

doPlayerSendTextMessage(player1.uid,18,"FIGHT!")

doPlayerSendTextMessage(player2.uid,18,"FIGHT!")

else

doPlayerSendCancel(cid,"Both fighters must have level 30.")

end

else

doPlayerSendCancel(cid,"You need 2 players for a duel.")

end

else

return 0

end

return 1

end

  • 1 year later...

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.9k

Informação Importante

Confirmação de Termo