• 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!

Dead by Field Item

Soul Jocker

New Member
Joined
Sep 26, 2011
Messages
24
Reaction score
0
Hi!

I'm having a crazy bug and don't know how to solve it.

My server has a spell who gives poison condition on target (works ov PVP only).
Then, when the player is hit by this spell, he got poisoned.

IF this player dies by the poison, the killer don't got this frag and the Die History in the site says "player died at lvl 500 by field item."

This bug occurs for all conditions... Poison, Fire, Curse, Bleeding....

Someone knows how to solve it?
 
TFS 1.2

Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setArea(createCombatArea(AREA_CROSS6X6))

function onGetFormulaValues(player, level, maglevel)
    local min = (level / 5) + (maglevel * 21) + 1050
    local max = (level / 5) + (maglevel * 25) + 1075
    return -min, -max
end

local condition = Condition(CONDITION_CURSED)
condition:setParameter(CONDITION_PARAM_DELAYED, true)
condition:addDamage(23, 800, -200)
combat:setCondition(condition)

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, variant)
if creature:isPlayer() then
        local city = CityWars.getPlayerWar(creature)
        if city and not city:eek:nCastSpell(creature, 'ultimateExplosion') then
            return false
        end
    end
    return combat:execute(creature, variant)
end

This is a same spell but add CURSE instead POISON
 
Last edited by a moderator:
Do you have a shorter pz lock time in config.lua?

Is your TFS modified?

What occasions does this happen?
 
Config.lua is Default
TFS not modified

It happens when some player dies by any codition... Burning, Poison, Curse...
If the last hit was one of these conditions the bug happens.
 
Back
Top