• 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 1.X+ field damage 50% less damage

leik meris

Active Member
Joined
Feb 17, 2010
Messages
93
Reaction score
38
Hello everyone, I use tfs 1.5 7.72 from nekiro.

Does anyone know how to modify the damage reduction?

1713546969196.png

Lua:
<item id="1487" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1488" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>

The initial damage should be 20, but is reduced to 10.
 
Stepping into the field does 20 damage.
The burn effect is 10 damage, 7 times.

If you're wanting to wear an item that reduces the initial damage, use fieldabsorbpercentfire
 
Stepping into the field does 20 damage.
The burn effect is 10 damage, 7 times.

If you're wanting to wear an item that reduces the initial damage, use fieldabsorbpercentfire

The initial damage should be 20, but is reduced to 10.
Post automatically merged:

The burn effect is 10 damage, 7 times.

The burn effect is 5 damage, 7 times.
 
Last edited:

A quick solution would be by adding the following on the conditional
&& params.itemId == 0

Lua:
            if (targetPlayer && casterPlayer != targetPlayer && targetPlayer->getSkull() != SKULL_BLACK && damage.primary.type != COMBAT_HEALING) && params.itemId == 0

Code:
//if (field && creature->getPlayer() && attacker && attacker->getPlayer()) {
    //    damage.primary.value = static_cast<int32_t>(std::round(damage.primary.value / 2.));
    //}
solved the problem thank you very much
 
Back
Top