tazerman2 Posted February 17, 2016 Posted February 17, 2016 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
0 DONALD TRUMP 2016 Posted February 18, 2016 Posted February 18, 2016 why not just give the raid a passive that adds 20 accuracy LOL or 10 evasion
0 tazerman2 Posted February 20, 2016 Author Posted February 20, 2016 you crazy ? i have all raidboss 20-95 levels and same mob 1-95 levels code is better...
0 DONALD TRUMP 2016 Posted February 20, 2016 Posted February 20, 2016 you crazy ? i have all raidboss 20-95 levels and same mob 1-95 levels code is better... rewrite your post in english
0 Rootware Posted February 20, 2016 Posted February 20, 2016 if(_activeChar instanceof L2RaidBossInstance) LMAO
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