-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
- 0 respostas
- 566 visualizações
-
- 0 respostas
- 491 visualizações
-
- 0 respostas
- 1604 visualizações
-
- 0 respostas
- 1226 visualizações
-
- 1 resposta
- 2291 visualizações
-

Pergunta
Nathan96 4
Ola galerinha do xtibia hoje venho aqui pedir um sistema que funcione claro
para distro 0.3.6
Como o titulo já diz preciso um script que faça certo local de arena, ou então que arrume o script abaixo.
[spoiler] pvpParcent = 2, arenaFrom = {1250, 691, 6}, -- pvp arena from x,y,z position arenaTo = {1260, 724, 6}, -- pvp arena to x,y,z position } function gainExperience(cid,lastHitKiller, mostDamageKiller) if (isPlayer(lastHitKiller) and isPlayer(mostDamageKiller)) and (lastHitKiller ~= mostDamageKiller) then doPlayerAddExp(lastHitKiller, (getPlayerExperience(cid)/200)*config.pvpParcent) doSendAnimatedText(getPlayerPosition(lastHitKiller), (getPlayerExperience(cid)/200)*config.pvpParcent, TEXTCOLOR_WHITE) doPlayerAddExp(mostDamageKiller, (getPlayerExperience(cid)/200)*config.pvpParcent) doSendAnimatedText(getPlayerPosition(mostDamageKiller), (getPlayerExperience(cid)/200)*config.pvpParcent, TEXTCOLOR_WHITE) elseif (isPlayer(lastHitKiller) and not(isPlayer(mostDamageKiller))) then doPlayerAddExp(lastHitKiller, (getPlayerExperience(cid)/100)*config.pvpParcent) doSendAnimatedText(getPlayerPosition(lastHitKiller), (getPlayerExperience(cid)/100)*config.pvpParcent, TEXTCOLOR_WHITE) elseif (not(isPlayer(lastHitKiller)) and isPlayer(mostDamageKiller)) then doPlayerAddExp(mostDamageKiller, (getPlayerExperience(cid)/100)*config.pvpParcent) doSendAnimatedText(getPlayerPosition(mostDamageKiller), (getPlayerExperience(cid)/100)*config.pvpParcent, TEXTCOLOR_WHITE) end end function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) local playerPos = getPlayerPosition(cid) local killerPos = getPlayerPosition(lastHitKiller) if isPlayer(cid) then if (playerPos.x >= config.arenaFrom[1] and playerPos.x <= config.arenaTo[1]) and (playerPos.y >= config.arenaFrom[2] and playerPos.y <= config.arenaTo[2]) and (playerPos.z >= config.arenaFrom[3] and playerPos.z <= config.arenaTo[3]) then if (killerPos.x >= config.arenaFrom[1] and killerPos.x <= config.arenaTo[1]) and (killerPos.y >= config.arenaFrom[2] and killerPos.y <= config.arenaTo[2]) and (killerPos.z >= config.arenaFrom[3] and killerPos.z <= config.arenaTo[3]) then gainExperience(cid,lastHitKiller, mostDamageKiller) end end end return TRUE endErro
Editado por Nathan96Link para o comentário
https://xtibia.com/forum/topic/190820-pvp-arena/Compartilhar em outros sites
12 respostass a esta questão
Posts Recomendados