This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
tazerman2
hello all i need a little help i need make evasion from raidboss/monster/minions
like now a raidboss have same accuracy with evasion i need make a code for take
accuracy from player and sub -5 / - 10 from evasion like same this
public int getEvasionRate(final L2Character target)
{
if (_activeChar == null)
return 1;
float SubEvasion = -20;
if(_activeChar instanceof L2RaidBossInstance)
{
return (int) calcStat(Stats.EVASION_RATE, _activeChar.getEvasionRate(_activeChar) - SubEvasion, target, null);
}
return (int) (calcStat(Stats.EVASION_RATE, 0, target, null) / _activeChar.getArmourExpertisePenalty());
}
but i am not sure how to do that if any can help i am happy
6 answers to this question
Recommended Posts