id
int64
22
34.9k
comment_id
int64
0
328
comment
stringlengths
2
2.55k
code
stringlengths
31
107k
classification
stringclasses
6 values
isFinished
bool
1 class
code_context_2
stringlengths
21
27.3k
code_context_10
stringlengths
29
27.3k
code_context_20
stringlengths
29
27.3k
1,032
69
// bishop Big Bang
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008);
1,032
70
// Ninja Ambush
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150;
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi));
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true;
1,032
71
// Ninja Storm knockback
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001);
break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true;
1,032
72
// Assassinate
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true;
maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /**
1,032
73
// Ninja Ambush
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150;
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi));
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true;
1,032
74
// SUPER dragon ROAR
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150;
maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35;
1,032
75
/** *@author Supiangel * */
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001);
isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35;
case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003);
1,032
76
// First Strike
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
* */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
77
// Back-flip kick
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
/** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
78
// Backward Blow
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
79
// Uppercut
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
* */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
80
// Spinning Punch
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
81
// Final Punch
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
82
// Absorb
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true;
1,032
83
// Smash
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi);
isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
1,032
84
// Double Shot
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true;
1,032
85
// Fatal Bullet
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
86
// Decoy
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004);
1,032
87
// Withdraw
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005);
1,032
88
// Triple Shot
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35;
ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001);
1,032
89
// Fire Shot
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
90
// Ice Shot
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true;
break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
91
// Dragon Strike
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004);
1,032
92
// Fist
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005);
1,032
93
// Energy Orb
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35;
isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire
1,032
94
// Demolition
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003);
1,032
95
// Snatch
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35;
break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007);
1,032
96
// Rapid Fire
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008);
1,032
97
// Air Strike
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default:
1,032
98
// Battleship Cannon
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35;
break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
1,032
99
// Battleship Torpedo
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) {
break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
33,799
0
// TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS
@DELETE @Path("/services/{id}") @Produces({ "application/json", "application/xml" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_SERVICE + "\")") public void deleteService(@PathParam("id") Long id) { if(LOG.isDebugEnabled()) { LOG.debug("==> ServiceREST.deleteService(" + id + ")"); } RangerPerfTracer perf = null; try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.deleteService(serviceId=" + id + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(id, Action.DELETE); bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS XXService service = daoManager.getXXService().getById(id); EmbeddedServiceDefsUtil embeddedServiceDefsUtil = EmbeddedServiceDefsUtil.instance(); if (service.getType().equals(embeddedServiceDefsUtil.getTagServiceDefId())){ List<XXService> referringServices=daoManager.getXXService().findByTagServiceId(id); if(!CollectionUtils.isEmpty(referringServices)){ Set<String> referringServiceNames=new HashSet<String>(); for(XXService xXService:referringServices){ referringServiceNames.add(xXService.getName()); if(referringServiceNames.size()>=10){ break; } } if(referringServices.size()<=10){ throw restErrorUtil.createRESTException("Tag service '" + service.getName() + "' is being referenced by " + referringServices.size() + " services: "+referringServiceNames,MessageEnums.OPER_NOT_ALLOWED_FOR_STATE); }else{ throw restErrorUtil.createRESTException("Tag service '" + service.getName() + "' is being referenced by " + referringServices.size() + " services: "+referringServiceNames+" and more..",MessageEnums.OPER_NOT_ALLOWED_FOR_STATE); } } } XXServiceDef xxServiceDef = daoManager.getXXServiceDef().getById(service.getType()); bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname()); tagStore.deleteAllTagObjectsForService(service.getName()); svcStore.deleteService(id); } catch(WebApplicationException excp) { throw excp; } catch(Throwable excp) { LOG.error("deleteService(" + id + ") failed", excp); throw restErrorUtil.createRESTException(excp.getMessage()); } finally { RangerPerfTracer.log(perf); } if(LOG.isDebugEnabled()) { LOG.debug("<== ServiceREST.deleteService(" + id + ")"); } }
DESIGN
true
validator.validate(id, Action.DELETE); bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS XXService service = daoManager.getXXService().getById(id); EmbeddedServiceDefsUtil embeddedServiceDefsUtil = EmbeddedServiceDefsUtil.instance();
LOG.debug("==> ServiceREST.deleteService(" + id + ")"); } RangerPerfTracer perf = null; try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.deleteService(serviceId=" + id + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(id, Action.DELETE); bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS XXService service = daoManager.getXXService().getById(id); EmbeddedServiceDefsUtil embeddedServiceDefsUtil = EmbeddedServiceDefsUtil.instance(); if (service.getType().equals(embeddedServiceDefsUtil.getTagServiceDefId())){ List<XXService> referringServices=daoManager.getXXService().findByTagServiceId(id); if(!CollectionUtils.isEmpty(referringServices)){ Set<String> referringServiceNames=new HashSet<String>(); for(XXService xXService:referringServices){ referringServiceNames.add(xXService.getName()); if(referringServiceNames.size()>=10){ break;
@DELETE @Path("/services/{id}") @Produces({ "application/json", "application/xml" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.DELETE_SERVICE + "\")") public void deleteService(@PathParam("id") Long id) { if(LOG.isDebugEnabled()) { LOG.debug("==> ServiceREST.deleteService(" + id + ")"); } RangerPerfTracer perf = null; try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.deleteService(serviceId=" + id + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(id, Action.DELETE); bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS XXService service = daoManager.getXXService().getById(id); EmbeddedServiceDefsUtil embeddedServiceDefsUtil = EmbeddedServiceDefsUtil.instance(); if (service.getType().equals(embeddedServiceDefsUtil.getTagServiceDefId())){ List<XXService> referringServices=daoManager.getXXService().findByTagServiceId(id); if(!CollectionUtils.isEmpty(referringServices)){ Set<String> referringServiceNames=new HashSet<String>(); for(XXService xXService:referringServices){ referringServiceNames.add(xXService.getName()); if(referringServiceNames.size()>=10){ break; } } if(referringServices.size()<=10){ throw restErrorUtil.createRESTException("Tag service '" + service.getName() + "' is being referenced by " + referringServices.size() + " services: "+referringServiceNames,MessageEnums.OPER_NOT_ALLOWED_FOR_STATE); }else{ throw restErrorUtil.createRESTException("Tag service '" + service.getName() + "' is being referenced by " + referringServices.size() + " services: "+referringServiceNames+" and more..",MessageEnums.OPER_NOT_ALLOWED_FOR_STATE); } } } XXServiceDef xxServiceDef = daoManager.getXXServiceDef().getById(service.getType());
1,034
0
// TDOD: make this meaningful...
public void engineSetPadding(String padding) throws NoSuchPaddingException { String paddingName = Strings.toUpperCase(padding); // TDOD: make this meaningful... if (paddingName.equals("NOPADDING")) { } else if (paddingName.equals("PKCS5PADDING") || paddingName.equals("PKCS7PADDING")) { } else { throw new NoSuchPaddingException("padding not available with IESCipher"); } }
DESIGN
true
{ String paddingName = Strings.toUpperCase(padding); // TDOD: make this meaningful... if (paddingName.equals("NOPADDING")) {
public void engineSetPadding(String padding) throws NoSuchPaddingException { String paddingName = Strings.toUpperCase(padding); // TDOD: make this meaningful... if (paddingName.equals("NOPADDING")) { } else if (paddingName.equals("PKCS5PADDING") || paddingName.equals("PKCS7PADDING")) { } else { throw new NoSuchPaddingException("padding not available with IESCipher"); }
public void engineSetPadding(String padding) throws NoSuchPaddingException { String paddingName = Strings.toUpperCase(padding); // TDOD: make this meaningful... if (paddingName.equals("NOPADDING")) { } else if (paddingName.equals("PKCS5PADDING") || paddingName.equals("PKCS7PADDING")) { } else { throw new NoSuchPaddingException("padding not available with IESCipher"); } }
25,614
0
// TODO: currently assumes that every element is a separate bundle, // but this can be changed by pushing some of this logic into the "DoFnRunner"
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
DESIGN
true
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
25,614
1
// handover to queue, do not block the grpc thread
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
NONSATD
true
public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); };
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking?
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
25,614
2
// TODO(BEAM-4681): Add support to Flink to support portable timers.
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
IMPLEMENTATION
true
stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking?
public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
25,614
3
// TODO: it would be nice to emit results as they arrive, can thread wait non-blocking?
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
DESIGN
true
// TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received
// handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
25,614
4
// RemoteBundle close blocks until all results are received
private void processElementWithSdkHarness(WindowedValue<InputT> element) throws Exception { checkState( stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
NONSATD
true
// TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) {
}; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
stageBundleFactory != null, "%s not yet prepared", StageBundleFactory.class.getName()); checkState( stateRequestHandler != null, "%s not yet prepared", StateRequestHandler.class.getName()); OutputReceiverFactory receiverFactory = new OutputReceiverFactory() { @Override public FnDataReceiver<OutputT> create(String pCollectionId) { return (receivedElement) -> { // handover to queue, do not block the grpc thread outputQueue.put(KV.of(pCollectionId, receivedElement)); }; } }; try (RemoteBundle bundle = stageBundleFactory.getBundle(receiverFactory, stateRequestHandler, progressHandler)) { logger.debug(String.format("Sending value: %s", element)); // TODO(BEAM-4681): Add support to Flink to support portable timers. Iterables.getOnlyElement(bundle.getInputReceivers().values()).accept(element); // TODO: it would be nice to emit results as they arrive, can thread wait non-blocking? } // RemoteBundle close blocks until all results are received KV<String, OutputT> result; while ((result = outputQueue.poll()) != null) { outputManager.output(outputMap.get(result.getKey()), (WindowedValue) result.getValue()); } }
33,808
0
/** * Determine whether or not access to the given cluster resource should be allowed based * on the privileges of the current user. * * @param cluster the cluster * @param readOnly indicate whether or not this check is for a read only operation * * @return true if the access to this cluster is allowed */
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
NONSATD
true
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
33,808
1
// admin has full access
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
NONSATD
true
PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true;
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } }
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
33,808
2
// TODO : should we log this?
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
DESIGN
true
} } // TODO : should we log this? return false; }
if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
private boolean checkPermission(Cluster cluster, boolean readOnly) { for (GrantedAuthority grantedAuthority : securityHelper.getCurrentAuthorities()) { if (grantedAuthority instanceof AmbariGrantedAuthority) { AmbariGrantedAuthority authority = (AmbariGrantedAuthority) grantedAuthority; PrivilegeEntity privilegeEntity = authority.getPrivilegeEntity(); Integer permissionId = privilegeEntity.getPermission().getId(); // admin has full access if (permissionId.equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION)) { return true; } if (cluster != null) { if (cluster.checkPermission(privilegeEntity, readOnly)) { return true; } } } } // TODO : should we log this? return false; }
9,239
0
// Note: did not manage to reproduce CCE until I changed expand to use ‘for (TopLevelItem item : items)’ rather than ‘for (Item item : items)’; perhaps a compiler-specific issue?
@Issue("JENKINS-20415") @Test public void nonTopLevelItemGroup() throws Exception { MatrixProject mp = j.jenkins.createProject(MatrixProject.class, "mp"); mp.setAxes(new AxisList(new TextAxis("axis", "one", "two"))); assertEquals(2, mp.getItems().size()); ListView v = new ListView("v"); j.jenkins.addView(v); v.setIncludeRegex(".*"); v.setRecurse(true); // Note: did not manage to reproduce CCE until I changed expand to use ‘for (TopLevelItem item : items)’ rather than ‘for (Item item : items)’; perhaps a compiler-specific issue? assertEquals(Collections.singletonList(mp), v.getItems()); }
DEFECT
true
v.setIncludeRegex(".*"); v.setRecurse(true); // Note: did not manage to reproduce CCE until I changed expand to use ‘for (TopLevelItem item : items)’ rather than ‘for (Item item : items)’; perhaps a compiler-specific issue? assertEquals(Collections.singletonList(mp), v.getItems()); }
@Issue("JENKINS-20415") @Test public void nonTopLevelItemGroup() throws Exception { MatrixProject mp = j.jenkins.createProject(MatrixProject.class, "mp"); mp.setAxes(new AxisList(new TextAxis("axis", "one", "two"))); assertEquals(2, mp.getItems().size()); ListView v = new ListView("v"); j.jenkins.addView(v); v.setIncludeRegex(".*"); v.setRecurse(true); // Note: did not manage to reproduce CCE until I changed expand to use ‘for (TopLevelItem item : items)’ rather than ‘for (Item item : items)’; perhaps a compiler-specific issue? assertEquals(Collections.singletonList(mp), v.getItems()); }
@Issue("JENKINS-20415") @Test public void nonTopLevelItemGroup() throws Exception { MatrixProject mp = j.jenkins.createProject(MatrixProject.class, "mp"); mp.setAxes(new AxisList(new TextAxis("axis", "one", "two"))); assertEquals(2, mp.getItems().size()); ListView v = new ListView("v"); j.jenkins.addView(v); v.setIncludeRegex(".*"); v.setRecurse(true); // Note: did not manage to reproduce CCE until I changed expand to use ‘for (TopLevelItem item : items)’ rather than ‘for (Item item : items)’; perhaps a compiler-specific issue? assertEquals(Collections.singletonList(mp), v.getItems()); }
1,051
0
/** * TODO: we will need to design the shared-memory region data structure, so that we can carry * the key/value type definition over from map shuffle store via the shuffle channel, plus this enum * category information for key. * @return */
@Override public ShuffleDataModel.KValueTypeId getKValueTypeId() { int val = ngetKValueTypeId(this.pointerToStore); if (val==ShuffleDataModel.KValueTypeId.Int.state){ return ShuffleDataModel.KValueTypeId.Int; } else if (val == ShuffleDataModel.KValueTypeId.Long.state){ return ShuffleDataModel.KValueTypeId.Long; } else if (val == ShuffleDataModel.KValueTypeId.Float.state){ return ShuffleDataModel.KValueTypeId.Float; } else if (val == ShuffleDataModel.KValueTypeId.Double.state){ return ShuffleDataModel.KValueTypeId.Double; } else if (val == ShuffleDataModel.KValueTypeId.String.state){ return ShuffleDataModel.KValueTypeId.String; } else if (val == ShuffleDataModel.KValueTypeId.ByteArray.state){ return ShuffleDataModel.KValueTypeId.ByteArray; } else if (val == ShuffleDataModel.KValueTypeId.Object.state){ return ShuffleDataModel.KValueTypeId.Object; } else if (val == ShuffleDataModel.KValueTypeId.Unknown.state) { throw new RuntimeException("Unknown key value type encountered"); } else { throw new RuntimeException("unsupported key value type encountered"); } }
DESIGN
true
@Override public ShuffleDataModel.KValueTypeId getKValueTypeId() { int val = ngetKValueTypeId(this.pointerToStore); if (val==ShuffleDataModel.KValueTypeId.Int.state){ return ShuffleDataModel.KValueTypeId.Int; } else if (val == ShuffleDataModel.KValueTypeId.Long.state){ return ShuffleDataModel.KValueTypeId.Long; } else if (val == ShuffleDataModel.KValueTypeId.Float.state){ return ShuffleDataModel.KValueTypeId.Float; } else if (val == ShuffleDataModel.KValueTypeId.Double.state){ return ShuffleDataModel.KValueTypeId.Double; } else if (val == ShuffleDataModel.KValueTypeId.String.state){ return ShuffleDataModel.KValueTypeId.String; } else if (val == ShuffleDataModel.KValueTypeId.ByteArray.state){ return ShuffleDataModel.KValueTypeId.ByteArray; } else if (val == ShuffleDataModel.KValueTypeId.Object.state){ return ShuffleDataModel.KValueTypeId.Object; } else if (val == ShuffleDataModel.KValueTypeId.Unknown.state) { throw new RuntimeException("Unknown key value type encountered"); } else { throw new RuntimeException("unsupported key value type encountered"); } }
@Override public ShuffleDataModel.KValueTypeId getKValueTypeId() { int val = ngetKValueTypeId(this.pointerToStore); if (val==ShuffleDataModel.KValueTypeId.Int.state){ return ShuffleDataModel.KValueTypeId.Int; } else if (val == ShuffleDataModel.KValueTypeId.Long.state){ return ShuffleDataModel.KValueTypeId.Long; } else if (val == ShuffleDataModel.KValueTypeId.Float.state){ return ShuffleDataModel.KValueTypeId.Float; } else if (val == ShuffleDataModel.KValueTypeId.Double.state){ return ShuffleDataModel.KValueTypeId.Double; } else if (val == ShuffleDataModel.KValueTypeId.String.state){ return ShuffleDataModel.KValueTypeId.String; } else if (val == ShuffleDataModel.KValueTypeId.ByteArray.state){ return ShuffleDataModel.KValueTypeId.ByteArray; } else if (val == ShuffleDataModel.KValueTypeId.Object.state){ return ShuffleDataModel.KValueTypeId.Object; } else if (val == ShuffleDataModel.KValueTypeId.Unknown.state) { throw new RuntimeException("Unknown key value type encountered"); } else { throw new RuntimeException("unsupported key value type encountered"); } }
@Override public ShuffleDataModel.KValueTypeId getKValueTypeId() { int val = ngetKValueTypeId(this.pointerToStore); if (val==ShuffleDataModel.KValueTypeId.Int.state){ return ShuffleDataModel.KValueTypeId.Int; } else if (val == ShuffleDataModel.KValueTypeId.Long.state){ return ShuffleDataModel.KValueTypeId.Long; } else if (val == ShuffleDataModel.KValueTypeId.Float.state){ return ShuffleDataModel.KValueTypeId.Float; } else if (val == ShuffleDataModel.KValueTypeId.Double.state){ return ShuffleDataModel.KValueTypeId.Double; } else if (val == ShuffleDataModel.KValueTypeId.String.state){ return ShuffleDataModel.KValueTypeId.String; } else if (val == ShuffleDataModel.KValueTypeId.ByteArray.state){ return ShuffleDataModel.KValueTypeId.ByteArray; } else if (val == ShuffleDataModel.KValueTypeId.Object.state){ return ShuffleDataModel.KValueTypeId.Object; } else if (val == ShuffleDataModel.KValueTypeId.Unknown.state) { throw new RuntimeException("Unknown key value type encountered"); } else { throw new RuntimeException("unsupported key value type encountered"); } }
9,251
0
// FIXME: Ugly hack, but some services (Health) have shapes with names // that differ only in the casing of the first letter, and generating // classes for them breaks on case insensitive filesystems...
public Optional<ClassName> copierClassFor(MemberModel memberModel) { if (canCopyReference(memberModel)) { return Optional.empty(); } if (canUseStandardCopier(memberModel)) { return Optional.of(ClassName.get(StandardMemberCopier.class)); } // FIXME: Ugly hack, but some services (Health) have shapes with names // that differ only in the casing of the first letter, and generating // classes for them breaks on case insensitive filesystems... String shapeName = memberModel.getC2jShape(); if (shapeName.substring(0, 1).toLowerCase(Locale.ENGLISH).equals(shapeName.substring(0, 1))) { shapeName = "_" + shapeName; } return Optional.of(poetExtensions.getModelClass(shapeName + "Copier")); }
DESIGN
true
return Optional.of(ClassName.get(StandardMemberCopier.class)); } // FIXME: Ugly hack, but some services (Health) have shapes with names // that differ only in the casing of the first letter, and generating // classes for them breaks on case insensitive filesystems... String shapeName = memberModel.getC2jShape(); if (shapeName.substring(0, 1).toLowerCase(Locale.ENGLISH).equals(shapeName.substring(0, 1))) {
public Optional<ClassName> copierClassFor(MemberModel memberModel) { if (canCopyReference(memberModel)) { return Optional.empty(); } if (canUseStandardCopier(memberModel)) { return Optional.of(ClassName.get(StandardMemberCopier.class)); } // FIXME: Ugly hack, but some services (Health) have shapes with names // that differ only in the casing of the first letter, and generating // classes for them breaks on case insensitive filesystems... String shapeName = memberModel.getC2jShape(); if (shapeName.substring(0, 1).toLowerCase(Locale.ENGLISH).equals(shapeName.substring(0, 1))) { shapeName = "_" + shapeName; } return Optional.of(poetExtensions.getModelClass(shapeName + "Copier")); }
public Optional<ClassName> copierClassFor(MemberModel memberModel) { if (canCopyReference(memberModel)) { return Optional.empty(); } if (canUseStandardCopier(memberModel)) { return Optional.of(ClassName.get(StandardMemberCopier.class)); } // FIXME: Ugly hack, but some services (Health) have shapes with names // that differ only in the casing of the first letter, and generating // classes for them breaks on case insensitive filesystems... String shapeName = memberModel.getC2jShape(); if (shapeName.substring(0, 1).toLowerCase(Locale.ENGLISH).equals(shapeName.substring(0, 1))) { shapeName = "_" + shapeName; } return Optional.of(poetExtensions.getModelClass(shapeName + "Copier")); }
25,637
0
// TODO: Maybe sine curve is more appropriate for turning? // Pass the raw turn value through an input curve, then apply the turn sensitivity.
@Override double getTurnInput(HumanInput humanInput) { // TODO: Maybe sine curve is more appropriate for turning? // Pass the raw turn value through an input curve, then apply the turn sensitivity. return Util.applyInputCurve(humanInput.getGamePad().rs().getHorizontal(), .75, 3) * turnSensitivity; }
DESIGN
true
@Override double getTurnInput(HumanInput humanInput) { // TODO: Maybe sine curve is more appropriate for turning? // Pass the raw turn value through an input curve, then apply the turn sensitivity. return Util.applyInputCurve(humanInput.getGamePad().rs().getHorizontal(), .75, 3) * turnSensitivity; }
@Override double getTurnInput(HumanInput humanInput) { // TODO: Maybe sine curve is more appropriate for turning? // Pass the raw turn value through an input curve, then apply the turn sensitivity. return Util.applyInputCurve(humanInput.getGamePad().rs().getHorizontal(), .75, 3) * turnSensitivity; }
@Override double getTurnInput(HumanInput humanInput) { // TODO: Maybe sine curve is more appropriate for turning? // Pass the raw turn value through an input curve, then apply the turn sensitivity. return Util.applyInputCurve(humanInput.getGamePad().rs().getHorizontal(), .75, 3) * turnSensitivity; }
17,449
0
/** * Returns a snapshot mapping the names of each file in the directory at the given path to the * last modified time of that file. */
public ImmutableMap<Name, Long> snapshotModifiedTimes(JimfsPath path) throws IOException { ImmutableMap.Builder<Name, Long> modifiedTimes = ImmutableMap.builder(); store.readLock().lock(); try { Directory dir = (Directory) lookUp(path, Options.FOLLOW_LINKS).requireDirectory(path).file(); // TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls for (DirectoryEntry entry : dir) { if (!entry.name().equals(Name.SELF) && !entry.name().equals(Name.PARENT)) { modifiedTimes.put(entry.name(), entry.file().getLastModifiedTime()); } } return modifiedTimes.build(); } finally { store.readLock().unlock(); } }
NONSATD
true
public ImmutableMap<Name, Long> snapshotModifiedTimes(JimfsPath path) throws IOException { ImmutableMap.Builder<Name, Long> modifiedTimes = ImmutableMap.builder(); store.readLock().lock(); try { Directory dir = (Directory) lookUp(path, Options.FOLLOW_LINKS).requireDirectory(path).file(); // TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls for (DirectoryEntry entry : dir) { if (!entry.name().equals(Name.SELF) && !entry.name().equals(Name.PARENT)) { modifiedTimes.put(entry.name(), entry.file().getLastModifiedTime()); } } return modifiedTimes.build(); } finally { store.readLock().unlock(); } }
public ImmutableMap<Name, Long> snapshotModifiedTimes(JimfsPath path) throws IOException { ImmutableMap.Builder<Name, Long> modifiedTimes = ImmutableMap.builder(); store.readLock().lock(); try { Directory dir = (Directory) lookUp(path, Options.FOLLOW_LINKS).requireDirectory(path).file(); // TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls for (DirectoryEntry entry : dir) { if (!entry.name().equals(Name.SELF) && !entry.name().equals(Name.PARENT)) { modifiedTimes.put(entry.name(), entry.file().getLastModifiedTime()); } } return modifiedTimes.build(); } finally { store.readLock().unlock(); } }
public ImmutableMap<Name, Long> snapshotModifiedTimes(JimfsPath path) throws IOException { ImmutableMap.Builder<Name, Long> modifiedTimes = ImmutableMap.builder(); store.readLock().lock(); try { Directory dir = (Directory) lookUp(path, Options.FOLLOW_LINKS).requireDirectory(path).file(); // TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls for (DirectoryEntry entry : dir) { if (!entry.name().equals(Name.SELF) && !entry.name().equals(Name.PARENT)) { modifiedTimes.put(entry.name(), entry.file().getLastModifiedTime()); } } return modifiedTimes.build(); } finally { store.readLock().unlock(); } }
17,449
1
// TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls
public ImmutableMap<Name, Long> snapshotModifiedTimes(JimfsPath path) throws IOException { ImmutableMap.Builder<Name, Long> modifiedTimes = ImmutableMap.builder(); store.readLock().lock(); try { Directory dir = (Directory) lookUp(path, Options.FOLLOW_LINKS).requireDirectory(path).file(); // TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls for (DirectoryEntry entry : dir) { if (!entry.name().equals(Name.SELF) && !entry.name().equals(Name.PARENT)) { modifiedTimes.put(entry.name(), entry.file().getLastModifiedTime()); } } return modifiedTimes.build(); } finally { store.readLock().unlock(); } }
DESIGN
true
try { Directory dir = (Directory) lookUp(path, Options.FOLLOW_LINKS).requireDirectory(path).file(); // TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls for (DirectoryEntry entry : dir) { if (!entry.name().equals(Name.SELF) && !entry.name().equals(Name.PARENT)) {
public ImmutableMap<Name, Long> snapshotModifiedTimes(JimfsPath path) throws IOException { ImmutableMap.Builder<Name, Long> modifiedTimes = ImmutableMap.builder(); store.readLock().lock(); try { Directory dir = (Directory) lookUp(path, Options.FOLLOW_LINKS).requireDirectory(path).file(); // TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls for (DirectoryEntry entry : dir) { if (!entry.name().equals(Name.SELF) && !entry.name().equals(Name.PARENT)) { modifiedTimes.put(entry.name(), entry.file().getLastModifiedTime()); } } return modifiedTimes.build(); } finally { store.readLock().unlock(); } }
public ImmutableMap<Name, Long> snapshotModifiedTimes(JimfsPath path) throws IOException { ImmutableMap.Builder<Name, Long> modifiedTimes = ImmutableMap.builder(); store.readLock().lock(); try { Directory dir = (Directory) lookUp(path, Options.FOLLOW_LINKS).requireDirectory(path).file(); // TODO(cgdecker): Investigate whether WatchServices should keep a reference to the actual // directory when SecureDirectoryStream is supported rather than looking up the directory // each time the WatchService polls for (DirectoryEntry entry : dir) { if (!entry.name().equals(Name.SELF) && !entry.name().equals(Name.PARENT)) { modifiedTimes.put(entry.name(), entry.file().getLastModifiedTime()); } } return modifiedTimes.build(); } finally { store.readLock().unlock(); } }
17,459
0
//GEN-FIRST:event_mOSActionPerformed
private void mOSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mOSActionPerformed // TODO add your handling code here: // new ViewOrdemServico().setVisible(true); }
NONSATD
true
private void mOSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mOSActionPerformed // TODO add your handling code here: // new ViewOrdemServico().setVisible(true);
private void mOSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mOSActionPerformed // TODO add your handling code here: // new ViewOrdemServico().setVisible(true); }
private void mOSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mOSActionPerformed // TODO add your handling code here: // new ViewOrdemServico().setVisible(true); }
17,459
1
// TODO add your handling code here: // new ViewOrdemServico().setVisible(true);
private void mOSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mOSActionPerformed // TODO add your handling code here: // new ViewOrdemServico().setVisible(true); }
IMPLEMENTATION
true
private void mOSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mOSActionPerformed // TODO add your handling code here: // new ViewOrdemServico().setVisible(true); }
private void mOSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mOSActionPerformed // TODO add your handling code here: // new ViewOrdemServico().setVisible(true); }
private void mOSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mOSActionPerformed // TODO add your handling code here: // new ViewOrdemServico().setVisible(true); }
33,843
0
/** * Creates a new Google Document. Once the document is created, returns its Document ID. * * @param {Docs} service Docs authorized service to be able to create a Doc. * @return {String} Returns the Document ID of the newly created Doc. */
private static String createDocument(Docs service) throws IOException { // TODO: Create a new Google Document in the authorized account. }
NONSATD
true
private static String createDocument(Docs service) throws IOException { // TODO: Create a new Google Document in the authorized account. }
private static String createDocument(Docs service) throws IOException { // TODO: Create a new Google Document in the authorized account. }
private static String createDocument(Docs service) throws IOException { // TODO: Create a new Google Document in the authorized account. }
33,843
1
// TODO: Create a new Google Document in the authorized account.
private static String createDocument(Docs service) throws IOException { // TODO: Create a new Google Document in the authorized account. }
IMPLEMENTATION
true
private static String createDocument(Docs service) throws IOException { // TODO: Create a new Google Document in the authorized account. }
private static String createDocument(Docs service) throws IOException { // TODO: Create a new Google Document in the authorized account. }
private static String createDocument(Docs service) throws IOException { // TODO: Create a new Google Document in the authorized account. }
9,271
0
// TODO: Optimize me.
private static String encodeComponent(String s, Charset charset) { // TODO: Optimize me. try { return URLEncoder.encode(s, charset.name()).replace("+", "%20"); } catch (UnsupportedEncodingException ignored) { throw new UnsupportedCharsetException(charset.name()); } }
DESIGN
true
private static String encodeComponent(String s, Charset charset) { // TODO: Optimize me. try { return URLEncoder.encode(s, charset.name()).replace("+", "%20");
private static String encodeComponent(String s, Charset charset) { // TODO: Optimize me. try { return URLEncoder.encode(s, charset.name()).replace("+", "%20"); } catch (UnsupportedEncodingException ignored) { throw new UnsupportedCharsetException(charset.name()); } }
private static String encodeComponent(String s, Charset charset) { // TODO: Optimize me. try { return URLEncoder.encode(s, charset.name()).replace("+", "%20"); } catch (UnsupportedEncodingException ignored) { throw new UnsupportedCharsetException(charset.name()); } }
33,850
0
// the following stuff did not work and I don't know why!
private void detectTitle() { Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element); } dumpTags(hdoc, HTML.Tag.HEAD); dumpTags(hdoc, HTML.Tag.BODY); dumpTags(hdoc, HTML.Tag.TITLE); dumpTags(hdoc, HTML.Tag.H1); HTMLDocument.Iterator iterator = hdoc.getIterator(HTML.Tag.TITLE); if (iterator != null && iterator.isValid()) { int startOffset = iterator.getStartOffset(); if (startOffset >= 0) { try { System.out.println("HTMLDocument.Iterator for tags TITLE: " + doc.getText(startOffset, iterator.getEndOffset() - startOffset)); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } } else { System.out.println("No valid iterator for tag TITLE found: "+iterator); } } }
DEFECT
true
HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) {
private void detectTitle() { Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element);
private void detectTitle() { Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element); } dumpTags(hdoc, HTML.Tag.HEAD); dumpTags(hdoc, HTML.Tag.BODY); dumpTags(hdoc, HTML.Tag.TITLE); dumpTags(hdoc, HTML.Tag.H1); HTMLDocument.Iterator iterator = hdoc.getIterator(HTML.Tag.TITLE); if (iterator != null && iterator.isValid()) { int startOffset = iterator.getStartOffset(); if (startOffset >= 0) { try {
33,850
1
// TODO Auto-generated catch block
private void detectTitle() { Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element); } dumpTags(hdoc, HTML.Tag.HEAD); dumpTags(hdoc, HTML.Tag.BODY); dumpTags(hdoc, HTML.Tag.TITLE); dumpTags(hdoc, HTML.Tag.H1); HTMLDocument.Iterator iterator = hdoc.getIterator(HTML.Tag.TITLE); if (iterator != null && iterator.isValid()) { int startOffset = iterator.getStartOffset(); if (startOffset >= 0) { try { System.out.println("HTMLDocument.Iterator for tags TITLE: " + doc.getText(startOffset, iterator.getEndOffset() - startOffset)); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } } else { System.out.println("No valid iterator for tag TITLE found: "+iterator); } } }
IMPLEMENTATION
true
System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); }
Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element); } dumpTags(hdoc, HTML.Tag.HEAD); dumpTags(hdoc, HTML.Tag.BODY); dumpTags(hdoc, HTML.Tag.TITLE); dumpTags(hdoc, HTML.Tag.H1); HTMLDocument.Iterator iterator = hdoc.getIterator(HTML.Tag.TITLE);
private void detectTitle() { Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element); } dumpTags(hdoc, HTML.Tag.HEAD); dumpTags(hdoc, HTML.Tag.BODY); dumpTags(hdoc, HTML.Tag.TITLE); dumpTags(hdoc, HTML.Tag.H1); HTMLDocument.Iterator iterator = hdoc.getIterator(HTML.Tag.TITLE); if (iterator != null && iterator.isValid()) { int startOffset = iterator.getStartOffset(); if (startOffset >= 0) { try { System.out.println("HTMLDocument.Iterator for tags TITLE: " + doc.getText(startOffset, iterator.getEndOffset() - startOffset)); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } }
33,850
2
// TODO Auto-generated catch block
private void detectTitle() { Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element); } dumpTags(hdoc, HTML.Tag.HEAD); dumpTags(hdoc, HTML.Tag.BODY); dumpTags(hdoc, HTML.Tag.TITLE); dumpTags(hdoc, HTML.Tag.H1); HTMLDocument.Iterator iterator = hdoc.getIterator(HTML.Tag.TITLE); if (iterator != null && iterator.isValid()) { int startOffset = iterator.getStartOffset(); if (startOffset >= 0) { try { System.out.println("HTMLDocument.Iterator for tags TITLE: " + doc.getText(startOffset, iterator.getEndOffset() - startOffset)); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } } else { System.out.println("No valid iterator for tag TITLE found: "+iterator); } } }
IMPLEMENTATION
true
System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); }
Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element); } dumpTags(hdoc, HTML.Tag.HEAD); dumpTags(hdoc, HTML.Tag.BODY); dumpTags(hdoc, HTML.Tag.TITLE); dumpTags(hdoc, HTML.Tag.H1); HTMLDocument.Iterator iterator = hdoc.getIterator(HTML.Tag.TITLE);
private void detectTitle() { Document doc = this.contentView.getDocument(); if (doc instanceof HTMLDocument) { HTMLDocument hdoc = (HTMLDocument)doc; System.out.println("Document Property:" + hdoc.getProperty(Document.TitleProperty)); // the following stuff did not work and I don't know why! Element element = hdoc.getElement(hdoc.getDefaultRootElement(), StyleConstants.NameAttribute, HTML.Tag.TITLE); if (element != null && element.getStartOffset() >= 0) { try { System.out.println("Element-based NameAttribute search: " + doc.getText(element.getStartOffset(), element.getEndOffset() - element.getStartOffset())); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } } else { System.out.println("Element with NameAttribute TITLE not found: "+element); } dumpTags(hdoc, HTML.Tag.HEAD); dumpTags(hdoc, HTML.Tag.BODY); dumpTags(hdoc, HTML.Tag.TITLE); dumpTags(hdoc, HTML.Tag.H1); HTMLDocument.Iterator iterator = hdoc.getIterator(HTML.Tag.TITLE); if (iterator != null && iterator.isValid()) { int startOffset = iterator.getStartOffset(); if (startOffset >= 0) { try { System.out.println("HTMLDocument.Iterator for tags TITLE: " + doc.getText(startOffset, iterator.getEndOffset() - startOffset)); } catch (BadLocationException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } }
17,467
0
// 10-Dec-2018, tatu: With 2.10, should serialize same as via ObjectMapper/ObjectWriter // 10-Dec-2019, tatu: Surprise! No, this is not how it worked in 2.9, nor does it make // sense... see [databind#2566] for details
public void testMissing() { MissingNode n = MissingNode.getInstance(); assertTrue(n.isMissingNode()); assertEquals(JsonToken.NOT_AVAILABLE, n.asToken()); assertEquals("", n.asText()); assertStandardEquals(n); // 10-Dec-2018, tatu: With 2.10, should serialize same as via ObjectMapper/ObjectWriter // 10-Dec-2019, tatu: Surprise! No, this is not how it worked in 2.9, nor does it make // sense... see [databind#2566] for details assertEquals("", n.toString()); assertNodeNumbersForNonNumeric(n); assertTrue(n.asBoolean(true)); assertEquals(4, n.asInt(4)); assertEquals(5L, n.asLong(5)); assertEquals(0.25, n.asDouble(0.25)); assertEquals("foo", n.asText("foo")); }
DEFECT
true
assertEquals("", n.asText()); assertStandardEquals(n); // 10-Dec-2018, tatu: With 2.10, should serialize same as via ObjectMapper/ObjectWriter // 10-Dec-2019, tatu: Surprise! No, this is not how it worked in 2.9, nor does it make // sense... see [databind#2566] for details assertEquals("", n.toString()); assertNodeNumbersForNonNumeric(n);
public void testMissing() { MissingNode n = MissingNode.getInstance(); assertTrue(n.isMissingNode()); assertEquals(JsonToken.NOT_AVAILABLE, n.asToken()); assertEquals("", n.asText()); assertStandardEquals(n); // 10-Dec-2018, tatu: With 2.10, should serialize same as via ObjectMapper/ObjectWriter // 10-Dec-2019, tatu: Surprise! No, this is not how it worked in 2.9, nor does it make // sense... see [databind#2566] for details assertEquals("", n.toString()); assertNodeNumbersForNonNumeric(n); assertTrue(n.asBoolean(true)); assertEquals(4, n.asInt(4)); assertEquals(5L, n.asLong(5)); assertEquals(0.25, n.asDouble(0.25)); assertEquals("foo", n.asText("foo")); }
public void testMissing() { MissingNode n = MissingNode.getInstance(); assertTrue(n.isMissingNode()); assertEquals(JsonToken.NOT_AVAILABLE, n.asToken()); assertEquals("", n.asText()); assertStandardEquals(n); // 10-Dec-2018, tatu: With 2.10, should serialize same as via ObjectMapper/ObjectWriter // 10-Dec-2019, tatu: Surprise! No, this is not how it worked in 2.9, nor does it make // sense... see [databind#2566] for details assertEquals("", n.toString()); assertNodeNumbersForNonNumeric(n); assertTrue(n.asBoolean(true)); assertEquals(4, n.asInt(4)); assertEquals(5L, n.asLong(5)); assertEquals(0.25, n.asDouble(0.25)); assertEquals("foo", n.asText("foo")); }
9,278
0
/* if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) { return; } FIXME: still needed? if so, search for ported way */
@SubscribeEvent(priority = EventPriority.NORMAL) public void onRenderOverlay(RenderGameOverlayEvent.Post event) { /* if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) { return; } FIXME: still needed? if so, search for ported way */ ItemStack activeStack = mc.player.getUseItem(); if (activeStack.getItem() instanceof ModularCrossbowItem) { ModularCrossbowItem item = (ModularCrossbowItem) activeStack.getItem(); gui.setProgress(item.getProgress(activeStack, mc.player), 0); } else { gui.setProgress(0, 0); } gui.draw(); }
DESIGN
true
@SubscribeEvent(priority = EventPriority.NORMAL) public void onRenderOverlay(RenderGameOverlayEvent.Post event) { /* if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) { return; } FIXME: still needed? if so, search for ported way */ ItemStack activeStack = mc.player.getUseItem(); if (activeStack.getItem() instanceof ModularCrossbowItem) {
@SubscribeEvent(priority = EventPriority.NORMAL) public void onRenderOverlay(RenderGameOverlayEvent.Post event) { /* if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) { return; } FIXME: still needed? if so, search for ported way */ ItemStack activeStack = mc.player.getUseItem(); if (activeStack.getItem() instanceof ModularCrossbowItem) { ModularCrossbowItem item = (ModularCrossbowItem) activeStack.getItem(); gui.setProgress(item.getProgress(activeStack, mc.player), 0); } else { gui.setProgress(0, 0); } gui.draw(); }
@SubscribeEvent(priority = EventPriority.NORMAL) public void onRenderOverlay(RenderGameOverlayEvent.Post event) { /* if (event.getType() != RenderGameOverlayEvent.ElementType.CROSSHAIRS) { return; } FIXME: still needed? if so, search for ported way */ ItemStack activeStack = mc.player.getUseItem(); if (activeStack.getItem() instanceof ModularCrossbowItem) { ModularCrossbowItem item = (ModularCrossbowItem) activeStack.getItem(); gui.setProgress(item.getProgress(activeStack, mc.player), 0); } else { gui.setProgress(0, 0); } gui.draw(); }
25,662
0
/** * Metodo para remover acento de uma palavra usando rgex * @param palavra * @return */
public static String removerAcento(String palavra){ return Normalizer.normalize(palavra, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", ""); }
NONSATD
true
public static String removerAcento(String palavra){ return Normalizer.normalize(palavra, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", ""); }
public static String removerAcento(String palavra){ return Normalizer.normalize(palavra, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", ""); }
public static String removerAcento(String palavra){ return Normalizer.normalize(palavra, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", ""); }
33,859
0
// TODO -- why is this here?
public void sortRows(AlignmentTrack.SortOption option, double location) { if (alignmentRows == null) { return; } for (AlignmentInterval.Row row : alignmentRows) { if (option == AlignmentTrack.SortOption.NUCELOTIDE) { // TODO -- why is this here? } row.updateScore(option, location, this); } Collections.sort(alignmentRows, new Comparator<Row>() { public int compare(AlignmentInterval.Row arg0, AlignmentInterval.Row arg1) { if (arg0.getScore() > arg1.getScore()) { return 1; } else if (arg0.getScore() > arg1.getScore()) { return -1; } return 0; } }); }
DESIGN
true
for (AlignmentInterval.Row row : alignmentRows) { if (option == AlignmentTrack.SortOption.NUCELOTIDE) { // TODO -- why is this here? } row.updateScore(option, location, this);
public void sortRows(AlignmentTrack.SortOption option, double location) { if (alignmentRows == null) { return; } for (AlignmentInterval.Row row : alignmentRows) { if (option == AlignmentTrack.SortOption.NUCELOTIDE) { // TODO -- why is this here? } row.updateScore(option, location, this); } Collections.sort(alignmentRows, new Comparator<Row>() { public int compare(AlignmentInterval.Row arg0, AlignmentInterval.Row arg1) { if (arg0.getScore() > arg1.getScore()) { return 1; } else if (arg0.getScore() > arg1.getScore()) { return -1; }
public void sortRows(AlignmentTrack.SortOption option, double location) { if (alignmentRows == null) { return; } for (AlignmentInterval.Row row : alignmentRows) { if (option == AlignmentTrack.SortOption.NUCELOTIDE) { // TODO -- why is this here? } row.updateScore(option, location, this); } Collections.sort(alignmentRows, new Comparator<Row>() { public int compare(AlignmentInterval.Row arg0, AlignmentInterval.Row arg1) { if (arg0.getScore() > arg1.getScore()) { return 1; } else if (arg0.getScore() > arg1.getScore()) { return -1; } return 0; } }); }
1,094
0
// System.err.println(start + " ---> " + length);
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
NONSATD
true
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew;
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued");
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
1,094
1
// System.err.println(start + " ---> " + length);
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
NONSATD
true
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew;
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued");
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
1,094
2
// System.err.println("syntaxBusy, request queued");
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
NONSATD
true
// System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else {
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
1,094
3
// Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued");
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
DESIGN
true
styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true;
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
private void addStylesQueueRequest(int start, int length, String s) { // System.err.println(start + " ---> " + length); int startNew = backupToPossibleStyleStart(start); length = length + start - startNew; start = startNew; // System.err.println(start + " ---> " + length); if (syntaxBusy) { // System.err.println("syntaxBusy, request queued"); styleQueue.add(new StyleQueueItem(start, length, s)); } else { // Todo: if syntax is not busy but a request got stuck // System.err.println("request not queued"); if (styleQueue.size() != 0) System.err.println("A request got stuck"); syntaxBusy = true; addStylesNew(start, length, s); } }
17,495
0
/** * Return the ReloadableType representing the superclass of this type. If the supertype is not reloadable, this * method will return null. The ReloadableType that is returned may not be within the same type registry, if the * supertype was loaded by a different classloader. * * @return the ReloadableType for the supertype or null if it is not reloadable */
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType rtype = typeRegistry.getReloadableSuperType(name); superRtype = rtype; return superRtype; } } else { ClassLoader superClassLoader = superclazz.getClassLoader(); TypeRegistry superTypeRegistry = TypeRegistry.getTypeRegistryFor(superClassLoader); superRtype = superTypeRegistry.getReloadableType(superclazz); return superRtype; } }
NONSATD
true
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType rtype = typeRegistry.getReloadableSuperType(name); superRtype = rtype; return superRtype; } } else { ClassLoader superClassLoader = superclazz.getClassLoader(); TypeRegistry superTypeRegistry = TypeRegistry.getTypeRegistryFor(superClassLoader); superRtype = superTypeRegistry.getReloadableType(superclazz); return superRtype; } }
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType rtype = typeRegistry.getReloadableSuperType(name); superRtype = rtype; return superRtype; } } else { ClassLoader superClassLoader = superclazz.getClassLoader(); TypeRegistry superTypeRegistry = TypeRegistry.getTypeRegistryFor(superClassLoader); superRtype = superTypeRegistry.getReloadableType(superclazz); return superRtype; } }
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType rtype = typeRegistry.getReloadableSuperType(name); superRtype = rtype; return superRtype; } } else { ClassLoader superClassLoader = superclazz.getClassLoader(); TypeRegistry superTypeRegistry = TypeRegistry.getTypeRegistryFor(superClassLoader); superRtype = superTypeRegistry.getReloadableType(superclazz); return superRtype; } }
17,495
1
// Not filled in yet? Why is this code different to the interface case?
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType rtype = typeRegistry.getReloadableSuperType(name); superRtype = rtype; return superRtype; } } else { ClassLoader superClassLoader = superclazz.getClassLoader(); TypeRegistry superTypeRegistry = TypeRegistry.getTypeRegistryFor(superClassLoader); superRtype = superTypeRegistry.getReloadableType(superclazz); return superRtype; } }
DESIGN
true
} if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) {
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType rtype = typeRegistry.getReloadableSuperType(name); superRtype = rtype; return superRtype; } }
public ReloadableType getSuperRtype() { if (superRtype != null) { return superRtype; } if (superclazz == null) { // Not filled in yet? Why is this code different to the interface case? String name = this.getSlashedSupertypeName(); if (name == null) { return null; } else { ReloadableType rtype = typeRegistry.getReloadableSuperType(name); superRtype = rtype; return superRtype; } } else { ClassLoader superClassLoader = superclazz.getClassLoader(); TypeRegistry superTypeRegistry = TypeRegistry.getTypeRegistryFor(superClassLoader); superRtype = superTypeRegistry.getReloadableType(superclazz); return superRtype; } }
33,880
0
// TODO empty method, if you want to definition & registry , use it.
@Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException { // TODO empty method, if you want to definition & registry , use it. }
IMPLEMENTATION
true
@Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException { // TODO empty method, if you want to definition & registry , use it. }
@Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException { // TODO empty method, if you want to definition & registry , use it. }
@Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException { // TODO empty method, if you want to definition & registry , use it. }
17,497
0
/** * The length of this sequence in microseconds. * * @return the length of this sequence in microseconds */
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
NONSATD
true
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
17,497
1
// FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer.
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
DEFECT
true
if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet");
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
17,497
2
// This is a fixed tick per frame computation
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
NONSATD
true
else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); }
if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
public long getMicrosecondLength() { long tickLength = getTickLength(); if (divisionType == PPQ) { // FIXME // How can this possible be computed? PPQ is pulses per quarter-note, // which is dependent on the tempo of the Sequencer. throw new UnsupportedOperationException("Can't compute PPQ based lengths yet"); } else { // This is a fixed tick per frame computation return (long) ((tickLength * 1000000) / (divisionType * resolution)); } }
9,309
0
// In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableCacheRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalCacheDirs(); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
DESIGN
true
public static File getBestAvailableCacheRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalCacheDirs(); if (roots != null) {
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableCacheRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalCacheDirs(); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } }
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableCacheRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalCacheDirs(); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
9,309
1
// Pre-KitKat, only one external storage device was addressable
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableCacheRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalCacheDirs(); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
NONSATD
true
} } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); }
for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableCacheRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalCacheDirs(); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
9,309
2
// Worst case, resort to internal storage
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableCacheRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalCacheDirs(); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
NONSATD
true
return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
} if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableCacheRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalCacheDirs(); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalCacheDir(); } // Worst case, resort to internal storage return context.getCacheDir(); }
9,310
0
// In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableFilesRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalFilesDirs(null); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
DESIGN
true
public static File getBestAvailableFilesRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalFilesDirs(null); if (roots != null) {
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableFilesRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalFilesDirs(null); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } }
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableFilesRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalFilesDirs(null); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
9,310
1
// Pre-KitKat, only one external storage device was addressable
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableFilesRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalFilesDirs(null); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
NONSATD
true
} } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); }
for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableFilesRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalFilesDirs(null); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
9,310
2
// Worst case, resort to internal storage
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableFilesRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalFilesDirs(null); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
NONSATD
true
return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
} if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
@TargetApi(Build.VERSION_CODES.KITKAT) public static File getBestAvailableFilesRoot(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // In KitKat we can query multiple devices. // TODO: optimize for stability instead of picking first one File[] roots = context.getExternalFilesDirs(null); if (roots != null) { for (File root : roots) { if (root == null) { continue; } if (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(root))) { return root; } } } } else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { // Pre-KitKat, only one external storage device was addressable return context.getExternalFilesDir(null); } // Worst case, resort to internal storage return context.getFilesDir(); }
25,701
0
//Instantiate Firebase objects
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Payment payment = paymentsList.get(position); Intent intent = new Intent(getActivity(), ConfirmDetailsActivity.class); intent.putExtra("pushID", payment.getPushID()); intent.putExtra("accountName", payment.getAccountName()); intent.putExtra("accountNumber", payment.getAccountNumber()); intent.putExtra("depositAmount", payment.getDepositAmount()); intent.putExtra("depositorName", payment.getDepositorName()); intent.putExtra("depositorPhoneNumber", payment.getDepositorPhoneNumber()); intent.putExtra("depositorEmail", payment.getDepositorEmail()); Log.e(TAG, "Phone Number" + payment.depositorPhoneNumber); startActivity(intent); } }); return rootView; }
NONSATD
true
Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]"));
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too }
25,701
1
//instance of Firebase object(i.e. database root object)
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Payment payment = paymentsList.get(position); Intent intent = new Intent(getActivity(), ConfirmDetailsActivity.class); intent.putExtra("pushID", payment.getPushID()); intent.putExtra("accountName", payment.getAccountName()); intent.putExtra("accountNumber", payment.getAccountNumber()); intent.putExtra("depositAmount", payment.getDepositAmount()); intent.putExtra("depositorName", payment.getDepositorName()); intent.putExtra("depositorPhoneNumber", payment.getDepositorPhoneNumber()); intent.putExtra("depositorEmail", payment.getDepositorEmail()); Log.e(TAG, "Phone Number" + payment.depositorPhoneNumber); startActivity(intent); } }); return rootView; }
NONSATD
true
View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } }
25,701
2
//reference to depositQueue child object in root object
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Payment payment = paymentsList.get(position); Intent intent = new Intent(getActivity(), ConfirmDetailsActivity.class); intent.putExtra("pushID", payment.getPushID()); intent.putExtra("accountName", payment.getAccountName()); intent.putExtra("accountNumber", payment.getAccountNumber()); intent.putExtra("depositAmount", payment.getDepositAmount()); intent.putExtra("depositorName", payment.getDepositorName()); intent.putExtra("depositorPhoneNumber", payment.getDepositorPhoneNumber()); intent.putExtra("depositorEmail", payment.getDepositorEmail()); Log.e(TAG, "Phone Number" + payment.depositorPhoneNumber); startActivity(intent); } }); return rootView; }
NONSATD
true
//Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list);
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() {
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override
25,701
3
//Instantiate other variables
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Payment payment = paymentsList.get(position); Intent intent = new Intent(getActivity(), ConfirmDetailsActivity.class); intent.putExtra("pushID", payment.getPushID()); intent.putExtra("accountName", payment.getAccountName()); intent.putExtra("accountNumber", payment.getAccountNumber()); intent.putExtra("depositAmount", payment.getDepositAmount()); intent.putExtra("depositorName", payment.getDepositorName()); intent.putExtra("depositorPhoneNumber", payment.getDepositorPhoneNumber()); intent.putExtra("depositorEmail", payment.getDepositorEmail()); Log.e(TAG, "Phone Number" + payment.depositorPhoneNumber); startActivity(intent); } }); return rootView; }
NONSATD
true
mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator);
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) {
25,701
4
/**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Payment payment = paymentsList.get(position); Intent intent = new Intent(getActivity(), ConfirmDetailsActivity.class); intent.putExtra("pushID", payment.getPushID()); intent.putExtra("accountName", payment.getAccountName()); intent.putExtra("accountNumber", payment.getAccountNumber()); intent.putExtra("depositAmount", payment.getDepositAmount()); intent.putExtra("depositorName", payment.getDepositorName()); intent.putExtra("depositorPhoneNumber", payment.getDepositorPhoneNumber()); intent.putExtra("depositorEmail", payment.getDepositorEmail()); Log.e(TAG, "Phone Number" + payment.depositorPhoneNumber); startActivity(intent); } }); return rootView; }
NONSATD
true
postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override
View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } }
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override
25,701
5
/**Uncomment this when you've finished*/
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Payment payment = paymentsList.get(position); Intent intent = new Intent(getActivity(), ConfirmDetailsActivity.class); intent.putExtra("pushID", payment.getPushID()); intent.putExtra("accountName", payment.getAccountName()); intent.putExtra("accountNumber", payment.getAccountNumber()); intent.putExtra("depositAmount", payment.getDepositAmount()); intent.putExtra("depositorName", payment.getDepositorName()); intent.putExtra("depositorPhoneNumber", payment.getDepositorPhoneNumber()); intent.putExtra("depositorEmail", payment.getDepositorEmail()); Log.e(TAG, "Phone Number" + payment.depositorPhoneNumber); startActivity(intent); } }); return rootView; }
NONSATD
true
loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too }
queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override
Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override
25,701
6
//here, you could use queueListView.add() too
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Payment payment = paymentsList.get(position); Intent intent = new Intent(getActivity(), ConfirmDetailsActivity.class); intent.putExtra("pushID", payment.getPushID()); intent.putExtra("accountName", payment.getAccountName()); intent.putExtra("accountNumber", payment.getAccountNumber()); intent.putExtra("depositAmount", payment.getDepositAmount()); intent.putExtra("depositorName", payment.getDepositorName()); intent.putExtra("depositorPhoneNumber", payment.getDepositorPhoneNumber()); intent.putExtra("depositorEmail", payment.getDepositorEmail()); Log.e(TAG, "Phone Number" + payment.depositorPhoneNumber); startActivity(intent); } }); return rootView; }
NONSATD
true
Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } }
/**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) {
View rootView = inflater.inflate(R.layout.queue_list, container, false); //Instantiate Firebase objects mDatabase = FirebaseDatabase.getInstance(); //instance of Firebase object(i.e. database root object) mDepositQueueReference = mDatabase.getReference("depositQueue"); //reference to depositQueue child object in root object //Instantiate other variables queueListView = rootView.findViewById(R.id.list); loadingIndicator = rootView.findViewById(R.id.loading_indicator); final List<Payment> paymentsList = new ArrayList<Payment>(); postAdapter = new QueueAdapter(getActivity(), R.layout.queue_view, paymentsList); queueListView.setAdapter(postAdapter); /**Delete this post adapter when you finish*/ // postAdapter.add(new Payment("James Blunt", "0149603509", "4500", "WAEC", "07033513241", "[email protected]")); //Add ChildEventListener, so that changes made in the database are reflected mChildEventListener = new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.exists()) { loadingIndicator.setVisibility(View.GONE); Payment payment = dataSnapshot.getValue(Payment.class); /**Uncomment this when you've finished*/ postAdapter.add(payment); //here, you could use queueListView.add() too } } @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { } @Override public void onChildRemoved(DataSnapshot dataSnapshot) { } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { } @Override public void onCancelled(DatabaseError databaseError) { Log.e(TAG, "postComments:onCancelled", databaseError.toException()); } }; mDepositQueueReference.addChildEventListener(mChildEventListener); queueListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
1,129
0
/** * Column pruning could become problematic when a single Map Task contains multiple TableScan operators where * different columns are pruned. This only occurs on MR, as Tez initializes a single Map task for every TableScan * operator. */
@Test public void testMultiColumnPruning() throws IOException { shell.setHiveSessionValue("hive.cbo.enable", true); Schema schema1 = new Schema(optional(1, "fk", Types.StringType.get())); List<Record> records1 = TestHelper.RecordsBuilder.newInstance(schema1).add("fk1").build(); testTables.createTable(shell, "table1", schema1, fileFormat, records1); Schema schema2 = new Schema(optional(1, "fk", Types.StringType.get()), optional(2, "val", Types.StringType.get())); List<Record> records2 = TestHelper.RecordsBuilder.newInstance(schema2).add("fk1", "val").build(); testTables.createTable(shell, "table2", schema2, fileFormat, records2); // MR is needed for the reproduction shell.setHiveSessionValue("hive.execution.engine", "mr"); String query = "SELECT t2.val FROM table1 t1 JOIN table2 t2 ON t1.fk = t2.fk"; List<Object[]> result = shell.executeStatement(query); Assert.assertEquals(1, result.size()); Assert.assertArrayEquals(new Object[]{"val"}, result.get(0)); }
DEFECT
true
@Test public void testMultiColumnPruning() throws IOException { shell.setHiveSessionValue("hive.cbo.enable", true); Schema schema1 = new Schema(optional(1, "fk", Types.StringType.get())); List<Record> records1 = TestHelper.RecordsBuilder.newInstance(schema1).add("fk1").build(); testTables.createTable(shell, "table1", schema1, fileFormat, records1); Schema schema2 = new Schema(optional(1, "fk", Types.StringType.get()), optional(2, "val", Types.StringType.get())); List<Record> records2 = TestHelper.RecordsBuilder.newInstance(schema2).add("fk1", "val").build(); testTables.createTable(shell, "table2", schema2, fileFormat, records2); // MR is needed for the reproduction shell.setHiveSessionValue("hive.execution.engine", "mr"); String query = "SELECT t2.val FROM table1 t1 JOIN table2 t2 ON t1.fk = t2.fk"; List<Object[]> result = shell.executeStatement(query); Assert.assertEquals(1, result.size()); Assert.assertArrayEquals(new Object[]{"val"}, result.get(0)); }
@Test public void testMultiColumnPruning() throws IOException { shell.setHiveSessionValue("hive.cbo.enable", true); Schema schema1 = new Schema(optional(1, "fk", Types.StringType.get())); List<Record> records1 = TestHelper.RecordsBuilder.newInstance(schema1).add("fk1").build(); testTables.createTable(shell, "table1", schema1, fileFormat, records1); Schema schema2 = new Schema(optional(1, "fk", Types.StringType.get()), optional(2, "val", Types.StringType.get())); List<Record> records2 = TestHelper.RecordsBuilder.newInstance(schema2).add("fk1", "val").build(); testTables.createTable(shell, "table2", schema2, fileFormat, records2); // MR is needed for the reproduction shell.setHiveSessionValue("hive.execution.engine", "mr"); String query = "SELECT t2.val FROM table1 t1 JOIN table2 t2 ON t1.fk = t2.fk"; List<Object[]> result = shell.executeStatement(query); Assert.assertEquals(1, result.size()); Assert.assertArrayEquals(new Object[]{"val"}, result.get(0)); }
@Test public void testMultiColumnPruning() throws IOException { shell.setHiveSessionValue("hive.cbo.enable", true); Schema schema1 = new Schema(optional(1, "fk", Types.StringType.get())); List<Record> records1 = TestHelper.RecordsBuilder.newInstance(schema1).add("fk1").build(); testTables.createTable(shell, "table1", schema1, fileFormat, records1); Schema schema2 = new Schema(optional(1, "fk", Types.StringType.get()), optional(2, "val", Types.StringType.get())); List<Record> records2 = TestHelper.RecordsBuilder.newInstance(schema2).add("fk1", "val").build(); testTables.createTable(shell, "table2", schema2, fileFormat, records2); // MR is needed for the reproduction shell.setHiveSessionValue("hive.execution.engine", "mr"); String query = "SELECT t2.val FROM table1 t1 JOIN table2 t2 ON t1.fk = t2.fk"; List<Object[]> result = shell.executeStatement(query); Assert.assertEquals(1, result.size()); Assert.assertArrayEquals(new Object[]{"val"}, result.get(0)); }
1,129
1
// MR is needed for the reproduction
@Test public void testMultiColumnPruning() throws IOException { shell.setHiveSessionValue("hive.cbo.enable", true); Schema schema1 = new Schema(optional(1, "fk", Types.StringType.get())); List<Record> records1 = TestHelper.RecordsBuilder.newInstance(schema1).add("fk1").build(); testTables.createTable(shell, "table1", schema1, fileFormat, records1); Schema schema2 = new Schema(optional(1, "fk", Types.StringType.get()), optional(2, "val", Types.StringType.get())); List<Record> records2 = TestHelper.RecordsBuilder.newInstance(schema2).add("fk1", "val").build(); testTables.createTable(shell, "table2", schema2, fileFormat, records2); // MR is needed for the reproduction shell.setHiveSessionValue("hive.execution.engine", "mr"); String query = "SELECT t2.val FROM table1 t1 JOIN table2 t2 ON t1.fk = t2.fk"; List<Object[]> result = shell.executeStatement(query); Assert.assertEquals(1, result.size()); Assert.assertArrayEquals(new Object[]{"val"}, result.get(0)); }
NONSATD
true
List<Record> records2 = TestHelper.RecordsBuilder.newInstance(schema2).add("fk1", "val").build(); testTables.createTable(shell, "table2", schema2, fileFormat, records2); // MR is needed for the reproduction shell.setHiveSessionValue("hive.execution.engine", "mr"); String query = "SELECT t2.val FROM table1 t1 JOIN table2 t2 ON t1.fk = t2.fk";
@Test public void testMultiColumnPruning() throws IOException { shell.setHiveSessionValue("hive.cbo.enable", true); Schema schema1 = new Schema(optional(1, "fk", Types.StringType.get())); List<Record> records1 = TestHelper.RecordsBuilder.newInstance(schema1).add("fk1").build(); testTables.createTable(shell, "table1", schema1, fileFormat, records1); Schema schema2 = new Schema(optional(1, "fk", Types.StringType.get()), optional(2, "val", Types.StringType.get())); List<Record> records2 = TestHelper.RecordsBuilder.newInstance(schema2).add("fk1", "val").build(); testTables.createTable(shell, "table2", schema2, fileFormat, records2); // MR is needed for the reproduction shell.setHiveSessionValue("hive.execution.engine", "mr"); String query = "SELECT t2.val FROM table1 t1 JOIN table2 t2 ON t1.fk = t2.fk"; List<Object[]> result = shell.executeStatement(query); Assert.assertEquals(1, result.size()); Assert.assertArrayEquals(new Object[]{"val"}, result.get(0)); }
@Test public void testMultiColumnPruning() throws IOException { shell.setHiveSessionValue("hive.cbo.enable", true); Schema schema1 = new Schema(optional(1, "fk", Types.StringType.get())); List<Record> records1 = TestHelper.RecordsBuilder.newInstance(schema1).add("fk1").build(); testTables.createTable(shell, "table1", schema1, fileFormat, records1); Schema schema2 = new Schema(optional(1, "fk", Types.StringType.get()), optional(2, "val", Types.StringType.get())); List<Record> records2 = TestHelper.RecordsBuilder.newInstance(schema2).add("fk1", "val").build(); testTables.createTable(shell, "table2", schema2, fileFormat, records2); // MR is needed for the reproduction shell.setHiveSessionValue("hive.execution.engine", "mr"); String query = "SELECT t2.val FROM table1 t1 JOIN table2 t2 ON t1.fk = t2.fk"; List<Object[]> result = shell.executeStatement(query); Assert.assertEquals(1, result.size()); Assert.assertArrayEquals(new Object[]{"val"}, result.get(0)); }
17,516
0
// get client ip address. ipv6 is not tested yet. (code for ipv6 maybe buggy)
public native byte [] getClientIp();
DEFECT
true
public native byte [] getClientIp();
public native byte [] getClientIp();
public native byte [] getClientIp();
33,901
0
// todo: test case for https://github.com/jhy/jsoup/issues/845. Doesn't work yet.
@Ignore // todo: test case for https://github.com/jhy/jsoup/issues/845. Doesn't work yet. @Test public void handlesMisnestedAInDivs() { String h = "<a href='#1'><div><div><a href='#2'>child</a</div</div></a>"; String w = "<a href=\"#1\"></a><div><a href=\"#1\"></a><div><a href=\"#1\"></a><a href=\"#2\">child</a></div></div>"; Document doc = Jsoup.parse(h); assertEquals( StringUtil.normaliseWhitespace(w), StringUtil.normaliseWhitespace(doc.body().html())); }
TEST
true
@Ignore // todo: test case for https://github.com/jhy/jsoup/issues/845. Doesn't work yet. @Test public void handlesMisnestedAInDivs() { String h = "<a href='#1'><div><div><a href='#2'>child</a</div</div></a>";
@Ignore // todo: test case for https://github.com/jhy/jsoup/issues/845. Doesn't work yet. @Test public void handlesMisnestedAInDivs() { String h = "<a href='#1'><div><div><a href='#2'>child</a</div</div></a>"; String w = "<a href=\"#1\"></a><div><a href=\"#1\"></a><div><a href=\"#1\"></a><a href=\"#2\">child</a></div></div>"; Document doc = Jsoup.parse(h); assertEquals( StringUtil.normaliseWhitespace(w), StringUtil.normaliseWhitespace(doc.body().html())); }
@Ignore // todo: test case for https://github.com/jhy/jsoup/issues/845. Doesn't work yet. @Test public void handlesMisnestedAInDivs() { String h = "<a href='#1'><div><div><a href='#2'>child</a</div</div></a>"; String w = "<a href=\"#1\"></a><div><a href=\"#1\"></a><div><a href=\"#1\"></a><a href=\"#2\">child</a></div></div>"; Document doc = Jsoup.parse(h); assertEquals( StringUtil.normaliseWhitespace(w), StringUtil.normaliseWhitespace(doc.body().html())); }
9,325
0
//framework checks for null authN so this shouldn't happen
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
NONSATD
true
return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!");
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ?
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
9,325
1
//check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
NONSATD
true
throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN;
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT;
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
9,325
2
//WARNING!!! this logic is for demonstration purposes
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
NONSATD
true
if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ?
return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; }
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
9,325
3
//good idea to log reasons for rejection with the authentication label so testers/users can understand
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
DESIGN
true
Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT;
} //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
public static AuthorizationHandler getAuthZHandler() { return (AuthenticationData authN) -> { try { //framework checks for null authN so this shouldn't happen if (authN == null) { throw new RuntimeException("Null AuthN data passed in!"); } //check if the authN data type matches is a good idea, and necessary if there are other fields //to open/inspect if (authN instanceof ClientNameAuthenicationData) { final ClientNameAuthenicationData data = (ClientNameAuthenicationData) authN; //WARNING!!! this logic is for demonstration purposes final String identityLabel = data.getIdentityLabel(); return identityLabel.startsWith("accepted.") ? Authorization.ACCEPT : Authorization.REJECT; } //good idea to log reasons for rejection with the authentication label so testers/users can understand System.err.println("AuthN data type is not expected object type!"); return Authorization.REJECT; } catch (Exception e) { return Authorization.REJECT; } }; }
1,134
0
/** * Restore the KV-state / ColumnFamily meta data for all key-groups referenced by the current state handle. * * @throws IOException * @throws ClassNotFoundException * @throws RocksDBException */
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
NONSATD
true
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
1,134
1
// check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
NONSATD
true
new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(),
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); }
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) {
1,134
2
// TODO replace with state migration; note that key hash codes need to remain the same after migration
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
DESIGN
true
rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available");
new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) {
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(),
1,134
3
//rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size());
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
NONSATD
true
serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn =
.isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(),
KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies }
1,134
4
// TODO with eager state registration in place, check here for serializer migration strategies
private void restoreKVStateMetaData() throws IOException, StateMigrationException, RocksDBException { KeyedBackendSerializationProxy<K> serializationProxy = new KeyedBackendSerializationProxy<>(rocksDBKeyedStateBackend.userCodeClassLoader); serializationProxy.read(currentStateHandleInView); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), rocksDBKeyedStateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } this.keygroupStreamCompressionDecorator = serializationProxy.isUsingKeyGroupCompression() ? SnappyStreamCompressionDecorator.INSTANCE : UncompressedStreamCompressionDecorator.INSTANCE; List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> restoredMetaInfos = serializationProxy.getStateMetaInfoSnapshots(); currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
IMPLEMENTATION
true
rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0);
new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
currentStateHandleKVStateColumnFamilies = new ArrayList<>(restoredMetaInfos.size()); //rocksDBKeyedStateBackend.restoredKvStateMetaInfos = new HashMap<>(restoredMetaInfos.size()); for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> restoredMetaInfo : restoredMetaInfos) { Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>> registeredColumn = rocksDBKeyedStateBackend.kvStateInformation.get(restoredMetaInfo.getName()); if (registeredColumn == null) { ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor( restoredMetaInfo.getName().getBytes(ConfigConstants.DEFAULT_CHARSET), rocksDBKeyedStateBackend.columnOptions); RegisteredKeyedBackendStateMetaInfo<?, ?> stateMetaInfo = new RegisteredKeyedBackendStateMetaInfo<>( restoredMetaInfo.getStateType(), restoredMetaInfo.getName(), restoredMetaInfo.getNamespaceSerializer(), restoredMetaInfo.getStateSerializer()); rocksDBKeyedStateBackend.restoredKvStateMetaInfos.put(restoredMetaInfo.getName(), restoredMetaInfo); ColumnFamilyHandle columnFamily = rocksDBKeyedStateBackend.db.createColumnFamily(columnFamilyDescriptor); registeredColumn = new Tuple2<ColumnFamilyHandle, RegisteredKeyedBackendStateMetaInfo<?, ?>>(columnFamily, stateMetaInfo); rocksDBKeyedStateBackend.kvStateInformation.put(stateMetaInfo.getName(), registeredColumn); } else { // TODO with eager state registration in place, check here for serializer migration strategies } currentStateHandleKVStateColumnFamilies.add(registeredColumn.f0); } }
1,136
0
// check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible
private List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> readMetaData( StreamStateHandle metaStateHandle) throws Exception { FSDataInputStream inputStream = null; try { inputStream = metaStateHandle.openInputStream(); stateBackend.cancelStreamRegistry.registerClosable(inputStream); KeyedBackendSerializationProxy<T> serializationProxy = new KeyedBackendSerializationProxy<>(stateBackend.userCodeClassLoader); DataInputView in = new DataInputViewStreamWrapper(inputStream); serializationProxy.read(in); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), stateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } return serializationProxy.getStateMetaInfoSnapshots(); } finally { if (inputStream != null) { stateBackend.cancelStreamRegistry.unregisterClosable(inputStream); inputStream.close(); } } }
NONSATD
true
DataInputView in = new DataInputViewStreamWrapper(inputStream); serializationProxy.read(in); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(),
private List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> readMetaData( StreamStateHandle metaStateHandle) throws Exception { FSDataInputStream inputStream = null; try { inputStream = metaStateHandle.openInputStream(); stateBackend.cancelStreamRegistry.registerClosable(inputStream); KeyedBackendSerializationProxy<T> serializationProxy = new KeyedBackendSerializationProxy<>(stateBackend.userCodeClassLoader); DataInputView in = new DataInputViewStreamWrapper(inputStream); serializationProxy.read(in); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), stateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); }
private List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> readMetaData( StreamStateHandle metaStateHandle) throws Exception { FSDataInputStream inputStream = null; try { inputStream = metaStateHandle.openInputStream(); stateBackend.cancelStreamRegistry.registerClosable(inputStream); KeyedBackendSerializationProxy<T> serializationProxy = new KeyedBackendSerializationProxy<>(stateBackend.userCodeClassLoader); DataInputView in = new DataInputViewStreamWrapper(inputStream); serializationProxy.read(in); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), stateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } return serializationProxy.getStateMetaInfoSnapshots(); } finally { if (inputStream != null) { stateBackend.cancelStreamRegistry.unregisterClosable(inputStream); inputStream.close(); } } }
1,136
1
// TODO replace with state migration; note that key hash codes need to remain the same after migration
private List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> readMetaData( StreamStateHandle metaStateHandle) throws Exception { FSDataInputStream inputStream = null; try { inputStream = metaStateHandle.openInputStream(); stateBackend.cancelStreamRegistry.registerClosable(inputStream); KeyedBackendSerializationProxy<T> serializationProxy = new KeyedBackendSerializationProxy<>(stateBackend.userCodeClassLoader); DataInputView in = new DataInputViewStreamWrapper(inputStream); serializationProxy.read(in); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), stateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } return serializationProxy.getStateMetaInfoSnapshots(); } finally { if (inputStream != null) { stateBackend.cancelStreamRegistry.unregisterClosable(inputStream); inputStream.close(); } } }
DESIGN
true
stateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available");
DataInputView in = new DataInputViewStreamWrapper(inputStream); serializationProxy.read(in); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), stateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } return serializationProxy.getStateMetaInfoSnapshots(); } finally { if (inputStream != null) { stateBackend.cancelStreamRegistry.unregisterClosable(inputStream); inputStream.close(); } }
private List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?>> readMetaData( StreamStateHandle metaStateHandle) throws Exception { FSDataInputStream inputStream = null; try { inputStream = metaStateHandle.openInputStream(); stateBackend.cancelStreamRegistry.registerClosable(inputStream); KeyedBackendSerializationProxy<T> serializationProxy = new KeyedBackendSerializationProxy<>(stateBackend.userCodeClassLoader); DataInputView in = new DataInputViewStreamWrapper(inputStream); serializationProxy.read(in); // check for key serializer compatibility; this also reconfigures the // key serializer to be compatible, if it is required and is possible if (CompatibilityUtil.resolveCompatibilityResult( serializationProxy.getKeySerializer(), UnloadableDummyTypeSerializer.class, serializationProxy.getKeySerializerConfigSnapshot(), stateBackend.keySerializer) .isRequiresMigration()) { // TODO replace with state migration; note that key hash codes need to remain the same after migration throw new StateMigrationException("The new key serializer is not compatible to read previous keys. " + "Aborting now since state migration is currently not available"); } return serializationProxy.getStateMetaInfoSnapshots(); } finally { if (inputStream != null) { stateBackend.cancelStreamRegistry.unregisterClosable(inputStream); inputStream.close(); } } }
17,517
0
//TODO: cut the text if it is too long
@Override protected void render(GLRootView root, GL11 gl) { Rect p = mPaddings; int height = getHeight() - p.top - p.bottom; StringTexture title = mText; //TODO: cut the text if it is too long title.draw(root, p.left, p.top + (height - title.getHeight()) / 2); }
IMPLEMENTATION
true
int height = getHeight() - p.top - p.bottom; StringTexture title = mText; //TODO: cut the text if it is too long title.draw(root, p.left, p.top + (height - title.getHeight()) / 2); }
@Override protected void render(GLRootView root, GL11 gl) { Rect p = mPaddings; int height = getHeight() - p.top - p.bottom; StringTexture title = mText; //TODO: cut the text if it is too long title.draw(root, p.left, p.top + (height - title.getHeight()) / 2); }
@Override protected void render(GLRootView root, GL11 gl) { Rect p = mPaddings; int height = getHeight() - p.top - p.bottom; StringTexture title = mText; //TODO: cut the text if it is too long title.draw(root, p.left, p.top + (height - title.getHeight()) / 2); }
1,139
0
/** * Transform the current time series and baselines. * * TODO: Apply Chain-of-Responsibility on the transformation chain * * @param metricName the name of the metric on which we apply transformation and prediction * @param anomalyDetectionContext anomaly detection context that contains the time series to be * transformed. */
private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) { // Transform the observed (current) time series if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) { anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName)); } List<TransformationFunction> currentTimeSeriesTransformationChain = getCurrentTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(currentTimeSeriesTransformationChain)) { for (TransformationFunction tf : currentTimeSeriesTransformationChain) { anomalyDetectionContext .setTransformedCurrent(metricName, tf.transform(anomalyDetectionContext.getTransformedCurrent(metricName), anomalyDetectionContext)); } } // Transform baseline time series if (anomalyDetectionContext.getTransformedBaselines(metricName) == null) { anomalyDetectionContext.setTransformedBaselines(metricName, anomalyDetectionContext.getBaselines(metricName)); } List<TransformationFunction> baselineTimeSeriesTransformationChain = getBaselineTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(anomalyDetectionContext.getTransformedBaselines(metricName)) && CollectionUtils.isNotEmpty(baselineTimeSeriesTransformationChain)) { for (TransformationFunction tf : baselineTimeSeriesTransformationChain) { List<TimeSeries> transformedBaselines = new ArrayList<>(); for (TimeSeries ts : anomalyDetectionContext.getTransformedBaselines(metricName)) { TimeSeries transformedTS = tf.transform(ts, anomalyDetectionContext); transformedBaselines.add(transformedTS); } anomalyDetectionContext.setTransformedBaselines(metricName, transformedBaselines); } } }
IMPLEMENTATION
true
private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) { // Transform the observed (current) time series if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) { anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName)); } List<TransformationFunction> currentTimeSeriesTransformationChain = getCurrentTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(currentTimeSeriesTransformationChain)) { for (TransformationFunction tf : currentTimeSeriesTransformationChain) { anomalyDetectionContext .setTransformedCurrent(metricName, tf.transform(anomalyDetectionContext.getTransformedCurrent(metricName), anomalyDetectionContext)); } } // Transform baseline time series if (anomalyDetectionContext.getTransformedBaselines(metricName) == null) { anomalyDetectionContext.setTransformedBaselines(metricName, anomalyDetectionContext.getBaselines(metricName)); } List<TransformationFunction> baselineTimeSeriesTransformationChain = getBaselineTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(anomalyDetectionContext.getTransformedBaselines(metricName)) && CollectionUtils.isNotEmpty(baselineTimeSeriesTransformationChain)) { for (TransformationFunction tf : baselineTimeSeriesTransformationChain) { List<TimeSeries> transformedBaselines = new ArrayList<>(); for (TimeSeries ts : anomalyDetectionContext.getTransformedBaselines(metricName)) { TimeSeries transformedTS = tf.transform(ts, anomalyDetectionContext); transformedBaselines.add(transformedTS); } anomalyDetectionContext.setTransformedBaselines(metricName, transformedBaselines); } } }
private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) { // Transform the observed (current) time series if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) { anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName)); } List<TransformationFunction> currentTimeSeriesTransformationChain = getCurrentTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(currentTimeSeriesTransformationChain)) { for (TransformationFunction tf : currentTimeSeriesTransformationChain) { anomalyDetectionContext .setTransformedCurrent(metricName, tf.transform(anomalyDetectionContext.getTransformedCurrent(metricName), anomalyDetectionContext)); } } // Transform baseline time series if (anomalyDetectionContext.getTransformedBaselines(metricName) == null) { anomalyDetectionContext.setTransformedBaselines(metricName, anomalyDetectionContext.getBaselines(metricName)); } List<TransformationFunction> baselineTimeSeriesTransformationChain = getBaselineTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(anomalyDetectionContext.getTransformedBaselines(metricName)) && CollectionUtils.isNotEmpty(baselineTimeSeriesTransformationChain)) { for (TransformationFunction tf : baselineTimeSeriesTransformationChain) { List<TimeSeries> transformedBaselines = new ArrayList<>(); for (TimeSeries ts : anomalyDetectionContext.getTransformedBaselines(metricName)) { TimeSeries transformedTS = tf.transform(ts, anomalyDetectionContext); transformedBaselines.add(transformedTS); } anomalyDetectionContext.setTransformedBaselines(metricName, transformedBaselines); } } }
private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) { // Transform the observed (current) time series if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) { anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName)); } List<TransformationFunction> currentTimeSeriesTransformationChain = getCurrentTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(currentTimeSeriesTransformationChain)) { for (TransformationFunction tf : currentTimeSeriesTransformationChain) { anomalyDetectionContext .setTransformedCurrent(metricName, tf.transform(anomalyDetectionContext.getTransformedCurrent(metricName), anomalyDetectionContext)); } } // Transform baseline time series if (anomalyDetectionContext.getTransformedBaselines(metricName) == null) { anomalyDetectionContext.setTransformedBaselines(metricName, anomalyDetectionContext.getBaselines(metricName)); } List<TransformationFunction> baselineTimeSeriesTransformationChain = getBaselineTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(anomalyDetectionContext.getTransformedBaselines(metricName)) && CollectionUtils.isNotEmpty(baselineTimeSeriesTransformationChain)) { for (TransformationFunction tf : baselineTimeSeriesTransformationChain) { List<TimeSeries> transformedBaselines = new ArrayList<>(); for (TimeSeries ts : anomalyDetectionContext.getTransformedBaselines(metricName)) { TimeSeries transformedTS = tf.transform(ts, anomalyDetectionContext); transformedBaselines.add(transformedTS); } anomalyDetectionContext.setTransformedBaselines(metricName, transformedBaselines); } } }
1,139
1
// Transform the observed (current) time series
private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) { // Transform the observed (current) time series if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) { anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName)); } List<TransformationFunction> currentTimeSeriesTransformationChain = getCurrentTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(currentTimeSeriesTransformationChain)) { for (TransformationFunction tf : currentTimeSeriesTransformationChain) { anomalyDetectionContext .setTransformedCurrent(metricName, tf.transform(anomalyDetectionContext.getTransformedCurrent(metricName), anomalyDetectionContext)); } } // Transform baseline time series if (anomalyDetectionContext.getTransformedBaselines(metricName) == null) { anomalyDetectionContext.setTransformedBaselines(metricName, anomalyDetectionContext.getBaselines(metricName)); } List<TransformationFunction> baselineTimeSeriesTransformationChain = getBaselineTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(anomalyDetectionContext.getTransformedBaselines(metricName)) && CollectionUtils.isNotEmpty(baselineTimeSeriesTransformationChain)) { for (TransformationFunction tf : baselineTimeSeriesTransformationChain) { List<TimeSeries> transformedBaselines = new ArrayList<>(); for (TimeSeries ts : anomalyDetectionContext.getTransformedBaselines(metricName)) { TimeSeries transformedTS = tf.transform(ts, anomalyDetectionContext); transformedBaselines.add(transformedTS); } anomalyDetectionContext.setTransformedBaselines(metricName, transformedBaselines); } } }
NONSATD
true
private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) { // Transform the observed (current) time series if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) { anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName));
private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) { // Transform the observed (current) time series if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) { anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName)); } List<TransformationFunction> currentTimeSeriesTransformationChain = getCurrentTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(currentTimeSeriesTransformationChain)) { for (TransformationFunction tf : currentTimeSeriesTransformationChain) { anomalyDetectionContext .setTransformedCurrent(metricName, tf.transform(anomalyDetectionContext.getTransformedCurrent(metricName), anomalyDetectionContext));
private void transformTimeSeries(String metricName, AnomalyDetectionContext anomalyDetectionContext) { // Transform the observed (current) time series if (anomalyDetectionContext.getTransformedCurrent(metricName) == null) { anomalyDetectionContext.setTransformedCurrent(metricName, anomalyDetectionContext.getCurrent(metricName)); } List<TransformationFunction> currentTimeSeriesTransformationChain = getCurrentTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(currentTimeSeriesTransformationChain)) { for (TransformationFunction tf : currentTimeSeriesTransformationChain) { anomalyDetectionContext .setTransformedCurrent(metricName, tf.transform(anomalyDetectionContext.getTransformedCurrent(metricName), anomalyDetectionContext)); } } // Transform baseline time series if (anomalyDetectionContext.getTransformedBaselines(metricName) == null) { anomalyDetectionContext.setTransformedBaselines(metricName, anomalyDetectionContext.getBaselines(metricName)); } List<TransformationFunction> baselineTimeSeriesTransformationChain = getBaselineTimeSeriesTransformationChain(); if (CollectionUtils.isNotEmpty(anomalyDetectionContext.getTransformedBaselines(metricName)) && CollectionUtils.isNotEmpty(baselineTimeSeriesTransformationChain)) {