Code: Select all
case 7: //Magic DMG absorbing Shield
SetMagicProtectionFlag(sOwnerH, DEF_OWNERTYPE_PLAYER, TRUE);
Code: Select all
case 7: //Magic DMG absorbing Shield
SetMagicProtectionFlag(sOwnerH, DEF_OWNERTYPE_NPC, TRUE);
I got this code
Code: Select all
if (m_pClientList[sTargetH]->m_cMagicEffectStatus[ DEF_MAGICTYPE_PROTECT ] == 7) {
iTeller += iDamage;
if (iTeller <= 150) { //MagicShield Absorbs 150 damage
iDamage = 0; }
else { iDamage = iDamage;}
}
Effect_Damage_Spot
Effect_Damage_Spot_Type2
and in Effect_Damage_Spot_DamageMove
The shield works will, it absorbs 150 dmg magical dmg before I can get hit with magic, with spells that only have 1 hit tough. My question is now, all those different effects are like blizzards 1st hit,2nd hit, 3rd hit?
Becuz then my shield would absorb 450 dmg and then I should make my counter global variable.
Another question is when the shield is all done absorbing dmg, the aura stays there, and i cant reshield myself, how do I remove the aura and the cooldown? but only for that spell, I dont want to cancellate berserk and all other buffs as well.
Final question is, this only absorbs magical dmg since I searched for Protection from magic, but how can I make it absorb psych dmg as well?
yes im nub lol

Cheers Tester