My server is 7.4 - 0.7
I'm using an Arena pvp script, I need someone to help me make the following changes:
1- Infinite Runes and Pots inside the arena.
2- You cannot make runes inside the arena
3- Does not increase ML or Skills inside the arena.
If anyone can help me!!!
Below is my arena script:
I'm using an Arena pvp script, I need someone to help me make the following changes:
1- Infinite Runes and Pots inside the arena.
2- You cannot make runes inside the arena
3- Does not increase ML or Skills inside the arena.
If anyone can help me!!!
Below is my arena script:
Lua:--[[ PvP Aerna v0.1 by Shawak ]]-- local corpse_ids = { 3065, -- famale 3058 -- male } --------------------------- local arena = {------------ --------------------------- -- Put your pvp areas here: {main_pos = {x = 32395, y = 32194, z = 7}, frompos = {x = 32389, y = 32188, z = 7}, topos = {x = 32402, y = 32200, z = 7}}, } ------------------------- function onStatsChange(cid, attacker, type, combat, value) if combat == COMBAT_HEALING then return true end if getCreatureHealth(cid) > value then return true end local arenaID = 0 for i = 1, #arena do if isInRange(getCreaturePosition(cid), arena[i].frompos, arena[i].topos) then arenaID = i break end if i == #arena then return true end end local corpse = doCreateItem((corpse_ids[getPlayerSex(cid)+1]), 1, getPlayerPosition(cid)) doSetItemSpecialDescription(corpse, "You recognize "..getCreatureName(cid)..". He was killed by "..(isMonster(attacker) and "a "..string.lower(getCreatureName(attacker)) or isCreature(attacker) and getCreatureName(attacker) or "a field item")..".\n[PvP Arena Kill]") doTeleportThing(cid, arena[arenaID].main_pos) doSendMagicEffect(getCreaturePosition(cid), 10) doRemoveConditions(cid) doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) --doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You got killed by "..(isMonster(attacker) and "a "..string.lower(getCreatureName(attacker)) or isCreature(attacker) and getCreatureName(attacker) or "a field item").." in a pvp arena.") if isPlayer(attacker) then doPlayerSendTextMessage(attacker, MESSAGE_STATUS_CONSOLE_BLUE, "You killed "..getCreatureName(cid).." in a pvp arena.") end return false end