If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision last version:
L2JDP Revision last version:
Adventurer is provlem skill..
all skills 1dmg :S
what this :S
[help]Adventurer
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: [help]Adventurer
Please post your revisions numbers for core and datapack, also if you are using Beta High Five or Stable Freya.
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

- DareStrike
- Posts: 376
- Joined: Sun May 01, 2011 1:20 pm
Re: [help]Adventurer
this provlem for l2jfreya..
this update for full provlem for dmg dagger for 1dmg all skills :S
1
2
3
this is provlem :S
// Skill is blow and it has 0% to make dmg... thats just wrong
if (blowChance == 0)
this update for full provlem for dmg dagger for 1dmg all skills :S
1
2
3
Code: Select all
// Skill is blow and it has 0% to make dmg... thats just wrong if (blowChance == 0) { _log.log(Level.WARNING, "Skill " + skill.getId() + " - " + skill.getName() + " has 0 blow land chance, yet its a blow skill!"); //TODO: return false; //lets add 20 for now, till all skills are corrected blowChance = 20; } if (isBehind(target, activeChar)) blowChance *= 2; //double chance from behind else if (isInFrontOf(target, activeChar)) { if ((skill.getCondition() & L2Skill.COND_BEHIND) != 0) return false; //base chance from front } else blowChance *= 1.5; //50% better chance from side return activeChar.calcStat(Stats.BLOW_RATE, blowChance * (1.0 + (activeChar.getDEX()) / 100.), target, null) > Rnd.get(100); } /** * Those are altered formulas for blow lands * Return True if the target is IN FRONT of the L2Character.<BR><BR> */ public static boolean isInFrontOf(L2Character target, L2Character attacker) { if (target == null) return false; double angleChar, angleTarget, angleDiff; angleTarget = Util.calculateAngleFrom(target, attacker); angleChar = Util.convertHeadingToDegree(target.getHeading()); angleDiff = angleChar - angleTarget; if (angleDiff <= -360 + FRONT_MAX_ANGLE) angleDiff += 360; if (angleDiff >= 360 - FRONT_MAX_ANGLE) angleDiff -= 360; if (Math.abs(angleDiff) <= FRONT_MAX_ANGLE) return true; return false; } /** * Those are altered formulas for blow lands * Return True if the L2Character is behind the target and can't be seen.<BR><BR> */ public static boolean isBehind(L2Character target, L2Character attacker) { if (target == null) return false; double angleChar, angleTarget, angleDiff; L2Character target1 = target; angleChar = Util.calculateAngleFrom(attacker, target1); angleTarget = Util.convertHeadingToDegree(target1.getHeading()); angleDiff = angleChar - angleTarget; if (angleDiff <= -360 + BACK_MAX_ANGLE) angleDiff += 360; if (angleDiff >= 360 - BACK_MAX_ANGLE) angleDiff -= 360; if (Math.abs(angleDiff) <= BACK_MAX_ANGLE) return true; return false; }}
// Skill is blow and it has 0% to make dmg... thats just wrong
if (blowChance == 0)