• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X Arena PvP 7.4 Need Help

willks123

New Member
Joined
Dec 31, 2012
Messages
64
Reaction score
2
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:
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
 
while in arena give payer storageID and remove it if he dies/leaves the arena. all those changes u want to make should (i think) be done somewhere else. With the help of your storageID
 
Back
Top