• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua COMBAT_PARAM_BLOCKSHIELD and COMBAT_PARAM_BLOCKARMOR what it really means? TFS 1.3

Icaraii

Well-Known Member
Joined
Jan 5, 2020
Messages
469
Solutions
1
Reaction score
58
Hello guys,

I'm doing some custom spells and I would like to know more about COMBAT_PARAM_BLOCKSHIELD and COMBAT_PARAM_BLOCKARMOR. So I know they are a way to ignore monsters defence and armor, but how they really work? If a monster has 100 armor, what does it mean? Does it mean that if a player would deal 100 damage to a monster it would receive 100 - 10% of it?

Also, how much is it the max of armor and defence a monster can have? 100? 1000? 1000000?

Also, what does it mean CONDITION_SPELLGROUPCOOLDOWN? Does it reduces the cooldown of others spell after casting a spell that has this condition?

What's the difference between CONDITION_SPELLCOOLDOWN and CONDITION_SPELLGROUPCOOLDOWN?

What does it mean CONDITION_PACIFIED?

I would be glad if anyone could explain that to me.
 
Last edited:
Right, my mistake, they make the spell consider the armor and the defence. But do you know how the numbers works?

C++:
    damage = static_cast<int32_t>(std::round(damage * ((100 - elementMod) / 100.)));
            if (damage <= 0) {
                damage = 0;
                blockType = BLOCK_ARMOR;

Is this the formular it uses when considering armor?

If we consider a player dealing 100 damage and the monsters has 100 armor:

Would it be like this?
(damage * ((100 - elementMod) / 100.))
(100 * ((100 - 100) / 100 ))
 
Back
Top