|
|
|
|
#1 |
|
L2-scripts клиент Classic 1.5 + ГЕО до 1 июля
Регистрация: 23.09.2013
Сообщений: 437
|
solution:
instead of this Код:
else
{
info.damage *= (1.0D + (Rnd.get() * attacker.getRandomDamage() * 2.0D - attacker.getRandomDamage()) / 100.0D);
if (dual) {
info.damage /= 2.0D;
}
if (info.crit)
{
double tempDamage = info.damage;
tempDamage *= 0.01D * attacker.calcStat(Stats.P_CRITICAL_DAMAGE, target, null);
tempDamage = 2.0D * target.calcStat(Stats.CRIT_DAMAGE_RECEPTIVE, tempDamage, attacker, null);
tempDamage += info.crit_static;
info.damage = Math.max(tempDamage, info.damage);
}
}
[1:24:20 AM] Rivelia: to this [1:24:24 AM] Rivelia: Код:
else
{
info.damage *= (1.0D + (Rnd.get() * attacker.getRandomDamage() * 2.0D - attacker.getRandomDamage()) / 100.0D);
if (dual) {
info.damage /= 2.0D;
}
if (info.crit)
{
info.damage *= 0.01D * attacker.calcStat(Stats.P_CRITICAL_DAMAGE, target, null);
info.damage = (2.0D * target.calcStat(Stats.CRIT_DAMAGE_RECEPTIVE, info.damage, attacker, null));
info.crit_static = attacker.calcStat(Stats.P_CRITICAL_DAMAGE_STATIC, target, null);
info.damage += info.crit_static;
}
}
[1:24:38 AM] Rivelia: Код:
if (info.crit) {
if ((skill.isChargeBoost()) || (skill.getSkillType() == Skill.SkillType.CHARGE)) {
info.damage *= 2.0D;
} else {
info.damage = Math.max(info.damage, 2.0D * target.calcStat(Stats.CRIT_DAMAGE_RECEPTIVE, info.damage, attacker, skill));
}
}
[1:24:51 AM] Rivelia: Код:
if (info.crit) {
info.damage *= 2.0D;
}
|
|
|
|
#2 | |
|
Модератор
Регистрация: 03.06.2012
Сообщений: 4,624
|
Цитата:
__________________
Техническая поддержка L2-Scripts Внимание: с 1 мая 2015 г. скайп технической поддержки будет: L2-scripts старый скайп тех поддержки обслуживаться не будет ! |
|
|
|
|
#3 |
|
L2-scripts клиент Classic 1.5 + ГЕО до 1 июля
Регистрация: 23.09.2013
Сообщений: 437
|
i modified it , it s from our core.
|
|
|
|
#4 |
|
Главный программист
Регистрация: 18.01.2011
Сообщений: 4,429
|
send me again in skype. closed.
__________________
Внимание: с 1 мая 2015 г. скайп технической поддержки будет: L2-scripts старый скайп тех поддержки обслуживаться не будет ! |
|