zbizu
Legendary OT User
If you playd on 7.6 you probably know how famous pvp arena from yur evo or sinteria worked.
This place allows you to test your pvp skills without risk of death.
Installation(lever script coming soon so I included stuff from action already)
creaturescripts.xml
pvparena.lua
This place allows you to test your pvp skills without risk of death.
Installation(lever script coming soon so I included stuff from action already)

creaturescripts.xml
Code:
<event type="preparedeath" name="pvparena" script="pvparena.lua"/>
<event type="login" name="pvparena_r" script="pvparena.lua"/>
pvparena.lua
Code:
local arena = {
frompos = {x = 1041, y = 985, z = 9},
topos = {x = 1052, y = 991, z = 9},
exitpos = {x = 1038, y = 988, z = 8}
}
function onPrepareDeath(player, lastHitKiller, mostDamageKiller)
if player:isPlayer() then
local ppos = player:getPosition()
if isInRange(ppos, arena.frompos, arena.topos) then
local maxhp = player:getMaxHealth()
player:addHealth(maxhp)
addEvent(doCreatureAddHealth, 100, player:getId(), maxhp)
player:sendTextMessage(MESSAGE_STATUS_WARNING,"[Arena]: You lost the duel.")
end
if isInRange(ppos, arena.frompos, arena.topos) then
player:teleportTo(arena.exitpos)
return true
end
end
return true
end
function onLogin(player)
player:registerEvent("pvparena")
return true
end