From 3ebbec9fb4e1720ab98bd0669b192a5301908d7f Mon Sep 17 00:00:00 2001 From: Reedux Date: Sun, 10 Jan 2021 10:09:01 +0000 Subject: [PATCH 1/8] Remove the stance check on Forsake Fear https://github.com/SWG-Source/qa-testing/issues/53 --- .../compiled/game/script/systems/combat/combat_actions.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java index 8946309b3..8170dcdcd 100755 --- a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java +++ b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java @@ -1598,11 +1598,6 @@ public class combat_actions extends script.systems.combat.combat_base } public int fs_forsake_fear(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { - if (!buff.isInStance(self)) - { - sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); - return SCRIPT_OVERRIDE; - } if (!combatStandardAction("fs_forsake_fear", self, target, params, "", "")) { return SCRIPT_OVERRIDE; From 75c06d4b433b7040ca154f3b1c978bd6c5cbeb32 Mon Sep 17 00:00:00 2001 From: Reedux Date: Sun, 10 Jan 2021 10:50:12 +0000 Subject: [PATCH 2/8] Change BM Revive to scale the cooldown % depending on range. At 0m range you have 0% increase to the cooldown, at 84m range the cooldown will be increasaed by 100% --- .../game/script/systems/combat/combat_actions.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java index 8170dcdcd..3ba452c1c 100755 --- a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java +++ b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java @@ -10478,21 +10478,17 @@ public class combat_actions extends script.systems.combat.combat_base setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } - if (getDistance(getLocation(self), getLocation(beast)) > 7.0f) - { - sendSystemMessage(self, new string_id("spam", "stand_next_to_corpse")); - setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); - return SCRIPT_OVERRIDE; - } if (!combatStandardAction("bm_revive_pet_1", self, target, params, "", "")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } + float playerToPetRange = getDistance(getLocation(self), getLocation(beast)); + float percentRangeMod = (playerToPetRange / 84f) * 100f; messageTo(self, "channelRevivePet", null, 0, false); float baseCooldownTime = getBaseCooldownTime("bm_revive_pet_1"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_bm_pet_revive_time"); - setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); + setCommandTimerValue(self, TIMER_COOLDOWN, (baseCooldownTime - cooldownTimeMod) * percentRangeMod); return SCRIPT_CONTINUE; } public int bm_paralytic_poison_recourse(obj_id self, dictionary params) throws InterruptedException From d73784ea662221fe0555e5372a6c05e2b7e11961 Mon Sep 17 00:00:00 2001 From: Reedux Date: Mon, 11 Jan 2021 17:17:15 +0000 Subject: [PATCH 3/8] Pass through dictionary to channel to extend duration --- .../compiled/game/script/player/player_beastmaster.java | 3 +++ .../compiled/game/script/systems/combat/combat_actions.java | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/player/player_beastmaster.java b/sku.0/sys.server/compiled/game/script/player/player_beastmaster.java index 53012458c..aa3bcaf64 100755 --- a/sku.0/sys.server/compiled/game/script/player/player_beastmaster.java +++ b/sku.0/sys.server/compiled/game/script/player/player_beastmaster.java @@ -610,6 +610,9 @@ public class player_beastmaster extends script.base_script int duration = 20; int reviveTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_bm_pet_revive_time"); duration -= reviveTimeMod; + if (params.containsKey("extendedRange")) { + duration *= params.getFloat("extendedRange"); + } int flags = sui.CD_EVENT_INCAPACITATE; int pid = sui.smartCountdownTimerSUI(self, self, "bm_revive_pet", null, 0, duration, "", 0, flags); duration += getGameTime(); diff --git a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java index 3ba452c1c..4d1322cde 100755 --- a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java +++ b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java @@ -10484,8 +10484,10 @@ public class combat_actions extends script.systems.combat.combat_base return SCRIPT_OVERRIDE; } float playerToPetRange = getDistance(getLocation(self), getLocation(beast)); - float percentRangeMod = (playerToPetRange / 84f) * 100f; - messageTo(self, "channelRevivePet", null, 0, false); + float percentRangeMod = (playerToPetRange > 7f) ? (playerToPetRange / 84f) * 100f : 0f ; + dictionary dict = new dictionary(); + dict.addFloat("extendedRange", percentRangeMod); + messageTo(self, "channelRevivePet", dict, 0, false); float baseCooldownTime = getBaseCooldownTime("bm_revive_pet_1"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_bm_pet_revive_time"); setCommandTimerValue(self, TIMER_COOLDOWN, (baseCooldownTime - cooldownTimeMod) * percentRangeMod); From 5572bb597d2b4b84413fa91ac84c895059ccff42 Mon Sep 17 00:00:00 2001 From: Reedux Date: Mon, 11 Jan 2021 17:17:29 +0000 Subject: [PATCH 4/8] Add Out of range notification --- .../compiled/game/script/systems/combat/combat_actions.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java index 4d1322cde..63d71151d 100755 --- a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java +++ b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java @@ -10484,6 +10484,11 @@ public class combat_actions extends script.systems.combat.combat_base return SCRIPT_OVERRIDE; } float playerToPetRange = getDistance(getLocation(self), getLocation(beast)); + if (playerToPetRange > 84f) { + sendSystemMessage(self, new string_id("spam", "stand_next_to_corpse")); + setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); + return SCRIPT_OVERRIDE; + } float percentRangeMod = (playerToPetRange > 7f) ? (playerToPetRange / 84f) * 100f : 0f ; dictionary dict = new dictionary(); dict.addFloat("extendedRange", percentRangeMod); From 729d57dd252ebbb293d0a3d431bc6f3194634976 Mon Sep 17 00:00:00 2001 From: Reedux Date: Mon, 11 Jan 2021 17:25:38 +0000 Subject: [PATCH 5/8] Update commnd table range for revive pet --- .../compiled/game/datatables/command/command_table.tab | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sku.0/sys.shared/compiled/game/datatables/command/command_table.tab b/sku.0/sys.shared/compiled/game/datatables/command/command_table.tab index 11ac075df..6110b598e 100755 --- a/sku.0/sys.shared/compiled/game/datatables/command/command_table.tab +++ b/sku.0/sys.shared/compiled/game/datatables/command/command_table.tab @@ -1418,8 +1418,8 @@ bm_soothing_comfort_1 commandClicky normal bm_soothing_comfort_1 failSpecialAtta bm_mend_pet_1 commandClicky normal bm_mend_pet_1 failSpecialAttack 1 bm_mend_pet_1 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 friend none 2 combat_ranged combat 1 ALL bm_mend_pet_1 0 0.25 15 1 bm_mend_pet_2 commandClicky normal bm_mend_pet_2 failSpecialAttack 1 bm_mend_pet_2 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 friend none 2 combat_ranged combat 1 ALL bm_mend_pet_1 0 0.25 15 1 bm_mend_pet_3 commandClicky normal bm_mend_pet_3 failSpecialAttack 1 bm_mend_pet_3 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 friend none 2 combat_ranged combat 1 ALL bm_mend_pet_1 0 0.25 15 1 -bm_revive_pet_1 commandClicky normal bm_revive_pet_1 failSpecialAttack 1 bm_revive_pet_1 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 friend none 2 combat_ranged 0 7 combat 1 ALL bm_revive_pet_1 0 0.25 21 1 -bm_revive_pet_2 commandClicky normal bm_revive_pet_2 failSpecialAttack 1 bm_revive_pet_2 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 other optional 2 combat_ranged 0 combat 1 ALL bm_revive_pet_1 0 0.25 21 1 +bm_revive_pet_1 commandClicky normal bm_revive_pet_1 failSpecialAttack 1 bm_revive_pet_1 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 friend none 2 combat_ranged 0 85 combat 1 ALL bm_revive_pet_1 0 0.25 21 1 +bm_revive_pet_2 commandClicky normal bm_revive_pet_2 failSpecialAttack 1 bm_revive_pet_2 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 other optional 2 combat_ranged 0 85 combat 1 ALL bm_revive_pet_1 0 0.25 21 1 bm_bite_1 commandClicky normal bm_bite_1 failSpecialAttack 1 1 0 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 other optional 2 combat_ranged 0 combat 1 bm_bite 0 0 6 1 bm_bite_2 commandClicky normal bm_bite_2 failSpecialAttack 1 1 0 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 other optional 2 combat_ranged 0 combat 1 bm_bite 0 0 6 1 bm_bite_3 commandClicky normal bm_bite_3 failSpecialAttack 1 1 0 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 other optional 2 combat_ranged 0 combat 1 bm_bite 0 0 6 1 From a9e7eb5b14b8e9f09cb0013f71e3019545e0e0d7 Mon Sep 17 00:00:00 2001 From: Reedux Date: Mon, 11 Jan 2021 17:30:35 +0000 Subject: [PATCH 6/8] Fix multiplier --- .../compiled/game/script/systems/combat/combat_actions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java index 63d71151d..e16cd93ed 100755 --- a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java +++ b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java @@ -10489,7 +10489,7 @@ public class combat_actions extends script.systems.combat.combat_base setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } - float percentRangeMod = (playerToPetRange > 7f) ? (playerToPetRange / 84f) * 100f : 0f ; + float percentRangeMod = (playerToPetRange > 7f) ? (playerToPetRange / 84f) * 10f : 0f ; dictionary dict = new dictionary(); dict.addFloat("extendedRange", percentRangeMod); messageTo(self, "channelRevivePet", dict, 0, false); From 8088aabc7dbb1f1981e19d6d91e224e3822387c1 Mon Sep 17 00:00:00 2001 From: Reedux Date: Mon, 11 Jan 2021 20:04:34 +0000 Subject: [PATCH 7/8] Fix Values --- .../compiled/game/script/systems/combat/combat_actions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java index e16cd93ed..d14011175 100755 --- a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java +++ b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java @@ -10484,12 +10484,12 @@ public class combat_actions extends script.systems.combat.combat_base return SCRIPT_OVERRIDE; } float playerToPetRange = getDistance(getLocation(self), getLocation(beast)); - if (playerToPetRange > 84f) { + if (playerToPetRange > 85f) { sendSystemMessage(self, new string_id("spam", "stand_next_to_corpse")); setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } - float percentRangeMod = (playerToPetRange > 7f) ? (playerToPetRange / 84f) * 10f : 0f ; + float percentRangeMod = (playerToPetRange > 7f) ? (playerToPetRange / 85f) * 10f : 1f ; dictionary dict = new dictionary(); dict.addFloat("extendedRange", percentRangeMod); messageTo(self, "channelRevivePet", dict, 0, false); From 9f43bd642f2fb5f32380096205d3f9d95664c535 Mon Sep 17 00:00:00 2001 From: Reedux Date: Mon, 11 Jan 2021 20:09:25 +0000 Subject: [PATCH 8/8] Final Formatting of combat_actions script --- .../script/systems/combat/combat_actions.java | 10998 +++++++--------- 1 file changed, 4460 insertions(+), 6538 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java index d14011175..5eba80c19 100755 --- a/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java +++ b/sku.0/sys.server/compiled/game/script/systems/combat/combat_actions.java @@ -8,300 +8,265 @@ import script.library.*; import java.util.Arrays; import java.util.Vector; -public class combat_actions extends script.systems.combat.combat_base -{ - public combat_actions() - { +public class combat_actions extends script.systems.combat.combat_base { + + public combat_actions() { } public static String DEFAULT_EGG = "object/tangible/gravestone/gravestone05.tpf"; public static final String COMBAT_TABLE = "datatables/combat/combat_data.iff"; public static final float DAMAGE_STRENGTH_CUTOFF = 0.5f; - public int OnChangedPosture(obj_id self, int oldPosture, int newPosture) throws InterruptedException - { - if (newPosture == POSTURE_INCAPACITATED || newPosture == POSTURE_DEAD || newPosture == POSTURE_KNOCKED_DOWN) - { + + public int OnChangedPosture(obj_id self, int oldPosture, int newPosture) throws InterruptedException { + if (newPosture == POSTURE_INCAPACITATED || newPosture == POSTURE_DEAD || newPosture == POSTURE_KNOCKED_DOWN) { return SCRIPT_CONTINUE; } setState(self, STATE_IMMOBILIZED, false); stealth.OnPostureChanged(self, oldPosture, newPosture); return SCRIPT_CONTINUE; } - public int OnEnteredCombat(obj_id self) throws InterruptedException - { + + public int OnEnteredCombat(obj_id self) throws InterruptedException { combat.cacheCombatData(self); return SCRIPT_CONTINUE; } - public int OnExitedCombat(obj_id self) throws InterruptedException - { + + public int OnExitedCombat(obj_id self) throws InterruptedException { combat.clearCachedCombatData(self); return SCRIPT_CONTINUE; } - public int firePistolLauncherTargeting(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("firePistolLauncherTargeting", self, target, params, "", "")) - { + + public int firePistolLauncherTargeting(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("firePistolLauncherTargeting", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireAcidBeam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireAcidBeam", self, target, params, "", "")) - { + + public int fireAcidBeam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireAcidBeam", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireLavaCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireLavaCannon", self, target, params, "", "")) - { + + public int fireLavaCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireLavaCannon", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireLavaCannonGeneric(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireLavaCannonGeneric", self, target, params, "", "")) - { + + public int fireLavaCannonGeneric(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireLavaCannonGeneric", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireFlameThrowerLight(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireFlameThrowerLight", self, target, params, "", "")) - { + + public int fireFlameThrowerLight(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireFlameThrowerLight", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int firePlasmaFlameThrower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("firePlasmaFlameThrower", self, target, params, "", "")) - { + + public int firePlasmaFlameThrower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("firePlasmaFlameThrower", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireIceGun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireIceGun", self, target, params, "", "")) - { + + public int fireIceGun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireIceGun", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireRocketLauncher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireRocketLauncher", self, target, params, "", "")) - { + + public int fireRocketLauncher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireRocketLauncher", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireRocketLauncherGeneric(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireRocketLauncherGeneric", self, target, params, "", "")) - { + + public int fireRocketLauncherGeneric(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireRocketLauncherGeneric", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireAcidRifle(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireAcidRifle", self, target, params, "", "")) - { + + public int fireAcidRifle(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireAcidRifle", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireStunCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireStunCannon", self, target, params, "", "")) - { + + public int fireStunCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireStunCannon", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireParticleBeam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireParticleBeam", self, target, params, "", "")) - { + + public int fireParticleBeam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireParticleBeam", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireVoidRocketLauncher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireVoidRocketLauncher", self, target, params, "", "")) - { + + public int fireVoidRocketLauncher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireVoidRocketLauncher", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireLightningBeam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireLightningBeam", self, target, params, "", "")) - { + + public int fireLightningBeam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireLightningBeam", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireAcidBeamAvatar(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireAcidBeamAvatar", self, target, params, "", "")) - { + + public int fireAcidBeamAvatar(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireAcidBeamAvatar", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireRepublicFlameThrower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireRepublicFlameThrower", self, target, params, "", "")) - { + + public int fireRepublicFlameThrower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireRepublicFlameThrower", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireRepublicFlameThrowerGeneric(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireRepublicFlameThrowerGeneric", self, target, params, "", "")) - { + + public int fireRepublicFlameThrowerGeneric(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireRepublicFlameThrowerGeneric", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int firePistolLauncher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("firePistolLauncher", self, target, params, "", "")) - { + + public int firePistolLauncher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("firePistolLauncher", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireElitePistolLauncher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireElitePistolLauncher", self, target, params, "", "")) - { + + public int fireElitePistolLauncher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireElitePistolLauncher", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int firePistolLauncherGeneric(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("firePistolLauncherGeneric", self, target, params, "", "")) - { + + public int firePistolLauncherGeneric(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("firePistolLauncherGeneric", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int firePistolLauncherMedium(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("firePistolLauncherMedium", self, target, params, "", "")) - { + + public int firePistolLauncherMedium(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("firePistolLauncherMedium", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireCrusaderHeavyRifle(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireCrusaderHeavyRifle", self, target, params, "", "")) - { + + public int fireCrusaderHeavyRifle(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireCrusaderHeavyRifle", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int firePvpHeavy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("firePvpHeavy", self, target, params, "", "")) - { + + public int firePvpHeavy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("firePvpHeavy", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireHeavyShotgun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireHeavyShotgun", self, target, params, "", "")) - { + + public int fireHeavyShotgun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireHeavyShotgun", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int banner_buff_commando(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("banner_buff_commando", self, target, params, "", "")) - { + + public int banner_buff_commando(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("banner_buff_commando", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int stand(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (ai_lib.isAiDead(self)) - { + + public int stand(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (ai_lib.isAiDead(self)) { return SCRIPT_CONTINUE; } - if (!isIncapacitated(self) && !isDead(self)) - { + if (!isIncapacitated(self) && !isDead(self)) { setPosture(self, POSTURE_UPRIGHT); } return SCRIPT_CONTINUE; } - public int standFail(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (space_utils.isInStation(self)) - { + + public int standFail(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (space_utils.isInStation(self)) { LOG("space", "Leaving station!"); queueCommand(self, (616891114), null, "", COMMAND_PRIORITY_FRONT); return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kneel(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIncapacitated(self) && !isDead(self)) - { + + public int kneel(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIncapacitated(self) && !isDead(self)) { setPosture(self, POSTURE_CROUCHED); } return SCRIPT_CONTINUE; } - public int kneelFail(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int kneelFail(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { return SCRIPT_CONTINUE; } - public int prone(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIncapacitated(self) && !isDead(self)) - { + + public int prone(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIncapacitated(self) && !isDead(self)) { setPosture(self, POSTURE_PRONE); } return SCRIPT_CONTINUE; } - public int proneFail(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int proneFail(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { return SCRIPT_CONTINUE; } - public int veteranPlayerBuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("veteranPlayerBuff", self, target, params, "", "")) - { + + public int veteranPlayerBuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("veteranPlayerBuff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int forceRun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("forceRun", self, target, params, "", "")) - { + + public int forceRun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("forceRun", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_detect_camouflage_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canDetectCamouflage(self) || !combatStandardAction("bh_detect_camouflage_1", self, target, params, "", "")) - { + + public int bh_detect_camouflage_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canDetectCamouflage(self) || !combatStandardAction("bh_detect_camouflage_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float detectSkill = getEnhancedSkillStatisticModifier(self, "detect_hidden"); @@ -310,267 +275,231 @@ public class combat_actions extends script.systems.combat.combat_base stealth.detectCamouflage(self, true, true, distance, detectChance); return SCRIPT_CONTINUE; } - public int bh_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_ae_dm_1", self, target, params, "", "")) - { + + public int bh_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_ae_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_ae_dm_2", self, target, params, "", "")) - { + + public int bh_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_ae_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_del_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_del_cc_1", self, target, params, "", "")) - { + + public int bh_del_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_del_cc_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 1); return SCRIPT_CONTINUE; } - public int bh_del_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_del_cc_2", self, target, params, "", "")) - { + + public int bh_del_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_del_cc_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 1); return SCRIPT_CONTINUE; } - public int bh_del_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_del_cc_3", self, target, params, "", "")) - { + + public int bh_del_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_del_cc_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 1); return SCRIPT_CONTINUE; } - public int bh_del_dm_cc_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_del_dm_cc_dot_1", self, target, params, "", "")) - { + + public int bh_del_dm_cc_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_del_dm_cc_dot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 1); return SCRIPT_CONTINUE; } - public int bh_del_dm_cc_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_del_dm_cc_dot_2", self, target, params, "", "")) - { + + public int bh_del_dm_cc_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_del_dm_cc_dot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 1); return SCRIPT_CONTINUE; } - public int bh_del_dm_cc_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_del_dm_cc_dot_3", self, target, params, "", "")) - { + + public int bh_del_dm_cc_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_del_dm_cc_dot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 1); return SCRIPT_CONTINUE; } - public int bh_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_1", self, target, params, "", "")) - { + + public int bh_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_2", self, target, params, "", "")) - { + + public int bh_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_3", self, target, params, "", "")) - { + + public int bh_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_4", self, target, params, "", "")) - { + + public int bh_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_5", self, target, params, "", "")) - { + + public int bh_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_6", self, target, params, "", "")) - { + + public int bh_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_7", self, target, params, "", "")) - { + + public int bh_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_8", self, target, params, "", "")) - { + + public int bh_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_8"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_flawless_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_flawless_strike", self, target, params, "", "")) - { + + public int bh_flawless_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_flawless_strike", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_flawless_strike"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_bh_flawless_strike"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int set_bonus_bh_utility_a_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("set_bonus_bh_utility_a_1", self, target, params, "", "")) - { + + public int set_bonus_bh_utility_a_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("set_bonus_bh_utility_a_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int set_bonus_bh_utility_a_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("set_bonus_bh_utility_a_2", self, target, params, "", "")) - { + + public int set_bonus_bh_utility_a_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("set_bonus_bh_utility_a_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int set_bonus_bh_utility_a_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("set_bonus_bh_utility_a_3", self, target, params, "", "")) - { + + public int set_bonus_bh_utility_a_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("set_bonus_bh_utility_a_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public void doDireAbility(obj_id attacker, obj_id defender, int direType) throws InterruptedException - { + + public void doDireAbility(obj_id attacker, obj_id defender, int direType) throws InterruptedException { int bonusChance = 0; - switch (direType) - { + switch (direType) { case 0: - int direSnare = buff.getBuffOnTargetFromGroup(defender, "dire_snare"); - if (direSnare != 0) - { - return; - } - bonusChance = getEnhancedSkillStatisticModifierUncapped(attacker, "bh_dire_snare"); - break; + int direSnare = buff.getBuffOnTargetFromGroup(defender, "dire_snare"); + if (direSnare != 0) { + return; + } + bonusChance = getEnhancedSkillStatisticModifierUncapped(attacker, "bh_dire_snare"); + break; case 1: - bonusChance = getEnhancedSkillStatisticModifierUncapped(attacker, "bh_dire_root"); - break; + bonusChance = getEnhancedSkillStatisticModifierUncapped(attacker, "bh_dire_root"); + break; default: - return; + return; } - if (bonusChance > 0) - { + if (bonusChance > 0) { int roll = rand(1, 99); int total = roll + bonusChance; - if (total > 99) - { - if (direType == 0) - { + if (total > 99) { + if (direType == 0) { buff.applyBuff(defender, attacker, "bh_dire_snare_1"); showFlyText(defender, new string_id("set_bonus", "dire_snare_fly"), 2, colors.BLACK); - } - else - { + } else { queueCommand(attacker, (-2097394013), defender, "", COMMAND_PRIORITY_IMMEDIATE); showFlyTextPrivate(attacker, attacker, new string_id("set_bonus", "dire_trap_fly"), 2, colors.LEMONCHIFFON); } @@ -578,20 +507,18 @@ public class combat_actions extends script.systems.combat.combat_base } return; } - public boolean successfulFastAttack(obj_id attacker, String specialLine) throws InterruptedException - { + + public boolean successfulFastAttack(obj_id attacker, String specialLine) throws InterruptedException { return successfulFastAttack(attacker, specialLine, "fast_attack_fly"); } - public boolean successfulFastAttack(obj_id attacker, String specialLine, String customFlyReference) throws InterruptedException - { + + public boolean successfulFastAttack(obj_id attacker, String specialLine, String customFlyReference) throws InterruptedException { boolean fastAttackOrWhat = false; int bonusChance = getEnhancedSkillStatisticModifierUncapped(attacker, "fast_attack_line_" + specialLine); - if (bonusChance > 0) - { + if (bonusChance > 0) { int roll = rand(1, 99); int total = roll + bonusChance; - if (total > 99) - { + if (total > 99) { fastAttackOrWhat = true; showFlyText(attacker, new string_id("set_bonus", customFlyReference), 2, colors.LEMONCHIFFON); prose_package pp = new prose_package(); @@ -602,492 +529,424 @@ public class combat_actions extends script.systems.combat.combat_base } return fastAttackOrWhat; } - public int bh_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_cc_1", self, target, params, "", "")) - { + + public int bh_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_cc_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); - if (successfulFastAttack(self, "dm_cc")) - { + if (successfulFastAttack(self, "dm_cc")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int bh_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_cc_2", self, target, params, "", "")) - { + + public int bh_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_cc_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); - if (successfulFastAttack(self, "dm_cc")) - { + if (successfulFastAttack(self, "dm_cc")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int bh_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_cc_3", self, target, params, "", "")) - { + + public int bh_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_cc_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); - if (successfulFastAttack(self, "dm_cc")) - { + if (successfulFastAttack(self, "dm_cc")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int bh_dm_crit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_crit_1", self, target, params, "", "")) - { + + public int bh_dm_crit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_crit_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_crit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_crit_2", self, target, params, "", "")) - { + + public int bh_dm_crit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_crit_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int bh_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bh_sh_0", self, target, params, "", "")) - { + if (!combatStandardAction("bh_sh_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int bh_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bh_sh_1", self, target, params, "", "")) - { + if (!combatStandardAction("bh_sh_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int bh_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bh_sh_2", self, target, params, "", "")) - { + if (!combatStandardAction("bh_sh_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int bh_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bh_sh_3", self, target, params, "", "")) - { + if (!combatStandardAction("bh_sh_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_kill_trap_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canDisarmTrap(self, target)) - { + + public int co_kill_trap_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canDisarmTrap(self, target)) { return SCRIPT_OVERRIDE; } stealth.disarmTrap(self, target); return SCRIPT_CONTINUE; } - public int co_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_ae_dm_1", self, target, params, "", "")) - { + + public int co_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_ae_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_ae_dm_2", self, target, params, "", "")) - { + + public int co_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_ae_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_ae_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_ae_dm_3", self, target, params, "", "")) - { + + public int co_ae_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_ae_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_del_ae_cc_1_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_del_ae_cc_1_1", self, target, params, "", "")) - { + + public int co_del_ae_cc_1_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_del_ae_cc_1_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "co_grenade")) - { + if (successfulFastAttack(self, "co_grenade")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int co_del_ae_cc_1_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_del_ae_cc_1_2", self, target, params, "", "")) - { + + public int co_del_ae_cc_1_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_del_ae_cc_1_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "co_grenade")) - { + if (successfulFastAttack(self, "co_grenade")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int co_del_ae_cc_1_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_del_ae_cc_1_3", self, target, params, "", "")) - { + + public int co_del_ae_cc_1_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_del_ae_cc_1_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "co_grenade")) - { + if (successfulFastAttack(self, "co_grenade")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int sm_feeling_lucky_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "sm_feeling_lucky_recourse")) - { + + public int sm_feeling_lucky_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "sm_feeling_lucky_recourse")) { buff.applyBuff(self, self, "sm_feeling_lucky_recourse"); } return SCRIPT_CONTINUE; } - public int sm_lucky_break_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "sm_lucky_break_recourse")) - { + + public int sm_lucky_break_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "sm_lucky_break_recourse")) { buff.applyBuff(self, self, "sm_lucky_break_recourse"); } return SCRIPT_CONTINUE; } - public int sm_double_fire_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "sm_double_fire_recourse")) - { + + public int sm_double_fire_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "sm_double_fire_recourse")) { buff.applyBuff(self, self, "sm_double_fire_recourse"); } return SCRIPT_CONTINUE; } - public int sm_false_hope_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "sm_false_hope_recourse")) - { + + public int sm_false_hope_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "sm_false_hope_recourse")) { buff.applyBuff(self, self, "sm_false_hope_recourse"); } return SCRIPT_CONTINUE; } - public int sm_break_the_deal_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "sm_break_the_deal_recourse")) - { + + public int sm_break_the_deal_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "sm_break_the_deal_recourse")) { buff.applyBuff(self, self, "sm_break_the_deal_recourse"); } return SCRIPT_CONTINUE; } - public int sm_melee_stun_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "sm_melee_stun_recourse")) - { + + public int sm_melee_stun_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "sm_melee_stun_recourse")) { buff.applyBuff(self, self, "sm_melee_stun_recourse"); } return SCRIPT_CONTINUE; } - public int maladyRecourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "insidiousMalady_1")) - { + + public int maladyRecourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "insidiousMalady_1")) { buff.applyBuff(self, self, "insidiousMalady_1"); } return SCRIPT_CONTINUE; } - public int maladyRecourse_1(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "insidiousMalady_2")) - { + + public int maladyRecourse_1(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "insidiousMalady_2")) { buff.applyBuff(self, self, "insidiousMalady_2"); } return SCRIPT_CONTINUE; } - public int maladyRecourse_2(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "insidiousMalady_3")) - { + + public int maladyRecourse_2(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "insidiousMalady_3")) { buff.applyBuff(self, self, "insidiousMalady_3"); } return SCRIPT_CONTINUE; } - public int maladyRecourse_3(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "insidiousMalady_4")) - { + + public int maladyRecourse_3(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "insidiousMalady_4")) { buff.applyBuff(self, self, "insidiousMalady_4"); } return SCRIPT_CONTINUE; } - public int co_del_ae_cc_2_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_del_ae_cc_2_1", self, target, params, "", "")) - { + + public int co_del_ae_cc_2_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_del_ae_cc_2_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "co_grenade")) - { + if (successfulFastAttack(self, "co_grenade")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int co_del_ae_cc_2_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_del_ae_cc_2_2", self, target, params, "", "")) - { + + public int co_del_ae_cc_2_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_del_ae_cc_2_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "co_grenade")) - { + if (successfulFastAttack(self, "co_grenade")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int co_del_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_del_ae_dm_1", self, target, params, "", "")) - { + + public int co_del_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_del_ae_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "co_grenade")) - { + if (successfulFastAttack(self, "co_grenade")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int co_del_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_del_ae_dm_2", self, target, params, "", "")) - { + + public int co_del_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_del_ae_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "co_grenade")) - { + if (successfulFastAttack(self, "co_grenade")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int co_del_ae_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_del_ae_dm_3", self, target, params, "", "")) - { + + public int co_del_ae_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_del_ae_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "co_grenade")) - { + if (successfulFastAttack(self, "co_grenade")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int co_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_dm_1", self, target, params, "", "")) - { + + public int co_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_dm_2", self, target, params, "", "")) - { + + public int co_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_dm_3", self, target, params, "", "")) - { + + public int co_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_dm_4", self, target, params, "", "")) - { + + public int co_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_dm_5", self, target, params, "", "")) - { + + public int co_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_dm_6", self, target, params, "", "")) - { + + public int co_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_dm_7", self, target, params, "", "")) - { + + public int co_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_dm_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_dm_8", self, target, params, "", "")) - { + + public int co_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_dm_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_fld_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_fld_dm_1", self, target, params, "", "")) - { + + public int co_fld_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_fld_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_fld_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_fld_dm_2", self, target, params, "", "")) - { + + public int co_fld_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_fld_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_shock_tracer_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_shock_tracer_1", self, target, params, "", "")) - { + + public int co_shock_tracer_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_shock_tracer_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_shock_tracer_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_shock_tracer_2", self, target, params, "", "")) - { + + public int co_shock_tracer_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_shock_tracer_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_shock_tracer_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_shock_tracer_3", self, target, params, "", "")) - { + + public int co_shock_tracer_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_shock_tracer_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_shock_tracer_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_shock_tracer_4", self, target, params, "", "")) - { + + public int co_shock_tracer_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_shock_tracer_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_shock_grenade_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_shock_grenade_1", self, target, params, "", "")) - { + + public int co_shock_grenade_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_shock_grenade_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_shock_grenade_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_shock_grenade_2", self, target, params, "", "")) - { + + public int co_shock_grenade_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_shock_grenade_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_shock_grenade_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_shock_grenade_3", self, target, params, "", "")) - { + + public int co_shock_grenade_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_shock_grenade_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_shock_grenade_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_shock_grenade_4", self, target, params, "", "")) - { + + public int co_shock_grenade_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_shock_grenade_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_enrage_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (buff.hasBuff(self, "cloning_sickness")) - { + + public int co_enrage_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (buff.hasBuff(self, "cloning_sickness")) { sendSystemMessage(self, new string_id("spam", "not_well_enough")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("co_enrage_1", self, target, params, "", "") || !buff.hasBuff(self, "set_bonus_commando_utility_a_3")) - { + if (!combatStandardAction("co_enrage_1", self, target, params, "", "") || !buff.hasBuff(self, "set_bonus_commando_utility_a_3")) { return SCRIPT_OVERRIDE; } - int healthCost = (int)dataTableGetFloat(COMBAT_TABLE, "co_enrage_1", "healthCost"); + int healthCost = (int) dataTableGetFloat(COMBAT_TABLE, "co_enrage_1", "healthCost"); int currentHealth = getHealth(self); int modifiedHealth = currentHealth - healthCost; attrib_mod[] healthMods = getHealthModifiers(self); @@ -1095,13 +954,11 @@ public class combat_actions extends script.systems.combat.combat_base for (attrib_mod healthMod : healthMods) { healthModsValue += healthMod.getValue(); } - if (healthModsValue < 0) - { + if (healthModsValue < 0) { sendSystemMessage(self, new string_id("spam", "not_well_enough")); return SCRIPT_OVERRIDE; } - if (modifiedHealth < 1) - { + if (modifiedHealth < 1) { showFlyTextPrivate(self, self, new string_id("spam", "low_health"), 1.0f, colors.RED); return SCRIPT_OVERRIDE; } @@ -1114,16 +971,14 @@ public class combat_actions extends script.systems.combat.combat_base sendCombatSpamMessageProse(self, pp, COMBAT_RESULT_GENERIC); return SCRIPT_CONTINUE; } - public int co_stand_fast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_stand_fast", self, target, params, "", "")) - { + + public int co_stand_fast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_stand_fast", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("co_stand_fast"); LOG("stand_fast", "baseCooldownTime is " + baseCooldownTime); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_co_stand_fast"); @@ -1131,27 +986,23 @@ public class combat_actions extends script.systems.combat.combat_base setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int eggDetonated(obj_id self, dictionary params) throws InterruptedException - { + + public int eggDetonated(obj_id self, dictionary params) throws InterruptedException { utils.removeScriptVar(self, "objEgg"); return SCRIPT_CONTINUE; } - public boolean hasEgg(obj_id player) throws InterruptedException - { + + public boolean hasEgg(obj_id player) throws InterruptedException { obj_id egg = utils.getObjIdScriptVar(player, "objEgg"); - if (isValidId(egg) && utils.hasScriptVar(egg, "objOwner")) - { + if (isValidId(egg) && utils.hasScriptVar(egg, "objOwner")) { return true; - } - else - { + } else { return false; } } - public boolean detonateEgg(obj_id self, boolean eggCreated) throws InterruptedException - { - if (eggCreated && hasEgg(self)) - { + + public boolean detonateEgg(obj_id self, boolean eggCreated) throws InterruptedException { + if (eggCreated && hasEgg(self)) { dictionary particleParams = new dictionary(); dictionary attackParams = new dictionary(); obj_id objEgg = utils.getObjIdScriptVar(self, "objEgg"); @@ -1164,430 +1015,368 @@ public class combat_actions extends script.systems.combat.combat_base } return false; } - public int co_remote_detonator_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int co_remote_detonator_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { boolean eggCreated = hasEgg(self); - if (!eggCreated && !combatStandardAction("co_remote_detonator_1", self, target, params, "", "")) - { + if (!eggCreated && !combatStandardAction("co_remote_detonator_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (!eggCreated && hasEgg(self)) - { + if (!eggCreated && hasEgg(self)) { return SCRIPT_OVERRIDE; } - if (!detonateEgg(self, eggCreated)) - { + if (!detonateEgg(self, eggCreated)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_remote_detonator_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int co_remote_detonator_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { boolean eggCreated = hasEgg(self); - if (!eggCreated && !combatStandardAction("co_remote_detonator_2", self, target, params, "", "")) - { + if (!eggCreated && !combatStandardAction("co_remote_detonator_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (!eggCreated && hasEgg(self)) - { + if (!eggCreated && hasEgg(self)) { return SCRIPT_OVERRIDE; } - if (!detonateEgg(self, eggCreated)) - { + if (!detonateEgg(self, eggCreated)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_remote_detonator_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int co_remote_detonator_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { boolean eggCreated = hasEgg(self); - if (!eggCreated && !combatStandardAction("co_remote_detonator_3", self, target, params, "", "")) - { + if (!eggCreated && !combatStandardAction("co_remote_detonator_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (!eggCreated && hasEgg(self)) - { + if (!eggCreated && hasEgg(self)) { return SCRIPT_OVERRIDE; } - if (!detonateEgg(self, eggCreated)) - { + if (!detonateEgg(self, eggCreated)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_remote_detonator_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int co_remote_detonator_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { boolean eggCreated = hasEgg(self); - if (!eggCreated && !combatStandardAction("co_remote_detonator_4", self, target, params, "", "")) - { + if (!eggCreated && !combatStandardAction("co_remote_detonator_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (!eggCreated && hasEgg(self)) - { + if (!eggCreated && hasEgg(self)) { return SCRIPT_OVERRIDE; } - if (!detonateEgg(self, eggCreated)) - { + if (!detonateEgg(self, eggCreated)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_remote_detonator_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int co_remote_detonator_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { boolean eggCreated = hasEgg(self); - if (!eggCreated && !combatStandardAction("co_remote_detonator_5", self, target, params, "", "")) - { + if (!eggCreated && !combatStandardAction("co_remote_detonator_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (!eggCreated && hasEgg(self)) - { + if (!eggCreated && hasEgg(self)) { return SCRIPT_OVERRIDE; } - if (!detonateEgg(self, eggCreated)) - { + if (!detonateEgg(self, eggCreated)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int co_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("co_sh_0", self, target, params, "", "")) - { + if (!combatStandardAction("co_sh_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int co_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("co_sh_1", self, target, params, "", "")) - { + if (!combatStandardAction("co_sh_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int co_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("co_sh_2", self, target, params, "", "")) - { + if (!combatStandardAction("co_sh_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int co_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("co_sh_3", self, target, params, "", "")) - { + if (!combatStandardAction("co_sh_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_stim_armor(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_stim_armor", self, target, params, "", "")) - { + + public int co_stim_armor(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_stim_armor", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kill_meter_co_it_burns_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kill_meter_co_it_burns_proc", self, target, params, "", "")) - { + + public int kill_meter_co_it_burns_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kill_meter_co_it_burns_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kill_meter_co_armor_splash_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kill_meter_co_armor_splash_proc", self, target, params, "", "")) - { + + public int kill_meter_co_armor_splash_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kill_meter_co_armor_splash_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kill_meter_co_youll_regret_that_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kill_meter_co_youll_regret_that_reac", self, target, params, "", "")) - { + + public int kill_meter_co_youll_regret_that_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kill_meter_co_youll_regret_that_reac", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_co_burst_fire_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_co_burst_fire_proc", self, target, params, "", "")) - { + + public int expertise_co_burst_fire_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_co_burst_fire_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_position_secured(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (buff.toggleStance(self, "co_position_secured")) - { + + public int co_position_secured(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (buff.toggleStance(self, "co_position_secured")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("co_position_secured", self, target, params, "", "")) - { + if (!combatStandardAction("co_position_secured", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } vehicle.storeAllVehicles(self); showFlyText(self, new string_id("spam", "co_position_secured"), 2, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int co_suppressing_fire(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_suppressing_fire", self, target, params, "", "")) - { + + public int co_suppressing_fire(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_suppressing_fire", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_riddle_armor(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_riddle_armor", self, target, params, "", "")) - { + + public int co_riddle_armor(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_riddle_armor", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("co_riddle_armor"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_co_riddle_armor"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int co_armor_cracker(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_armor_cracker", self, target, params, "", "")) - { + + public int co_armor_cracker(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_armor_cracker", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("co_armor_cracker"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_co_riddle_armor"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int ofAggroChannel(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!group.inSameGroup(self, target) || target == self) - { + + public int ofAggroChannel(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!group.inSameGroup(self, target) || target == self) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_aggro_channel", self, target, params, "", "")) - { + if (!combatStandardAction("of_aggro_channel", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_mirror_armor(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_mirror_armor", self, target, params, "", "")) - { + + public int co_mirror_armor(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_mirror_armor", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } combat.mirrorArmor(self); return SCRIPT_CONTINUE; } - public int en_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_dm_1", self, target, params, "", "")) - { + + public int en_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_dm_2", self, target, params, "", "")) - { + + public int en_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_dm_3", self, target, params, "", "")) - { + + public int en_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_dm_4", self, target, params, "", "")) - { + + public int en_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_dm_5", self, target, params, "", "")) - { + + public int en_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_dm_6", self, target, params, "", "")) - { + + public int en_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_dm_7", self, target, params, "", "")) - { + + public int en_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_dm_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_dm_8", self, target, params, "", "")) - { + + public int en_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_dm_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int en_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("en_sh_1", self, target, params, "", "")) - { + if (!combatStandardAction("en_sh_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int en_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("en_sh_2", self, target, params, "", "")) - { + if (!combatStandardAction("en_sh_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int en_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("en_sh_3", self, target, params, "", "")) - { + if (!combatStandardAction("en_sh_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_conceal_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_conceal_1", self, target, params, "", "")) - { + + public int bh_conceal_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_conceal_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_conceal_device_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_conceal_device_1", self, target, params, "", "")) - { + + public int co_conceal_device_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_conceal_device_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_neutralize_device_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canDisarmTrap(self, target)) - { + + public int sp_neutralize_device_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canDisarmTrap(self, target)) { return SCRIPT_OVERRIDE; } stealth.disarmTrap(self, target); return SCRIPT_CONTINUE; } - public int sp_hide_device_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hide_device_1", self, target, params, "", "")) - { + + public int sp_hide_device_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hide_device_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_saber_reflect_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_saber_reflect_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_saber_reflect_buff", self, target, params, "", "")) - { + if (!combatStandardAction("fs_saber_reflect_buff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_saber_reflect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self) || !buff.hasBuff(self, "fs_saber_reflect")) - { + + public int fs_saber_reflect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self) || !buff.hasBuff(self, "fs_saber_reflect")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_saber_reflect", self, target, params, "", "")) - { + if (!combatStandardAction("fs_saber_reflect", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } showFlyTextPrivate(self, self, new string_id("combat_effects", "saber_reflect"), 1.5f, colors.ORANGERED); return SCRIPT_CONTINUE; } - public int saberBlock(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("saberBlock", self, target, params, "", "")) - { + + public int saberBlock(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("saberBlock", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_sense_danger_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canDetectCamouflage(self) || !combatStandardAction("fs_sense_danger_1", self, target, params, "", "")) - { + + public int fs_sense_danger_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canDetectCamouflage(self) || !combatStandardAction("fs_sense_danger_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float detectSkill = getEnhancedSkillStatisticModifier(self, "detect_hidden"); @@ -1596,10 +1385,9 @@ public class combat_actions extends script.systems.combat.combat_base stealth.detectCamouflage(self, true, true, distance, detectChance); return SCRIPT_CONTINUE; } - public int fs_forsake_fear(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_forsake_fear", self, target, params, "", "")) - { + + public int fs_forsake_fear(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_forsake_fear", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } string_id promptString = new string_id("healing", "fs_forsake_fear_channel"); @@ -1612,629 +1400,534 @@ public class combat_actions extends script.systems.combat.combat_base messageTo(self, "checkChannelForsakeFear", parms, 1, false); return SCRIPT_CONTINUE; } - public int fs_force_spark(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_force_spark", self, target, params, "", "")) - { + + public int fs_force_spark(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_force_spark", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_ae_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_ae_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_ae_dm_cc_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_ae_dm_cc_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_ae_dm_cc_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_ae_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_ae_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_ae_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_ae_dm_cc_2", self, target, params, "", "")) - { + if (!combatStandardAction("fs_ae_dm_cc_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_ae_dm_cc_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_ae_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_ae_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_ae_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_ae_dm_cc_3", self, target, params, "", "")) - { + if (!combatStandardAction("fs_ae_dm_cc_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_ae_dm_cc_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_ae_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_ae_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_ae_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_ae_dm_cc_4", self, target, params, "", "")) - { + if (!combatStandardAction("fs_ae_dm_cc_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_ae_dm_cc_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_ae_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_ae_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_ae_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_ae_dm_cc_5", self, target, params, "", "")) - { + if (!combatStandardAction("fs_ae_dm_cc_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_ae_dm_cc_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_ae_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_ae_dm_cc_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_ae_dm_cc_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_ae_dm_cc_6", self, target, params, "", "")) - { + if (!combatStandardAction("fs_ae_dm_cc_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_ae_dm_cc_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_ae_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_maelstrom_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_maelstrom_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_maelstrom_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_maelstrom_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int fs_maelstrom_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_maelstrom_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_maelstrom_2", self, target, params, "", "")) - { + if (!combatStandardAction("fs_maelstrom_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int fs_maelstrom_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_maelstrom_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_maelstrom_3", self, target, params, "", "")) - { + if (!combatStandardAction("fs_maelstrom_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int fs_maelstrom_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_maelstrom_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_maelstrom_4", self, target, params, "", "")) - { + if (!combatStandardAction("fs_maelstrom_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int fs_maelstrom_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_maelstrom_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_maelstrom_5", self, target, params, "", "")) - { + if (!combatStandardAction("fs_maelstrom_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int fs_buff_ca_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (buff.toggleStance(self, "fs_buff_ca_1")) - { + + public int fs_buff_ca_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (buff.toggleStance(self, "fs_buff_ca_1")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_buff_ca_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_buff_ca_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_buff_def_1_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (buff.toggleStance(self, "fs_buff_def_1_1")) - { + + public int fs_buff_def_1_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (buff.toggleStance(self, "fs_buff_def_1_1")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_buff_def_1_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_buff_def_1_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_flurry_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_flurry_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_flurry_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_flurry_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_flurry_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int fs_flurry_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_flurry_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_flurry_2", self, target, params, "", "")) - { + if (!combatStandardAction("fs_flurry_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_flurry_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int fs_flurry_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_flurry_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_flurry_3", self, target, params, "", "")) - { + if (!combatStandardAction("fs_flurry_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_flurry_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int fs_flurry_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_flurry_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_flurry_4", self, target, params, "", "")) - { + if (!combatStandardAction("fs_flurry_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_flurry_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int fs_flurry_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_flurry_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_flurry_5", self, target, params, "", "")) - { + if (!combatStandardAction("fs_flurry_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_flurry_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int fs_flurry_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_flurry_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_flurry_6", self, target, params, "", "")) - { + if (!combatStandardAction("fs_flurry_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_flurry_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int fs_flurry_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_flurry_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_stance")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_flurry_7", self, target, params, "", "")) - { + if (!combatStandardAction("fs_flurry_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_flurry_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int fs_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_1", self, target, params, "", "")) - { + + public int fs_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_2", self, target, params, "", "")) - { + + public int fs_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_3", self, target, params, "", "")) - { + + public int fs_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_4", self, target, params, "", "")) - { + + public int fs_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_5", self, target, params, "", "")) - { + + public int fs_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_6", self, target, params, "", "")) - { + + public int fs_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_7", self, target, params, "", "")) - { + + public int fs_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_sweep_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_sweep_1", self, target, params, "", "")) - { + + public int fs_sweep_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_sweep_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_sweep_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_sweep") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_sweep_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_sweep_2", self, target, params, "", "")) - { + + public int fs_sweep_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_sweep_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_sweep_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_sweep") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_sweep_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_sweep_3", self, target, params, "", "")) - { + + public int fs_sweep_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_sweep_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_sweep_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_sweep") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_sweep_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_sweep_4", self, target, params, "", "")) - { + + public int fs_sweep_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_sweep_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_sweep_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_sweep") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_sweep_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_sweep_5", self, target, params, "", "")) - { + + public int fs_sweep_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_sweep_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_sweep_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_sweep") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_sweep_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_sweep_6", self, target, params, "", "")) - { + + public int fs_sweep_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_sweep_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_sweep_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_sweep") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_sweep_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_sweep_7", self, target, params, "", "")) - { + + public int fs_sweep_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_sweep_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("fs_sweep_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_sweep") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_mind_trick_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_mind_trick_1", self, target, params, "", "")) - { + + public int fs_mind_trick_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_mind_trick_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } ai_lib.mindTrick(self, target); return SCRIPT_CONTINUE; } - public int fs_mind_trick_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_mind_trick_2", self, target, params, "", "")) - { + + public int fs_mind_trick_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_mind_trick_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } combat_data actionData = combat_engine.getCombatData("fs_mind_trick_2"); @@ -2246,2168 +1939,1825 @@ public class combat_actions extends script.systems.combat.combat_base } return SCRIPT_CONTINUE; } - public int fs_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_dm_cc_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_dm_cc_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_dm_cc_2", self, target, params, "", "")) - { + if (!combatStandardAction("fs_dm_cc_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_dm_cc_3", self, target, params, "", "")) - { + if (!combatStandardAction("fs_dm_cc_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_dm_cc_4", self, target, params, "", "")) - { + if (!combatStandardAction("fs_dm_cc_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_dm_cc_5", self, target, params, "", "")) - { + if (!combatStandardAction("fs_dm_cc_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_dm_cc_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_dm_cc_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_dm_cc_6", self, target, params, "", "")) - { + if (!combatStandardAction("fs_dm_cc_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_dm_cc_crit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_cc_crit_1", self, target, params, "", "")) - { + + public int fs_dm_cc_crit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_cc_crit_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_cc_crit_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_cc_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_cc_crit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_cc_crit_2", self, target, params, "", "")) - { + + public int fs_dm_cc_crit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_cc_crit_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_cc_crit_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_cc_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_cc_crit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_cc_crit_3", self, target, params, "", "")) - { + + public int fs_dm_cc_crit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_cc_crit_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_cc_crit_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_cc_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_cc_crit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_cc_crit_4", self, target, params, "", "")) - { + + public int fs_dm_cc_crit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_cc_crit_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_cc_crit_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_cc_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_dm_cc_crit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fs_dm_cc_crit_5", self, target, params, "", "")) - { + + public int fs_dm_cc_crit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fs_dm_cc_crit_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "fs_powers", "fury_fly")) - { + if (successfulFastAttack(self, "fs_powers", "fury_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("fs_dm_cc_crit_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_fs_cc_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int fs_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int fs_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_sh_0", self, target, params, "", "")) - { + if (!combatStandardAction("fs_sh_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int fs_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_sh_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_sh_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int fs_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_sh_2", self, target, params, "", "")) - { + if (!combatStandardAction("fs_sh_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int fs_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_sh_3", self, target, params, "", "")) - { + if (!combatStandardAction("fs_sh_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_hermetic_touch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_hermetic_touch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_hermetic_touch", self, target, params, "", "")) - { + if (!combatStandardAction("fs_hermetic_touch", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_set_heroic_taunt_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.hasBuff(self, "set_bonus_jedi_utility_b_3")) - { + + public int fs_set_heroic_taunt_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.hasBuff(self, "set_bonus_jedi_utility_b_3")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_set_heroic_taunt_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_set_heroic_taunt_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_ae_heal_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_ae_heal_1", self, target, params, "", "")) - { + + public int me_ae_heal_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_ae_heal_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_ae_heal_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_ae_heal_2", self, target, params, "", "")) - { + + public int me_ae_heal_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_ae_heal_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_ae_heal_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_ae_heal_3", self, target, params, "", "")) - { + + public int me_ae_heal_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_ae_heal_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_ae_heal_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_ae_heal_4", self, target, params, "", "")) - { + + public int me_ae_heal_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_ae_heal_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_ae_heal_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_ae_heal_5", self, target, params, "", "")) - { + + public int me_ae_heal_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_ae_heal_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_ae_heal_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_ae_heal_6", self, target, params, "", "")) - { + + public int me_ae_heal_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_ae_heal_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_buff_health_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_buff_health_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_health")) - { + if (!buff.canApplyBuff(target, "me_buff_health")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_buff_health_1", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_1", self, target, params, "", "")) - { + + public int me_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_dm")) - { + if (successfulFastAttack(self, "me_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_2", self, target, params, "", "")) - { + + public int me_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_dm")) - { + if (successfulFastAttack(self, "me_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_3", self, target, params, "", "")) - { + + public int me_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_dm")) - { + if (successfulFastAttack(self, "me_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_4", self, target, params, "", "")) - { + + public int me_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_dm")) - { + if (successfulFastAttack(self, "me_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_5", self, target, params, "", "")) - { + + public int me_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_dm")) - { + if (successfulFastAttack(self, "me_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_6", self, target, params, "", "")) - { + + public int me_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_dm")) - { + if (successfulFastAttack(self, "me_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_8", self, target, params, "", "")) - { + + public int me_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_dm")) - { + if (successfulFastAttack(self, "me_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_dm_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_dot_1", self, target, params, "", "")) - { + + public int me_dm_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_dot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); float baseCooldownTime = getBaseCooldownTime("me_dm_dot_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_dm_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_dot_2", self, target, params, "", "")) - { + + public int me_dm_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_dot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); float baseCooldownTime = getBaseCooldownTime("me_dm_dot_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_dm_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_dot_3", self, target, params, "", "")) - { + + public int me_dm_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_dot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); float baseCooldownTime = getBaseCooldownTime("me_dm_dot_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_dm_dot_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_dot_4", self, target, params, "", "")) - { + + public int me_dm_dot_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_dot_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); float baseCooldownTime = getBaseCooldownTime("me_dm_dot_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_dm_dot_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_dot_5", self, target, params, "", "")) - { + + public int me_dm_dot_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_dot_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); float baseCooldownTime = getBaseCooldownTime("me_dm_dot_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_dm_dot_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_dm_dot_6", self, target, params, "", "")) - { + + public int me_dm_dot_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_dm_dot_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); float baseCooldownTime = getBaseCooldownTime("me_dm_dot_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_fld_dm_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_fld_dm_dot_1", self, target, params, "", "")) - { + + public int me_fld_dm_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_fld_dm_dot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("me_fld_dm_dot_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_fld_dm_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_fld_dm_dot_2", self, target, params, "", "")) - { + + public int me_fld_dm_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_fld_dm_dot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("me_fld_dm_dot_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_fld_dm_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_fld_dm_dot_3", self, target, params, "", "")) - { + + public int me_fld_dm_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_fld_dm_dot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("me_fld_dm_dot_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_dot"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int me_hot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_hot_1", false)) - { + + public int me_hot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_hot_1", false)) { target = self; } - if (!combatStandardAction("me_hot_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_hot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_hot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_hot_2", false)) - { + + public int me_hot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_hot_2", false)) { target = self; } - if (!combatStandardAction("me_hot_2", self, target, params, "", "")) - { + if (!combatStandardAction("me_hot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_hot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_hot_3", false)) - { + + public int me_hot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_hot_3", false)) { target = self; } - if (!combatStandardAction("me_hot_3", self, target, params, "", "")) - { + if (!combatStandardAction("me_hot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int me_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_sh_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_sh_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_rv_ooc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_rv_ooc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_rv_ooc", self, target, params, "", "")) - { + if (!combatStandardAction("me_rv_ooc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) - { + if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("me_rv_ooc"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_revive"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int me_rv_area(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_rv_area(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_rv_area", self, target, params, "", "")) - { + if (!combatStandardAction("me_rv_area", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) - { + if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("me_rv_area"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_revive"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int me_rv_combat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_rv_combat", self, self, params, "", "")) - { + + public int me_rv_combat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_rv_combat", self, self, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) - { + if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("me_rv_combat"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_aoe_revive"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod * 60)); return SCRIPT_CONTINUE; } - public int me_rv_pvp_single(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || space_dungeon.isInSpaceDungeon(self) || instance.isInInstanceArea(self) || !utils.hasScriptVar(target, "pvp_death")) - { + + public int me_rv_pvp_single(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || space_dungeon.isInSpaceDungeon(self) || instance.isInInstanceArea(self) || !utils.hasScriptVar(target, "pvp_death")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_rv_pvp_single", self, target, params, "", "")) - { + if (!combatStandardAction("me_rv_pvp_single", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) - { + if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("me_rv_pvp_single"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_revive"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int me_rv_pvp_area(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (space_dungeon.isInSpaceDungeon(self) || instance.isInInstanceArea(self)) - { + + public int me_rv_pvp_area(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (space_dungeon.isInSpaceDungeon(self) || instance.isInInstanceArea(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_rv_pvp_area", self, self, params, "", "")) - { + if (!combatStandardAction("me_rv_pvp_area", self, self, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) - { + if (successfulFastAttack(self, "me_revive", "quick_revive_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("me_rv_pvp_area"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_aoe_revive"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod * 60)); return SCRIPT_CONTINUE; } - public int me_drag_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!group.isGrouped(self)) - { + + public int me_drag_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!group.isGrouped(self)) { sendSystemMessage(self, new string_id("spam", "drag_not_grouped")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_drag_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_drag_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } corpse.dragPlayerCorpse(self, corpse.getDraggableCorpsesInRange(self, true)); return SCRIPT_CONTINUE; } - public int me_blood_cleaners_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_blood_cleaners_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.hasBuff(target, "incapWeaken")) - { - if (target == self) - { + if (!buff.hasBuff(target, "incapWeaken")) { + if (target == self) { sendSystemMessage(self, new string_id("spam", "remove_weakness_self_fail")); - } - else - { + } else { sendSystemMessage(self, new string_id("spam", "remove_weakness_other_fail")); } return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_blood_cleaners_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_blood_cleaners_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } buff.removeBuff(target, "incapWeaken"); playClientEffectObj(target, "appearance/pt_heal_2.prt", target, "root"); return SCRIPT_CONTINUE; } - public int me_bacta_bomb_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_1", false)) - { + + public int me_bacta_bomb_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_1", false)) { target = self; } - if (!combatStandardAction("me_bacta_bomb_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_bomb_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_bomb_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_2", false)) - { + + public int me_bacta_bomb_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_2", false)) { target = self; } - if (!combatStandardAction("me_bacta_bomb_2", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_bomb_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_bomb_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_3", false)) - { + + public int me_bacta_bomb_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_3", false)) { target = self; } - if (!combatStandardAction("me_bacta_bomb_3", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_bomb_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_bomb_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_4", false)) - { + + public int me_bacta_bomb_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_4", false)) { target = self; } - if (!combatStandardAction("me_bacta_bomb_4", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_bomb_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_bomb_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_5", false)) - { + + public int me_bacta_bomb_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_5", false)) { target = self; } - if (!combatStandardAction("me_bacta_bomb_5", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_bomb_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_ampule_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_1", false)) - { + + public int me_bacta_ampule_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_1", false)) { target = self; } - if (!combatStandardAction("me_bacta_ampule_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_ampule_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_ampule_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_2", false)) - { + + public int me_bacta_ampule_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_2", false)) { target = self; } - if (!combatStandardAction("me_bacta_ampule_2", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_ampule_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_ampule_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_3", false)) - { + + public int me_bacta_ampule_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_3", false)) { target = self; } - if (!combatStandardAction("me_bacta_ampule_3", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_ampule_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_ampule_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_4", false)) - { + + public int me_bacta_ampule_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_4", false)) { target = self; } - if (!combatStandardAction("me_bacta_ampule_4", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_ampule_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_ampule_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_5", false)) - { + + public int me_bacta_ampule_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_5", false)) { target = self; } - if (!combatStandardAction("me_bacta_ampule_5", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_ampule_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_ampule_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_6", false)) - { + + public int me_bacta_ampule_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_ampule_6", false)) { target = self; } - if (!combatStandardAction("me_bacta_ampule_6", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_ampule_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_cure_affliction_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_cure_affliction_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!combatStandardAction("me_cure_affliction_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_cure_affliction_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_serotonin_boost_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_serotonin_boost_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!combatStandardAction("me_serotonin_boost_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_serotonin_boost_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_bacta_grenade_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_grenade_1", false)) - { + + public int me_bacta_grenade_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_grenade_1", false)) { target = self; } - if (!combatStandardAction("me_bacta_grenade_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_grenade_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_grenade_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_grenade_2", false)) - { + + public int me_bacta_grenade_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_grenade_2", false)) { target = self; } - if (!combatStandardAction("me_bacta_grenade_2", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_grenade_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_grenade_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_grenade_3", false)) - { + + public int me_bacta_grenade_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_grenade_3", false)) { target = self; } - if (!combatStandardAction("me_bacta_grenade_3", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_grenade_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_grenade_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_grenade_4", false)) - { + + public int me_bacta_grenade_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_grenade_4", false)) { target = self; } - if (!combatStandardAction("me_bacta_grenade_4", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_grenade_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_bacta_grenade_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_5", false)) - { + + public int me_bacta_grenade_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target) || !isInAttackRange(self, target, "me_bacta_bomb_5", false)) { target = self; } - if (!combatStandardAction("me_bacta_grenade_5", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_grenade_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) - { + if (target != self && pvpCanHelp(self, target) && successfulFastAttack(self, "me_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int me_enhance_action_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_action_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_action_1")) - { + if (!buff.canApplyBuff(target, "me_buff_action_1")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_action_1", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_action_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_action_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_action_2")) - { + if (!buff.canApplyBuff(target, "me_buff_action_2")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_action_2", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_action_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_action_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_action_3")) - { + if (!buff.canApplyBuff(target, "me_buff_action_3")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_action_3", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_reckless_stimulation_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (hasFullActionPool(self)) - { + + public int me_reckless_stimulation_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (hasFullActionPool(self)) { showFlyTextPrivate(self, self, new string_id("spam", "full_action_pool"), 2, colors.LEMONCHIFFON); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "cloning_sickness")) - { + if (buff.hasBuff(self, "cloning_sickness")) { sendSystemMessage(self, new string_id("spam", "not_well_enough")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_reckless_stimulation_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_reckless_stimulation_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - int healthCost = (int)dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_1", "healthCost"); + int healthCost = (int) dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_1", "healthCost"); int actionGain = dataTableGetInt(COMBAT_TABLE, "me_reckless_stimulation_1", "addedDamage"); healthToActionConversion(self, healthCost, actionGain); return SCRIPT_CONTINUE; } - public int me_reckless_stimulation_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (hasFullActionPool(self)) - { + + public int me_reckless_stimulation_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (hasFullActionPool(self)) { showFlyTextPrivate(self, self, new string_id("spam", "full_action_pool"), 2, colors.LEMONCHIFFON); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "cloning_sickness")) - { + if (buff.hasBuff(self, "cloning_sickness")) { sendSystemMessage(self, new string_id("spam", "not_well_enough")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_reckless_stimulation_2", self, target, params, "", "")) - { + if (!combatStandardAction("me_reckless_stimulation_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - int healthCost = (int)dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_2", "healthCost"); + int healthCost = (int) dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_2", "healthCost"); int actionGain = dataTableGetInt(COMBAT_TABLE, "me_reckless_stimulation_2", "addedDamage"); healthToActionConversion(self, healthCost, actionGain); return SCRIPT_CONTINUE; } - public int me_reckless_stimulation_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (hasFullActionPool(self)) - { + + public int me_reckless_stimulation_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (hasFullActionPool(self)) { showFlyTextPrivate(self, self, new string_id("spam", "full_action_pool"), 2, colors.LEMONCHIFFON); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "cloning_sickness")) - { + if (buff.hasBuff(self, "cloning_sickness")) { sendSystemMessage(self, new string_id("spam", "not_well_enough")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_reckless_stimulation_3", self, target, params, "", "")) - { + if (!combatStandardAction("me_reckless_stimulation_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - int healthCost = (int)dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_3", "healthCost"); + int healthCost = (int) dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_3", "healthCost"); int actionGain = dataTableGetInt(COMBAT_TABLE, "me_reckless_stimulation_3", "addedDamage"); healthToActionConversion(self, healthCost, actionGain); return SCRIPT_CONTINUE; } - public int me_reckless_stimulation_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (hasFullActionPool(self)) - { + + public int me_reckless_stimulation_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (hasFullActionPool(self)) { showFlyTextPrivate(self, self, new string_id("spam", "full_action_pool"), 2, colors.LEMONCHIFFON); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "cloning_sickness")) - { + if (buff.hasBuff(self, "cloning_sickness")) { sendSystemMessage(self, new string_id("spam", "not_well_enough")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_reckless_stimulation_4", self, target, params, "", "")) - { + if (!combatStandardAction("me_reckless_stimulation_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - int healthCost = (int)dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_4", "healthCost"); + int healthCost = (int) dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_4", "healthCost"); int actionGain = dataTableGetInt(COMBAT_TABLE, "me_reckless_stimulation_4", "addedDamage"); healthToActionConversion(self, healthCost, actionGain); return SCRIPT_CONTINUE; } - public int me_reckless_stimulation_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (hasFullActionPool(self)) - { + + public int me_reckless_stimulation_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (hasFullActionPool(self)) { showFlyTextPrivate(self, self, new string_id("spam", "full_action_pool"), 2, colors.LEMONCHIFFON); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "cloning_sickness")) - { + if (buff.hasBuff(self, "cloning_sickness")) { sendSystemMessage(self, new string_id("spam", "not_well_enough")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_reckless_stimulation_5", self, target, params, "", "")) - { + if (!combatStandardAction("me_reckless_stimulation_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - int healthCost = (int)dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_5", "healthCost"); + int healthCost = (int) dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_5", "healthCost"); int actionGain = dataTableGetInt(COMBAT_TABLE, "me_reckless_stimulation_5", "addedDamage"); healthToActionConversion(self, healthCost, actionGain); return SCRIPT_CONTINUE; } - public int me_reckless_stimulation_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (hasFullActionPool(self)) - { + + public int me_reckless_stimulation_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (hasFullActionPool(self)) { showFlyTextPrivate(self, self, new string_id("spam", "full_action_pool"), 2, colors.LEMONCHIFFON); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "cloning_sickness")) - { + if (buff.hasBuff(self, "cloning_sickness")) { sendSystemMessage(self, new string_id("spam", "not_well_enough")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_reckless_stimulation_6", self, target, params, "", "")) - { + if (!combatStandardAction("me_reckless_stimulation_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - int healthCost = (int)dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_6", "healthCost"); + int healthCost = (int) dataTableGetFloat(COMBAT_TABLE, "me_reckless_stimulation_6", "healthCost"); int actionGain = dataTableGetInt(COMBAT_TABLE, "me_reckless_stimulation_6", "addedDamage"); healthToActionConversion(self, healthCost, actionGain); return SCRIPT_CONTINUE; } - public int me_stasis_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int me_stasis_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { int stasisBuff = buff.getBuffOnTargetFromGroup(target, "stasis"); - if (stasisBuff != 0) - { + if (stasisBuff != 0) { return SCRIPT_OVERRIDE; } - if (!buff.canApplyBuff(target, "me_stasis_1")) - { + if (!buff.canApplyBuff(target, "me_stasis_1")) { return SCRIPT_OVERRIDE; } - if (vehicle.isVehicle(target)) - { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } obj_id testTarget = getIntendedTarget(self); - if (isIdValid(testTarget) && ((group.inSameGroup(self, testTarget) && pvpCanHelp(self, testTarget)) || pvpCanAttack(self, testTarget))) - { + if (isIdValid(testTarget) && ((group.inSameGroup(self, testTarget) && pvpCanHelp(self, testTarget)) || pvpCanAttack(self, testTarget))) { target = testTarget; - } - else - { + } else { return SCRIPT_OVERRIDE; } - if (getDistance(self, target) > 48.0f) - { + if (getDistance(self, target) > 48.0f) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_stasis_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_stasis_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } buff.applyBuff(target, self, "me_stasis_1"); return SCRIPT_CONTINUE; } - public int me_stasis_self_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int me_stasis_self_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { int stasisBuff = buff.getBuffOnTargetFromGroup(self, "stasis"); - if (stasisBuff != 0) - { + if (stasisBuff != 0) { return SCRIPT_OVERRIDE; } - if (!buff.canApplyBuff(self, "me_stasis_self_1")) - { + if (!buff.canApplyBuff(self, "me_stasis_self_1")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_stasis_self_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_stasis_self_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("me_stasis_self_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_stasis_self"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod * 60)); return SCRIPT_CONTINUE; } - public int me_serotonin_purge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_serotonin_purge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_serotonin_purge_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_serotonin_purge_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_induce_insanity_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_induce_insanity_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_induce_insanity_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_induce_insanity_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_bacta_resistance_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_bacta_resistance_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_bacta_resistance_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_bacta_resistance_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_electrolyte_drain_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_electrolyte_drain_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_electrolyte_drain_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_electrolyte_drain_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_traumatize_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_traumatize_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (buff.hasBuff(target, "action_drain_immunity")) - { + if (buff.hasBuff(target, "action_drain_immunity")) { sendSystemMessage(self, new string_id("spam", "immune_to_that")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_traumatize_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_traumatize_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_traumatize_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_traumatize_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (buff.hasBuff(target, "action_drain_immunity")) - { + if (buff.hasBuff(target, "action_drain_immunity")) { sendSystemMessage(self, new string_id("spam", "immune_to_that")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_traumatize_2", self, target, params, "", "")) - { + if (!combatStandardAction("me_traumatize_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_traumatize_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_traumatize_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (buff.hasBuff(target, "action_drain_immunity")) - { + if (buff.hasBuff(target, "action_drain_immunity")) { sendSystemMessage(self, new string_id("spam", "immune_to_that")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_traumatize_3", self, target, params, "", "")) - { + if (!combatStandardAction("me_traumatize_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_traumatize_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_traumatize_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (buff.hasBuff(target, "action_drain_immunity")) - { + if (buff.hasBuff(target, "action_drain_immunity")) { sendSystemMessage(self, new string_id("spam", "immune_to_that")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_traumatize_4", self, target, params, "", "")) - { + if (!combatStandardAction("me_traumatize_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_traumatize_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_traumatize_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (buff.hasBuff(target, "action_drain_immunity")) - { + if (buff.hasBuff(target, "action_drain_immunity")) { sendSystemMessage(self, new string_id("spam", "immune_to_that")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_traumatize_5", self, target, params, "", "")) - { + if (!combatStandardAction("me_traumatize_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_thyroid_rupture_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (vehicle.isVehicle(target)) - { + + public int me_thyroid_rupture_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (vehicle.isVehicle(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("me_thyroid_rupture_1", self, target, params, "", "")) - { + if (!combatStandardAction("me_thyroid_rupture_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDoom(self, target); - if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) - { + if (successfulFastAttack(self, "me_debuff", "fast_attack_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int me_enhance_strength_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_strength_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_strength_1")) - { + if (!buff.canApplyBuff(target, "me_buff_strength_1")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_strength_1", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_strength_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_strength_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_strength_2")) - { + if (!buff.canApplyBuff(target, "me_buff_strength_2")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_strength_2", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_strength_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_strength_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_strength_3")) - { + if (!buff.canApplyBuff(target, "me_buff_strength_3")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_strength_3", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_burst_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_burst_1", self, target, params, "", "")) - { + + public int me_burst_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_burst_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_burst_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_burst_2", self, target, params, "", "")) - { + + public int me_burst_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_burst_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_burst_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_burst_3", self, target, params, "", "")) - { + + public int me_burst_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_burst_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_burst_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_burst_4", self, target, params, "", "")) - { + + public int me_burst_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_burst_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_burst_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_burst_5", self, target, params, "", "")) - { + + public int me_burst_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_burst_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_agility_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_agility_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_agility_1")) - { + if (!buff.canApplyBuff(target, "me_buff_agility_1")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_agility_1", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_agility_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_agility_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_agility_2")) - { + if (!buff.canApplyBuff(target, "me_buff_agility_2")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_agility_2", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_agility_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_agility_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_agility_3")) - { + if (!buff.canApplyBuff(target, "me_buff_agility_3")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_agility_3", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_cranial_smash_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_cranial_smash_1", self, target, params, "", "")) - { + + public int me_cranial_smash_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_cranial_smash_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_cranial_smash_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_cranial_smash_2", self, target, params, "", "")) - { + + public int me_cranial_smash_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_cranial_smash_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_cranial_smash_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_cranial_smash_3", self, target, params, "", "")) - { + + public int me_cranial_smash_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_cranial_smash_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_cranial_smash_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_cranial_smash_4", self, target, params, "", "")) - { + + public int me_cranial_smash_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_cranial_smash_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_cranial_smash_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_cranial_smash_5", self, target, params, "", "")) - { + + public int me_cranial_smash_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_cranial_smash_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_evasion_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("me_evasion_1", self, target, params, "", "")) - { + + public int me_evasion_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("me_evasion_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doMedicEvasion(self); float baseCooldownTime = getBaseCooldownTime("me_evasion_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_me_evasion"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int me_enhance_precision_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_precision_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_precision_1")) - { + if (!buff.canApplyBuff(target, "me_buff_precision_1")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_precision_1", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_precision_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_precision_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_precision_2")) - { + if (!buff.canApplyBuff(target, "me_buff_precision_2")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_precision_2", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_precision_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_precision_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_precision_3")) - { + if (!buff.canApplyBuff(target, "me_buff_precision_3")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_precision_3", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_block_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_block_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_melee_gb_1")) - { + if (!buff.canApplyBuff(target, "me_buff_melee_gb_1")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_block_1", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_enhance_dodge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_enhance_dodge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_ranged_gb_1")) - { + if (!buff.canApplyBuff(target, "me_buff_ranged_gb_1")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!isIdValid(target) || !pvpCanHelp(self, target)) - { + if (!isIdValid(target) || !pvpCanHelp(self, target)) { target = self; } boolean performed_buff = performMedicGroupBuff(self, target, "me_enhance_dodge_1", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_buff_health_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_buff_health_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_health_0")) - { + if (!buff.canApplyBuff(target, "me_buff_health_0")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_buff_health_2", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int me_buff_health_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) - { + + public int me_buff_health_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !pvpCanHelp(self, target) || vehicle.isVehicle(target) || isDead(target)) { target = self; } - if (!buff.canApplyBuff(target, "me_buff_health_2")) - { + if (!buff.canApplyBuff(target, "me_buff_health_2")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } boolean performed_buff = performMedicGroupBuff(self, target, "me_buff_health_3", params); - if (!performed_buff) - { + if (!performed_buff) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_dueterium_rounds_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_dueterium_rounds_proc", self, target, params, "", "")) - { + + public int expertise_dueterium_rounds_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_dueterium_rounds_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_poison_knuckle_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_poison_knuckle_proc", self, target, params, "", "")) - { + + public int expertise_poison_knuckle_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_poison_knuckle_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public void doDoom(obj_id attacker, obj_id defender) throws InterruptedException - { + + public void doDoom(obj_id attacker, obj_id defender) throws InterruptedException { int bonusChance = getEnhancedSkillStatisticModifierUncapped(attacker, "me_doom_chance"); - if (bonusChance > 0) - { + if (bonusChance > 0) { int roll = rand(1, 99); int total = roll + bonusChance; - if (roll + bonusChance > 99 && !utils.hasScriptVar(defender, "me_doom.doom_owner")) - { + if (roll + bonusChance > 99 && !utils.hasScriptVar(defender, "me_doom.doom_owner")) { utils.setScriptVar(defender, "me_doom.doom_owner", attacker); utils.setScriptVar(defender, "me_doom.doom_stage", 1); buff.applyBuff(defender, attacker, "me_doom", 18.0f, 1.0f); - if (hasCommand(attacker, "me_bacta_resistance_1")) - { + if (hasCommand(attacker, "me_bacta_resistance_1")) { buff.applyBuff(defender, attacker, "me_bacta_resistance_1"); } - if (hasCommand(attacker, "me_electrolyte_drain_1")) - { + if (hasCommand(attacker, "me_electrolyte_drain_1")) { buff.applyBuff(defender, attacker, "me_electrolyte_drain_1"); } - if (hasCommand(attacker, "me_induce_insanity_1")) - { + if (hasCommand(attacker, "me_induce_insanity_1")) { buff.applyBuff(defender, attacker, "me_rheumatic_calamity_1"); } - if (hasCommand(attacker, "me_thyroid_rupture_1")) - { + if (hasCommand(attacker, "me_thyroid_rupture_1")) { buff.applyBuff(defender, attacker, "me_thyroid_rupture_1"); } } } return; } - public int of_buff_def_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_1")) - { + + public int of_buff_def_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_1")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_1"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_buff_def_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_2")) - { + + public int of_buff_def_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_2")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_2", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_2"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_buff_def_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_3")) - { + + public int of_buff_def_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_3")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_3", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_3"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_deb_def_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_deb_def_1", self, target, params, "", "")) - { + + public int of_deb_def_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_deb_def_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_deb_def_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_paint"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_deb_def_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_deb_def_2", self, target, params, "", "")) - { + + public int of_deb_def_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_deb_def_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_deb_def_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_paint"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_deb_def_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_deb_def_3", self, target, params, "", "")) - { + + public int of_deb_def_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_deb_def_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_deb_def_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_paint"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_ae_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_ae_dm_cc_1", self, target, params, "", "")) - { + + public int of_ae_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_ae_dm_cc_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int of_ae_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_ae_dm_cc_2", self, target, params, "", "")) - { + + public int of_ae_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_ae_dm_cc_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int of_ae_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_ae_dm_cc_3", self, target, params, "", "")) - { + + public int of_ae_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_ae_dm_cc_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_del_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (getTopMostContainer(self) != self) - { + + public int of_del_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (getTopMostContainer(self) != self) { sendSystemMessage(self, new string_id("spam", "cant_do_indoors")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_del_ae_dm_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_del_ae_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int of_del_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (getTopMostContainer(self) != self) - { + + public int of_del_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (getTopMostContainer(self) != self) { sendSystemMessage(self, new string_id("spam", "cant_do_indoors")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_del_ae_dm_2", self, target, params, "", "")) - { + if (!combatStandardAction("of_del_ae_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } playClientEffectLoc(self, "clienteffect/combat_pt_aerialstrike.cef", getLocation(target), 0); - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int of_del_ae_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (getTopMostContainer(self) != self) - { + + public int of_del_ae_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (getTopMostContainer(self) != self) { sendSystemMessage(self, new string_id("spam", "cant_do_indoors")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_del_ae_dm_3", self, target, params, "", "")) - { + if (!combatStandardAction("of_del_ae_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } playClientEffectLoc(self, "clienteffect/combat_pt_orbitalstrike.cef", getLocation(target), 0); - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_del_ae_dm_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_del_ae_dm_dot_1", self, target, params, "", "")) - { + + public int of_del_ae_dm_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_del_ae_dm_dot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int of_del_ae_dm_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_del_ae_dm_dot_2", self, target, params, "", "")) - { + + public int of_del_ae_dm_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_del_ae_dm_dot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int of_del_ae_dm_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_del_ae_dm_dot_3", self, target, params, "", "")) - { + + public int of_del_ae_dm_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_del_ae_dm_dot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_del_ae_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_del_ae_dot_1", self, target, params, "", "")) - { + + public int of_del_ae_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_del_ae_dot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } return SCRIPT_CONTINUE; } - public int of_pistol_dm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_pistol_dm", self, target, params, "", "")) - { + + public int of_pistol_dm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_pistol_dm", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } int level = getLevel(self); - if (level >= 74) - { + if (level >= 74) { doInspiredAction(self); } return SCRIPT_CONTINUE; } - public int of_pistol_bleed(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_pistol_bleed", self, target, params, "", "")) - { + + public int of_pistol_bleed(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_pistol_bleed", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } int level = getLevel(self); - if (level >= 74) - { + if (level >= 74) { doInspiredAction(self); } return SCRIPT_CONTINUE; } - public int of_rally_point_off(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int of_rally_point_off(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location eggLoc = combat.getCommandGroundTargetLocation(params); location myLoc = getLocation(self); float distance = getDistance(myLoc, eggLoc); obj_id objEgg = createObject("object/tangible/space/content_infrastructure/generic_egg_small.iff", eggLoc); - if (!isIdValid(objEgg)) - { + if (!isIdValid(objEgg)) { return SCRIPT_OVERRIDE; } utils.setScriptVar(objEgg, "objOwner", self); utils.setScriptVar(self, "objEgg", objEgg); utils.setScriptVar(objEgg, "triggerBuff", "of_rally_point_off"); int duration = combat.EGG_AURA_DURATION; - duration += (int)getEnhancedSkillStatisticModifierUncapped(self, "rally_point_duration"); + duration += (int) getEnhancedSkillStatisticModifierUncapped(self, "rally_point_duration"); utils.setScriptVar(objEgg, "triggerDuration", duration); utils.setScriptVar(objEgg, "triggerPrt", "appearance/pt_rally_point_red.prt"); attachScript(objEgg, "systems.combat.combat_trigger_area"); @@ -4419,48 +3769,42 @@ public class combat_actions extends script.systems.combat.combat_base float baseCooldownTime = getBaseCooldownTime("of_rally_point_off"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } - if (group.isGrouped(self)) - { + if (group.isGrouped(self)) { obj_id groupId = getGroupObject(self); obj_id[] members = getGroupMemberIds(groupId); prose_package pp = new prose_package(); prose.setStringId(pp, new string_id("squad_leader", "of_set_rally_point")); prose.setTT(pp, self); - if (members != null && members.length > 0) - { + if (members != null && members.length > 0) { for (obj_id member : members) { combat.sendCombatSpamMessageProse(member, pp); } } squad_leader.sendSquadLeaderCommand(self, "Rallypoint has been set!"); - } - else - { + } else { combat.sendCombatSpamMessage(self, new string_id("squad_leader", "self_set_rally_point")); } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_rally_point_def(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int of_rally_point_def(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location eggLoc = combat.getCommandGroundTargetLocation(params); location myLoc = getLocation(self); float distance = getDistance(myLoc, eggLoc); obj_id objEgg = createObject("object/tangible/space/content_infrastructure/generic_egg_small.iff", eggLoc); - if (!isIdValid(objEgg)) - { + if (!isIdValid(objEgg)) { return SCRIPT_OVERRIDE; } utils.setScriptVar(objEgg, "objOwner", self); utils.setScriptVar(self, "objEgg", objEgg); utils.setScriptVar(objEgg, "triggerBuff", "of_rally_point_def"); int duration = combat.EGG_AURA_DURATION; - duration += (int)getEnhancedSkillStatisticModifierUncapped(self, "rally_point_duration"); + duration += (int) getEnhancedSkillStatisticModifierUncapped(self, "rally_point_duration"); utils.setScriptVar(objEgg, "triggerDuration", duration); utils.setScriptVar(objEgg, "triggerPrt", "appearance/pt_rally_point_blue.prt"); attachScript(objEgg, "systems.combat.combat_trigger_area"); @@ -4472,147 +3816,126 @@ public class combat_actions extends script.systems.combat.combat_base float baseCooldownTime = getBaseCooldownTime("of_rally_point_def"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } - if (group.isGrouped(self)) - { + if (group.isGrouped(self)) { obj_id groupId = getGroupObject(self); obj_id[] members = getGroupMemberIds(groupId); prose_package pp = new prose_package(); prose.setStringId(pp, new string_id("squad_leader", "of_set_rally_point")); prose.setTT(pp, self); - if (members != null && members.length > 0) - { + if (members != null && members.length > 0) { for (obj_id member : members) { combat.sendCombatSpamMessageProse(member, pp); } } squad_leader.sendSquadLeaderCommand(self, "Rallypoint has been set!"); - } - else - { + } else { combat.sendCombatSpamMessage(self, new string_id("squad_leader", "self_set_rally_point")); } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_1", self, target, params, "", "")) - { + + public int of_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_2", self, target, params, "", "")) - { + + public int of_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_3", self, target, params, "", "")) - { + + public int of_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_4", self, target, params, "", "")) - { + + public int of_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_5", self, target, params, "", "")) - { + + public int of_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_6", self, target, params, "", "")) - { + + public int of_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_7", self, target, params, "", "")) - { + + public int of_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_8", self, target, params, "", "")) - { + + public int of_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_8"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); @@ -4620,1020 +3943,837 @@ public class combat_actions extends script.systems.combat.combat_base doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int of_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_sh_0", self, target, params, "", "")) - { + if (!combatStandardAction("of_sh_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_heal", "quick_heal_fly")) - { + if (successfulFastAttack(self, "of_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("of_sh_0"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_heal"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int of_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_sh_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_sh_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_heal", "quick_heal_fly")) - { + if (successfulFastAttack(self, "of_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("of_sh_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_heal"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int of_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_sh_2", self, target, params, "", "")) - { + if (!combatStandardAction("of_sh_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_heal", "quick_heal_fly")) - { + if (successfulFastAttack(self, "of_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("of_sh_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_heal"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int of_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_sh_3", self, target, params, "", "")) - { + if (!combatStandardAction("of_sh_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doInspiredAction(self); - if (successfulFastAttack(self, "of_heal", "quick_heal_fly")) - { + if (successfulFastAttack(self, "of_heal", "quick_heal_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("of_sh_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_heal"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_drop_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_drop_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_drop_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_drop_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 0)) - { + } else { + if (!callSupplyDrop(self, 0)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_drop_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_buff_def_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_4")) - { + + public int of_buff_def_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_4")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_4", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_4"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_buff_def_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_5")) - { + + public int of_buff_def_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_5")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_5", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_5"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_buff_def_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_6")) - { + + public int of_buff_def_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_6")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_6", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_6"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_buff_def_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_7")) - { + + public int of_buff_def_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_7")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_7", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_7"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_buff_def_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_8")) - { + + public int of_buff_def_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_8")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_8", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_8"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_buff_def_9(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_buff_def_9")) - { + + public int of_buff_def_9(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_buff_def_9")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_buff_def_9", self, target, params, "", "")) - { + if (!combatStandardAction("of_buff_def_9", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_buff_def_9"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_focus_fire_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_focus_fire_1")) - { + + public int of_focus_fire_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_focus_fire_1")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_focus_fire_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_focus_fire_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_focus_fire_1"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_focus_fire_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_focus_fire_2")) - { + + public int of_focus_fire_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_focus_fire_2")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_focus_fire_2", self, target, params, "", "")) - { + if (!combatStandardAction("of_focus_fire_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_focus_fire_2"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_focus_fire_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_focus_fire_3")) - { + + public int of_focus_fire_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_focus_fire_3")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_focus_fire_3", self, target, params, "", "")) - { + if (!combatStandardAction("of_focus_fire_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_focus_fire_3"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_focus_fire_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_focus_fire_4")) - { + + public int of_focus_fire_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_focus_fire_4")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_focus_fire_4", self, target, params, "", "")) - { + if (!combatStandardAction("of_focus_fire_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_focus_fire_4"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_focus_fire_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_focus_fire_5")) - { + + public int of_focus_fire_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_focus_fire_5")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_focus_fire_5", self, target, params, "", "")) - { + if (!combatStandardAction("of_focus_fire_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_focus_fire_5"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_focus_fire_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.canApplyBuff(self, "of_focus_fire_6")) - { + + public int of_focus_fire_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.canApplyBuff(self, "of_focus_fire_6")) { sendSystemMessage(self, new string_id("spam", "buff_wont_stack")); sendCombatSpamMessage(self, new string_id("spam", "buff_wont_stack"), COMBAT_RESULT_GENERIC); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_focus_fire_6", self, target, params, "", "")) - { + if (!combatStandardAction("of_focus_fire_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_focus_fire_6"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_inspiration_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_inspiration_1", self, target, params, "", "")) - { + + public int of_inspiration_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_inspiration_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_inspiration_1"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_inspiration_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_inspiration_2", self, target, params, "", "")) - { + + public int of_inspiration_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_inspiration_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_inspiration_2"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_inspiration_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_inspiration_3", self, target, params, "", "")) - { + + public int of_inspiration_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_inspiration_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_inspiration_3"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_inspiration_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_inspiration_4", self, target, params, "", "")) - { + + public int of_inspiration_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_inspiration_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_inspiration_4"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_inspiration_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_inspiration_5", self, target, params, "", "")) - { + + public int of_inspiration_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_inspiration_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_inspiration_5"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_inspiration_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_inspiration_6", self, target, params, "", "")) - { + + public int of_inspiration_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_inspiration_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_inspiration_6"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); return SCRIPT_CONTINUE; } - public int of_scatter_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_scatter_1", self, target, params, "", "")) - { + + public int of_scatter_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_scatter_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_scatter_1"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_charge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_charge_1", self, target, params, "", "")) - { + + public int of_charge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_charge_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_charge_1"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_medical_sup_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_medical_sup_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_medical_sup_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_medical_sup_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 1)) - { + } else { + if (!callSupplyDrop(self, 1)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_medical_sup_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_medical_sup_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_medical_sup_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_medical_sup_2", self, target, params, "", "")) - { + if (!combatStandardAction("of_medical_sup_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 2)) - { + } else { + if (!callSupplyDrop(self, 2)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_medical_sup_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_medical_sup_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_medical_sup_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_medical_sup_3", self, target, params, "", "")) - { + if (!combatStandardAction("of_medical_sup_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 3)) - { + } else { + if (!callSupplyDrop(self, 3)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_medical_sup_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_medical_sup_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_medical_sup_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_medical_sup_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_medical_sup_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 4)) - { + } else { + if (!callSupplyDrop(self, 4)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_medical_sup_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_medical_sup_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_medical_sup_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_medical_sup_5", self, target, params, "", "")) - { + if (!combatStandardAction("of_medical_sup_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 5)) - { + } else { + if (!callSupplyDrop(self, 5)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_medical_sup_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_medical_sup_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_medical_sup_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_medical_sup_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_medical_sup_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 6)) - { + } else { + if (!callSupplyDrop(self, 6)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_medical_sup_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_tactical_sup_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_tactical_sup_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_tactical_sup_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_tactical_sup_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 7)) - { + } else { + if (!callSupplyDrop(self, 7)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_tactical_sup_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_tactical_sup_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_tactical_sup_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_tactical_sup_2", self, target, params, "", "")) - { + if (!combatStandardAction("of_tactical_sup_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 8)) - { + } else { + if (!callSupplyDrop(self, 8)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_tactical_sup_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_tactical_sup_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_tactical_sup_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_tactical_sup_3", self, target, params, "", "")) - { + if (!combatStandardAction("of_tactical_sup_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 9)) - { + } else { + if (!callSupplyDrop(self, 9)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_tactical_sup_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_tactical_sup_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_tactical_sup_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_tactical_sup_4", self, target, params, "", "")) - { + if (!combatStandardAction("of_tactical_sup_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 10)) - { + } else { + if (!callSupplyDrop(self, 10)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_tactical_sup_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_tactical_sup_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_tactical_sup_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_tactical_sup_5", self, target, params, "", "")) - { + if (!combatStandardAction("of_tactical_sup_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 11)) - { + } else { + if (!callSupplyDrop(self, 11)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_tactical_sup_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_tactical_sup_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!canCallSupplyDrop(self)) - { + + public int of_tactical_sup_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!canCallSupplyDrop(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_tactical_sup_6", self, target, params, "", "")) - { + if (!combatStandardAction("of_tactical_sup_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callSupplyDrop(self, 12)) - { + } else { + if (!callSupplyDrop(self, 12)) { return SCRIPT_OVERRIDE; } } float baseCooldownTime = getBaseCooldownTime("of_tactical_sup_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_reinforcements_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) - { + + public int of_reinforcements_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) { sendSystemMessage(self, pet_lib.SID_SYS_CALL_MAX_DATAPAD); return SCRIPT_OVERRIDE; } - if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) - { + if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) { return SCRIPT_OVERRIDE; } boolean droidPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_DROID); boolean npcPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC); - if (droidPets || npcPets) - { + if (droidPets || npcPets) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_reinforcements_1", self, target, params, "", "")) - { + if (!combatStandardAction("of_reinforcements_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else if (!callSupplyDrop(self, 13)) - { + } else if (!callSupplyDrop(self, 13)) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_reinforcements_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_reinforcements_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) - { + + public int of_reinforcements_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) { sendSystemMessage(self, pet_lib.SID_SYS_CALL_MAX_DATAPAD); return SCRIPT_OVERRIDE; } - if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) - { + if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) { return SCRIPT_OVERRIDE; } boolean droidPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_DROID); boolean npcPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC); - if (droidPets || npcPets) - { + if (droidPets || npcPets) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_reinforcements_2", self, target, params, "", "")) - { + if (!combatStandardAction("of_reinforcements_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else if (!callSupplyDrop(self, 14)) - { + } else if (!callSupplyDrop(self, 14)) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_reinforcements_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_reinforcements_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) - { + + public int of_reinforcements_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) { sendSystemMessage(self, pet_lib.SID_SYS_CALL_MAX_DATAPAD); return SCRIPT_OVERRIDE; } - if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) - { + if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) { return SCRIPT_OVERRIDE; } boolean droidPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_DROID); boolean npcPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC); - if (droidPets || npcPets) - { + if (droidPets || npcPets) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_reinforcements_3", self, target, params, "", "")) - { + if (!combatStandardAction("of_reinforcements_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else if (!callSupplyDrop(self, 15)) - { + } else if (!callSupplyDrop(self, 15)) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_reinforcements_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_reinforcements_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) - { + + public int of_reinforcements_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) { sendSystemMessage(self, pet_lib.SID_SYS_CALL_MAX_DATAPAD); return SCRIPT_OVERRIDE; } - if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) - { + if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) { return SCRIPT_OVERRIDE; } boolean droidPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_DROID); boolean npcPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC); - if (droidPets || npcPets) - { + if (droidPets || npcPets) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_reinforcements_4", self, target, params, "", "")) - { + if (!combatStandardAction("of_reinforcements_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else if (!callSupplyDrop(self, 16)) - { + } else if (!callSupplyDrop(self, 16)) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_reinforcements_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_reinforcements_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) - { + + public int of_reinforcements_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (pet_lib.hasMaxStoredPetsOfType(self, pet_lib.PET_TYPE_NPC)) { sendSystemMessage(self, pet_lib.SID_SYS_CALL_MAX_DATAPAD); return SCRIPT_OVERRIDE; } - if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) - { + if (!canCallSupplyDrop(self) || pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC)) { return SCRIPT_OVERRIDE; } boolean droidPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_DROID); boolean npcPets = pet_lib.hasMaxPets(self, pet_lib.PET_TYPE_NPC); - if (droidPets || npcPets) - { + if (droidPets || npcPets) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_reinforcements_5", self, target, params, "", "")) - { + if (!combatStandardAction("of_reinforcements_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else if (!callSupplyDrop(self, 17)) - { + } else if (!callSupplyDrop(self, 17)) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_reinforcements_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sup") * 60; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int of_firepower_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_firepower_1", self, target, params, "", "")) - { + + public int of_firepower_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_firepower_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_firepower_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_firepower") * 60; @@ -5641,75 +4781,65 @@ public class combat_actions extends script.systems.combat.combat_base doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_deb_def_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_deb_def_4", self, target, params, "", "")) - { + + public int of_deb_def_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_deb_def_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_deb_def_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_paint"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_deb_def_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_deb_def_5", self, target, params, "", "")) - { + + public int of_deb_def_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_deb_def_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_deb_def_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_paint"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_deb_def_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_deb_def_6", self, target, params, "", "")) - { + + public int of_deb_def_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_deb_def_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_deb_def_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_paint"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_deb_def_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_deb_def_7", self, target, params, "", "")) - { + + public int of_deb_def_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_deb_def_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_deb_def_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_paint"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int of_deb_def_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_deb_def_8", self, target, params, "", "")) - { + + public int of_deb_def_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_deb_def_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_deb_def_8"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_paint"); @@ -5717,130 +4847,114 @@ public class combat_actions extends script.systems.combat.combat_base doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_decapitate_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_decapitate_1", self, target, params, "", "")) - { + + public int of_decapitate_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_decapitate_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_decapitate_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_decapitate_2", self, target, params, "", "")) - { + + public int of_decapitate_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_decapitate_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_decapitate_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_decapitate_3", self, target, params, "", "")) - { + + public int of_decapitate_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_decapitate_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_decapitate_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_decapitate_4", self, target, params, "", "")) - { + + public int of_decapitate_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_decapitate_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_decapitate_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_decapitate_5", self, target, params, "", "")) - { + + public int of_decapitate_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_decapitate_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_decapitate_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_decapitate_6", self, target, params, "", "")) - { + + public int of_decapitate_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_decapitate_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_vortex_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_vortex_1", self, target, params, "", "")) - { + + public int of_vortex_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_vortex_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_vortex_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_vortex_2", self, target, params, "", "")) - { + + public int of_vortex_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_vortex_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_vortex_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_vortex_3", self, target, params, "", "")) - { + + public int of_vortex_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_vortex_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_vortex_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_vortex_4", self, target, params, "", "")) - { + + public int of_vortex_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_vortex_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_vortex_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_vortex_5", self, target, params, "", "")) - { + + public int of_vortex_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_vortex_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_vortex_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_vortex_6", self, target, params, "", "")) - { + + public int of_vortex_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_vortex_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_drillmaster_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_drillmaster_1", self, target, params, "", "")) - { + + public int of_drillmaster_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_drillmaster_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_drillmaster_1"); float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "cooldown_percent_of_group_buff"); baseCooldownTime = baseCooldownTime - (baseCooldownTime * (cooldownTimeMod / 100)); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0.0f; } setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime); doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_stimulator_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_stimulator_1", self, target, params, "", "")) - { + + public int of_stimulator_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_stimulator_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_stimulator_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_purge"); @@ -5848,15 +4962,13 @@ public class combat_actions extends script.systems.combat.combat_base doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_purge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_purge_1", self, target, params, "", "")) - { + + public int of_purge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_purge_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_stimulator_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_purge"); @@ -5864,15 +4976,13 @@ public class combat_actions extends script.systems.combat.combat_base doInspiredAction(self); return SCRIPT_CONTINUE; } - public void doInspiredAction(obj_id officer) throws InterruptedException - { + + public void doInspiredAction(obj_id officer) throws InterruptedException { int bonusChance = getEnhancedSkillStatisticModifierUncapped(officer, "of_inspired_action_chance"); - if (bonusChance > 0) - { + if (bonusChance > 0) { int roll = rand(1, 99); int total = roll + bonusChance; - if (total > 99) - { + if (total > 99) { buff.applyBuff(officer, officer, "of_inspiration_6"); showFlyText(officer, new string_id("set_bonus", "inspired_action_fly"), 2, colors.LEMONCHIFFON); prose_package pp = new prose_package(); @@ -5883,1343 +4993,1115 @@ public class combat_actions extends script.systems.combat.combat_base } return; } - public int of_last_words_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "of_last_words_recourse")) - { + + public int of_last_words_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "of_last_words_recourse")) { buff.applyBuff(self, self, "of_last_words_recourse"); } return SCRIPT_CONTINUE; } - public int sm_disarm_trap_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canDisarmTrap(self, target)) - { + + public int sm_disarm_trap_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canDisarmTrap(self, target)) { return SCRIPT_OVERRIDE; } stealth.disarmTrap(self, target); return SCRIPT_CONTINUE; } - public int sm_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_1", self, target, params, "", "")) - { + + public int sm_ae_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_2", self, target, params, "", "")) - { + + public int sm_ae_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_3", self, target, params, "", "")) - { + + public int sm_ae_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_4", self, target, params, "", "")) - { + + public int sm_ae_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_5", self, target, params, "", "")) - { + + public int sm_ae_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_6", self, target, params, "", "")) - { + + public int sm_ae_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_melee_1", self, target, params, "", "")) - { + + public int sm_ae_dm_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_melee_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_melee_2", self, target, params, "", "")) - { + + public int sm_ae_dm_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_melee_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_melee_3", self, target, params, "", "")) - { + + public int sm_ae_dm_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_melee_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_melee_4", self, target, params, "", "")) - { + + public int sm_ae_dm_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_melee_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_melee_5", self, target, params, "", "")) - { + + public int sm_ae_dm_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_melee_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_melee_6", self, target, params, "", "")) - { + + public int sm_ae_dm_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_melee_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_cover_fire(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_cover_fire", self, target, params, "", "")) - { + + public int sm_ae_cover_fire(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_cover_fire", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_1", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_2", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_3", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_4", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_5", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_pin_down(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_pin_down", self, target, params, "", "")) - { + + public int sm_ae_pin_down(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_pin_down", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_melee_1", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_melee_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_melee_2", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_melee_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_melee_3", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_melee_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_melee_4", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_melee_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_ae_dm_cc_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_ae_dm_cc_melee_5", self, target, params, "", "")) - { + + public int sm_ae_dm_cc_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_ae_dm_cc_melee_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_del_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_del_dm_cc_1", self, target, params, "", "")) - { + + public int sm_del_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_del_dm_cc_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_del_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_del_dm_cc_2", self, target, params, "", "")) - { + + public int sm_del_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_del_dm_cc_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_del_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_del_dm_cc_3", self, target, params, "", "")) - { + + public int sm_del_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_del_dm_cc_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_del_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_del_dm_cc_4", self, target, params, "", "")) - { + + public int sm_del_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_del_dm_cc_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_del_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_del_dm_cc_5", self, target, params, "", "")) - { + + public int sm_del_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_del_dm_cc_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_del_dm_cc_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_del_dm_cc_6", self, target, params, "", "")) - { + + public int sm_del_dm_cc_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_del_dm_cc_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_fast_draw(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_fast_draw", self, target, params, "", "")) - { + + public int sm_fast_draw(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_fast_draw", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_1", self, target, params, "", "")) - { + + public int sm_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_2", self, target, params, "", "")) - { + + public int sm_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_3", self, target, params, "", "")) - { + + public int sm_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_4", self, target, params, "", "")) - { + + public int sm_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_5", self, target, params, "", "")) - { + + public int sm_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_6", self, target, params, "", "")) - { + + public int sm_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_7", self, target, params, "", "")) - { + + public int sm_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_precision_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_precision_strike", self, target, params, "", "")) - { + + public int sm_precision_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_precision_strike", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_melee_1", self, target, params, "", "")) - { + + public int sm_dm_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_melee_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_melee_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_melee_2", self, target, params, "", "")) - { + + public int sm_dm_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_melee_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_melee_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_melee_3", self, target, params, "", "")) - { + + public int sm_dm_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_melee_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_melee_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_melee_4", self, target, params, "", "")) - { + + public int sm_dm_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_melee_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_melee_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_melee_5", self, target, params, "", "")) - { + + public int sm_dm_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_melee_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_melee_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_melee_6", self, target, params, "", "")) - { + + public int sm_dm_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_melee_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_melee_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_melee_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_melee_7", self, target, params, "", "")) - { + + public int sm_dm_melee_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_melee_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sm_dm")) - { + if (successfulFastAttack(self, "sm_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sm_dm_melee_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_concussion_shot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_concussion_shot", self, target, params, "", "")) - { + + public int sm_concussion_shot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_concussion_shot", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_1", self, target, params, "", "")) - { + + public int sm_dm_cc_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_2", self, target, params, "", "")) - { + + public int sm_dm_cc_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_3", self, target, params, "", "")) - { + + public int sm_dm_cc_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_4", self, target, params, "", "")) - { + + public int sm_dm_cc_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_5", self, target, params, "", "")) - { + + public int sm_dm_cc_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_6", self, target, params, "", "")) - { + + public int sm_dm_cc_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dizzy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dizzy", self, target, params, "", "")) - { + + public int sm_dizzy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dizzy", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_cc_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_melee_1", self, target, params, "", "")) - { + + public int sm_dm_cc_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_melee_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_melee_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_melee_2", self, target, params, "", "")) - { + + public int sm_dm_cc_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_melee_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_melee_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_melee_3", self, target, params, "", "")) - { + + public int sm_dm_cc_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_melee_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_melee_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_melee_4", self, target, params, "", "")) - { + + public int sm_dm_cc_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_melee_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_melee_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_melee_5", self, target, params, "", "")) - { + + public int sm_dm_cc_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_melee_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_melee_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_cc_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_cc_melee_6", self, target, params, "", "")) - { + + public int sm_dm_cc_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_cc_melee_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doDireAbility(self, target, 0); float baseCooldownTime = getBaseCooldownTime("sm_dm_cc_melee_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_dm_cc") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_dm_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_dot_1", self, target, params, "", "")) - { + + public int sm_dm_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_dot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_dot_2", self, target, params, "", "")) - { + + public int sm_dm_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_dot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_dot_3", self, target, params, "", "")) - { + + public int sm_dm_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_dot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_dot_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_dot_4", self, target, params, "", "")) - { + + public int sm_dm_dot_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_dot_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_dot_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_dot_melee_1", self, target, params, "", "")) - { + + public int sm_dm_dot_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_dot_melee_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_dot_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_dot_melee_2", self, target, params, "", "")) - { + + public int sm_dm_dot_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_dot_melee_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_dot_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_dot_melee_3", self, target, params, "", "")) - { + + public int sm_dm_dot_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_dot_melee_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_dm_dot_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_dm_dot_melee_4", self, target, params, "", "")) - { + + public int sm_dm_dot_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_dm_dot_melee_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_bad_odds_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_bad_odds_1", self, target, params, "", "")) - { + + public int sm_bad_odds_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_bad_odds_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_bad_odds_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_bad_odds_2", self, target, params, "", "")) - { + + public int sm_bad_odds_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_bad_odds_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_bad_odds_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_bad_odds_3", self, target, params, "", "")) - { + + public int sm_bad_odds_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_bad_odds_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_bad_odds_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_bad_odds_4", self, target, params, "", "")) - { + + public int sm_bad_odds_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_bad_odds_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_bad_odds_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_bad_odds_5", self, target, params, "", "")) - { + + public int sm_bad_odds_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_bad_odds_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int sm_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_sh_0", self, target, params, "", "")) - { + if (!combatStandardAction("sm_sh_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int sm_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_sh_1", self, target, params, "", "")) - { + if (!combatStandardAction("sm_sh_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int sm_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_sh_2", self, target, params, "", "")) - { + if (!combatStandardAction("sm_sh_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int sm_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_sh_3", self, target, params, "", "")) - { + if (!combatStandardAction("sm_sh_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_summon_smuggler(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_summon_smuggler", self, target, params, "", "")) - { + + public int sm_summon_smuggler(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_summon_smuggler", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callFavor(self, 0)) - { + } else { + if (!callFavor(self, 0)) { return SCRIPT_OVERRIDE; } } return SCRIPT_CONTINUE; } - public int sm_summon_medic(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_summon_medic", self, target, params, "", "")) - { + + public int sm_summon_medic(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_summon_medic", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callFavor(self, 1)) - { + } else { + if (!callFavor(self, 1)) { return SCRIPT_OVERRIDE; } } return SCRIPT_CONTINUE; } - public int sm_sly_lie(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!smuggler.canSlyLie(self)) - { + + public int sm_sly_lie(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!smuggler.canSlyLie(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_sly_lie", self, target, params, "", "")) - { + if (!combatStandardAction("sm_sly_lie", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (!smuggler.doSlyLie(self)) - { + if (!smuggler.doSlyLie(self)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_fast_talk(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (isIdValid(target) && !smuggler.canFastTalk(self, target)) - { + + public int sm_fast_talk(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (isIdValid(target) && !smuggler.canFastTalk(self, target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_fast_talk", self, target, params, "", "")) - { + if (!combatStandardAction("sm_fast_talk", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (!smuggler.doFastTalk(self, target)) - { + if (!smuggler.doFastTalk(self, target)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_skullduggery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_skullduggery", self, target, params, "", "")) - { + + public int sm_skullduggery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_skullduggery", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_impossible_odds(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_impossible_odds", self, target, params, "", "")) - { + + public int sm_impossible_odds(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_impossible_odds", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_nerf_herder(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_nerf_herder", self, target, params, "", "")) - { + + public int sm_nerf_herder(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_nerf_herder", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_pistol_whip_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_pistol_whip_1", self, target, params, "", "")) - { + + public int sm_pistol_whip_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_pistol_whip_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_pistol_whip_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_pistol_whip_2", self, target, params, "", "")) - { + + public int sm_pistol_whip_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_pistol_whip_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_pistol_whip_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_pistol_whip_3", self, target, params, "", "")) - { + + public int sm_pistol_whip_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_pistol_whip_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_pistol_whip_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_pistol_whip_4", self, target, params, "", "")) - { + + public int sm_pistol_whip_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_pistol_whip_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_shoot_first_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (isBeingHuntedByBountyHunter(self, target)) - { + + public int sm_shoot_first_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (isBeingHuntedByBountyHunter(self, target)) { pvpSetPersonalEnemyFlag(self, target); pvpSetPersonalEnemyFlag(target, self); } - if (!combatStandardAction("sm_shoot_first_1", self, target, params, "", "")) - { + if (!combatStandardAction("sm_shoot_first_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_shoot_first_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (isBeingHuntedByBountyHunter(self, target)) - { + + public int sm_shoot_first_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (isBeingHuntedByBountyHunter(self, target)) { pvpSetPersonalEnemyFlag(self, target); pvpSetPersonalEnemyFlag(target, self); } - if (!combatStandardAction("sm_shoot_first_2", self, target, params, "", "")) - { + if (!combatStandardAction("sm_shoot_first_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_shoot_first_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (isBeingHuntedByBountyHunter(self, target)) - { + + public int sm_shoot_first_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (isBeingHuntedByBountyHunter(self, target)) { pvpSetPersonalEnemyFlag(self, target); pvpSetPersonalEnemyFlag(target, self); } - if (!combatStandardAction("sm_shoot_first_3", self, target, params, "", "")) - { + if (!combatStandardAction("sm_shoot_first_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_shoot_first_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (isBeingHuntedByBountyHunter(self, target)) - { + + public int sm_shoot_first_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (isBeingHuntedByBountyHunter(self, target)) { pvpSetPersonalEnemyFlag(self, target); pvpSetPersonalEnemyFlag(target, self); } - if (!combatStandardAction("sm_shoot_first_4", self, target, params, "", "")) - { + if (!combatStandardAction("sm_shoot_first_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_shoot_first_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (isBeingHuntedByBountyHunter(self, target)) - { + + public int sm_shoot_first_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (isBeingHuntedByBountyHunter(self, target)) { pvpSetPersonalEnemyFlag(self, target); pvpSetPersonalEnemyFlag(target, self); } - if (!combatStandardAction("sm_shoot_first_5", self, target, params, "", "")) - { + if (!combatStandardAction("sm_shoot_first_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_inspect_cargo(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int sm_inspect_cargo(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id player = self; smuggler.inspectCorpseForContraband(player, target); return SCRIPT_CONTINUE; } - public int sm_spot_a_sucker_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_spot_a_sucker_1", self, target, params, "", "")) - { + + public int sm_spot_a_sucker_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_spot_a_sucker_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - int glanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance"); - int criticalMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease"); - int damageDecrease = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance"); - if (damageDecrease >= 40) - { + } else { + int glanceMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance"); + int criticalMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease"); + int damageDecrease = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance"); + if (damageDecrease >= 40) { buff.applyBuff(target, self, "sm_spot_a_sucker_1_7"); - } - else if (damageDecrease >= 20) - { + } else if (damageDecrease >= 20) { buff.applyBuff(target, self, "sm_spot_a_sucker_1_6"); - } - else if (glanceMod >= 50) - { + } else if (glanceMod >= 50) { buff.applyBuff(target, self, "sm_spot_a_sucker_1_5"); - } - else if (glanceMod >= 25) - { + } else if (glanceMod >= 25) { buff.applyBuff(target, self, "sm_spot_a_sucker_1_4"); - } - else if (criticalMod >= 50) - { + } else if (criticalMod >= 50) { buff.applyBuff(target, self, "sm_spot_a_sucker_1_3"); - } - else if (criticalMod >= 25) - { + } else if (criticalMod >= 25) { buff.applyBuff(target, self, "sm_spot_a_sucker_1_2"); - } - else - { + } else { buff.applyBuff(target, self, "sm_spot_a_sucker_1_1"); } } return SCRIPT_CONTINUE; } - public int sm_spot_a_sucker_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_spot_a_sucker_2", self, target, params, "", "")) - { + + public int sm_spot_a_sucker_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_spot_a_sucker_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - int glanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance"); - int criticalMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease"); - int damageDecrease = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance"); - if (damageDecrease >= 40) - { + } else { + int glanceMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance"); + int criticalMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease"); + int damageDecrease = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance"); + if (damageDecrease >= 40) { buff.applyBuff(target, self, "sm_spot_a_sucker_2_7"); - } - else if (damageDecrease >= 20) - { + } else if (damageDecrease >= 20) { buff.applyBuff(target, self, "sm_spot_a_sucker_2_6"); - } - else if (glanceMod >= 50) - { + } else if (glanceMod >= 50) { buff.applyBuff(target, self, "sm_spot_a_sucker_2_5"); - } - else if (glanceMod >= 25) - { + } else if (glanceMod >= 25) { buff.applyBuff(target, self, "sm_spot_a_sucker_2_4"); - } - else if (criticalMod >= 50) - { + } else if (criticalMod >= 50) { buff.applyBuff(target, self, "sm_spot_a_sucker_2_3"); - } - else if (criticalMod >= 25) - { + } else if (criticalMod >= 25) { buff.applyBuff(target, self, "sm_spot_a_sucker_2_2"); - } - else - { + } else { buff.applyBuff(target, self, "sm_spot_a_sucker_2_1"); } } return SCRIPT_CONTINUE; } - public int sm_spot_a_sucker_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_spot_a_sucker_3", self, target, params, "", "")) - { + + public int sm_spot_a_sucker_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_spot_a_sucker_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - int glanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance"); - int criticalMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease"); - int damageDecrease = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance"); - if (damageDecrease >= 40) - { + } else { + int glanceMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance"); + int criticalMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease"); + int damageDecrease = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance"); + if (damageDecrease >= 40) { buff.applyBuff(target, self, "sm_spot_a_sucker_3_7"); - } - else if (damageDecrease >= 20) - { + } else if (damageDecrease >= 20) { buff.applyBuff(target, self, "sm_spot_a_sucker_3_6"); - } - else if (glanceMod >= 50) - { + } else if (glanceMod >= 50) { buff.applyBuff(target, self, "sm_spot_a_sucker_3_5"); - } - else if (glanceMod >= 25) - { + } else if (glanceMod >= 25) { buff.applyBuff(target, self, "sm_spot_a_sucker_3_4"); - } - else if (criticalMod >= 50) - { + } else if (criticalMod >= 50) { buff.applyBuff(target, self, "sm_spot_a_sucker_3_3"); - } - else if (criticalMod >= 25) - { + } else if (criticalMod >= 25) { buff.applyBuff(target, self, "sm_spot_a_sucker_3_2"); - } - else - { + } else { buff.applyBuff(target, self, "sm_spot_a_sucker_3_1"); } } return SCRIPT_CONTINUE; } - public int sm_spot_a_sucker_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_spot_a_sucker_4", self, target, params, "", "")) - { + + public int sm_spot_a_sucker_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_spot_a_sucker_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - int glanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance"); - int criticalMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease"); - int damageDecrease = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance"); - if (damageDecrease >= 40) - { + } else { + int glanceMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance"); + int criticalMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease"); + int damageDecrease = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance"); + if (damageDecrease >= 40) { buff.applyBuff(target, self, "sm_spot_a_sucker_4_7"); - } - else if (damageDecrease >= 20) - { + } else if (damageDecrease >= 20) { buff.applyBuff(target, self, "sm_spot_a_sucker_4_6"); - } - else if (glanceMod >= 50) - { + } else if (glanceMod >= 50) { buff.applyBuff(target, self, "sm_spot_a_sucker_4_5"); - } - else if (glanceMod >= 25) - { + } else if (glanceMod >= 25) { buff.applyBuff(target, self, "sm_spot_a_sucker_4_4"); - } - else if (criticalMod >= 50) - { + } else if (criticalMod >= 50) { buff.applyBuff(target, self, "sm_spot_a_sucker_4_3"); - } - else if (criticalMod >= 25) - { + } else if (criticalMod >= 25) { buff.applyBuff(target, self, "sm_spot_a_sucker_4_2"); - } - else - { + } else { buff.applyBuff(target, self, "sm_spot_a_sucker_4_1"); } } return SCRIPT_CONTINUE; } - public int sm_off_the_cuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_off_the_cuff", self, target, params, "", "")) - { + + public int sm_off_the_cuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_off_the_cuff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - int doubleDeal = (int)getSkillStatisticModifier(self, "expertise_double_deal_chance"); - if (rand(0, 99) < doubleDeal) - { + int doubleDeal = (int) getSkillStatisticModifier(self, "expertise_double_deal_chance"); + if (rand(0, 99) < doubleDeal) { setCommandTimerValue(self, TIMER_COOLDOWN, 0); showFlyTextPrivate(self, self, new string_id("combat_effects", "double_deal"), 1.5f, colors.ORANGERED); } return SCRIPT_CONTINUE; } - public int sm_end_of_the_line(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_end_of_the_line", self, target, params, "", "")) - { + + public int sm_end_of_the_line(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_end_of_the_line", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_sm_card_ranged_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.hasBuff(self, "sm_double_hit")) - { + + public int expertise_sm_card_ranged_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.hasBuff(self, "sm_double_hit")) { return SCRIPT_CONTINUE; } - if (!combatStandardAction("expertise_sm_card_ranged_proc", self, target, params, "", "")) - { + if (!combatStandardAction("expertise_sm_card_ranged_proc", self, target, params, "", "")) { return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int expertise_sm_card_melee_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.hasBuff(self, "sm_double_hit")) - { + + public int expertise_sm_card_melee_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.hasBuff(self, "sm_double_hit")) { return SCRIPT_CONTINUE; } - if (!combatStandardAction("expertise_sm_card_melee_proc", self, target, params, "", "")) - { + if (!combatStandardAction("expertise_sm_card_melee_proc", self, target, params, "", "")) { return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public boolean callJunkDealer(obj_id self) throws InterruptedException - { + + public boolean callJunkDealer(obj_id self) throws InterruptedException { location loc = getLocation(self); - if (!isIdValid(loc.cell)) - { + if (!isIdValid(loc.cell)) { int x = rand(-3, 3); int z = rand(-3, 3); loc.x += x; loc.z += z; } obj_id buddy = create.object("junk_dealer_smuggler", loc, getLevel(self)); - if (!isIdValid(buddy)) - { + if (!isIdValid(buddy)) { return false; } - if (!isIdValid(loc.cell)) - { + if (!isIdValid(loc.cell)) { loc.x += 30; setHomeLocation(buddy, loc); } @@ -7227,89 +6109,68 @@ public class combat_actions extends script.systems.combat.combat_base utils.setScriptVar(self, "junk_dealer_smuggler", buddy); return true; } - public int sm_off_the_books(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (utils.hasScriptVar(self, "junk_dealer_smuggler")) - { + + public int sm_off_the_books(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (utils.hasScriptVar(self, "junk_dealer_smuggler")) { obj_id dealer = utils.getObjIdScriptVar(self, "junk_dealer_smuggler"); - if (isIdValid(dealer) && exists(dealer)) - { + if (isIdValid(dealer) && exists(dealer)) { sendSystemMessage(self, new string_id("spam", "dealer_already_exists")); return SCRIPT_OVERRIDE; - } - else - { + } else { utils.removeScriptVar(self, "junk_dealer_smuggler"); } } - if (!combatStandardAction("sm_off_the_books", self, target, params, "", "")) - { + if (!combatStandardAction("sm_off_the_books", self, target, params, "", "")) { return SCRIPT_OVERRIDE; - } - else - { - if (!callJunkDealer(self)) - { + } else { + if (!callJunkDealer(self)) { return SCRIPT_OVERRIDE; } } return SCRIPT_CONTINUE; } - public int sm_inside_information(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_inside_information", self, target, params, "", "")) - { + + public int sm_inside_information(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_inside_information", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } obj_id infoTarget; - if (isIdValid(target) && isPlayer(target)) - { + if (isIdValid(target) && isPlayer(target)) { infoTarget = target; - if (factions.getFactionStatus(self, target) == factions.STATUS_ENEMY) - { + if (factions.getFactionStatus(self, target) == factions.STATUS_ENEMY) { return SCRIPT_OVERRIDE; } - } - else - { + } else { infoTarget = self; } - if (bounty_hunter.isSpammingBountyCheck(self, false)) - { + if (bounty_hunter.isSpammingBountyCheck(self, false)) { sendSystemMessage(self, new string_id("bounty_hunter", "sm_calling_contact_too_often")); return SCRIPT_OVERRIDE; } - if (infoTarget != self && bounty_hunter.isSpammingBountyCheck(infoTarget, false)) - { + if (infoTarget != self && bounty_hunter.isSpammingBountyCheck(infoTarget, false)) { sendSystemMessage(self, new string_id("bounty_hunter", "sm_calling_contact_too_often_target")); return SCRIPT_OVERRIDE; } - if (isDead(infoTarget) || isIncapacitated(infoTarget)) - { + if (isDead(infoTarget) || isIncapacitated(infoTarget)) { return SCRIPT_OVERRIDE; } int amount = getIntObjVar(infoTarget, "bounty.amount"); - if (amount <= 0) - { + if (amount <= 0) { prose_package pp = new prose_package(); pp.stringId = new string_id("bounty_hunter", "sm_no_bounty_target_player"); prose.setTT(pp, getName(self)); - if (infoTarget != self) - { + if (infoTarget != self) { sendSystemMessageProse(infoTarget, pp); sendSystemMessage(self, new string_id("bounty_hunter", "sm_no_bounty_target")); utils.setScriptVar(infoTarget, "bountyCheckFloodControl", getGameTime() + 600); - } - else - { + } else { sendSystemMessage(self, new string_id("bounty_hunter", "sm_no_bounty_self")); } utils.setScriptVar(self, "bountyCheckFloodControl", getGameTime() + 60); return SCRIPT_CONTINUE; } obj_id[] bounties = getJediBounties(infoTarget); - if (bounties != null && bounties.length > 0) - { + if (bounties != null && bounties.length > 0) { prose_package pp = new prose_package(); pp.stringId = new string_id("bounty_hunter", "sm_bounty_amount_target_with_bounties"); prose.setDI(pp, amount); @@ -7322,17 +6183,14 @@ public class combat_actions extends script.systems.combat.combat_base } } utils.setScriptVar(self, "bountyCheckFloodControl", getGameTime() + 60); - } - else - { + } else { prose_package pp = new prose_package(); pp.stringId = new string_id("bounty_hunter", "sm_bounty_amount_target_no_bounties"); prose.setDI(pp, amount); sendSystemMessageProse(infoTarget, pp); utils.setScriptVar(self, "bountyCheckFloodControl", getGameTime() + 60); } - if (infoTarget != self) - { + if (infoTarget != self) { prose_package pm = new prose_package(); pm.stringId = new string_id("bounty_hunter", "sm_bounty_notified_target"); prose.setTT(pm, getName(infoTarget)); @@ -7341,226 +6199,195 @@ public class combat_actions extends script.systems.combat.combat_base } return SCRIPT_CONTINUE; } - public int sm_false_hope(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_false_hope", self, target, params, "", "")) - { + + public int sm_false_hope(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_false_hope", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("sm_false_hope"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_false_hope"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sm_break_the_deal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_break_the_deal", self, target, params, "", "")) - { + + public int sm_break_the_deal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_break_the_deal", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_narrow_escape_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_narrow_escape_1", self, target, params, "", "")) - { + + public int sm_narrow_escape_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_narrow_escape_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_narrow_escape_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_narrow_escape_2", self, target, params, "", "")) - { + + public int sm_narrow_escape_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_narrow_escape_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_narrow_escape_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_narrow_escape_3", self, target, params, "", "")) - { + + public int sm_narrow_escape_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_narrow_escape_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_narrow_escape_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_narrow_escape_4", self, target, params, "", "")) - { + + public int sm_narrow_escape_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_narrow_escape_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_buff_invis_ally_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canPerformCamouflageAlly(self, target) || !combatStandardAction("sm_buff_invis_ally_1", self, target, params, "", "") || !isInAttackRange(self, target, "sm_buff_invis_ally_1", false)) - { + + public int sm_buff_invis_ally_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canPerformCamouflageAlly(self, target) || !combatStandardAction("sm_buff_invis_ally_1", self, target, params, "", "") || !isInAttackRange(self, target, "sm_buff_invis_ally_1", false)) { return SCRIPT_OVERRIDE; } int minPower = 10; int maxPower = 30; float difference = maxPower - minPower; float ratio = getLevel(self) / 90; - int duration = (int)Math.ceil(minPower + (difference * ratio)); + int duration = (int) Math.ceil(minPower + (difference * ratio)); buff.applyBuff(target, self, "invis_sm_buff_invis_1"); return SCRIPT_CONTINUE; } - public int sm_how_are_you(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sm_how_are_you", self, target, params, "", "")) - { + + public int sm_how_are_you(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sm_how_are_you", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doMedicEvasion(self); int randomPhrase = rand(0, 75); - if (randomPhrase < 5) - { + if (randomPhrase < 5) { chat.chat(self, chat.CHAT_SAY, new string_id("set_bonus", "sm_blather_" + randomPhrase)); } return SCRIPT_CONTINUE; } - public int expertise_sm_ranged_shot_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_sm_ranged_shot_proc", self, target, params, "", "")) - { + + public int expertise_sm_ranged_shot_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_sm_ranged_shot_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_sm_melee_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_sm_melee_proc", self, target, params, "", "")) - { + + public int expertise_sm_melee_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_sm_melee_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_sm_melee_stun_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_sm_melee_stun_proc", self, target, params, "", "")) - { + + public int expertise_sm_melee_stun_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_sm_melee_stun_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_sm_feeling_lucky_chance_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_sm_feeling_lucky_chance_proc", self, target, params, "", "")) - { + + public int expertise_sm_feeling_lucky_chance_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_sm_feeling_lucky_chance_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_buff_invis_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canPerformForceCloak(self) || !combatStandardAction("fs_buff_invis_1", self, target, params, "", "")) - { + + public int fs_buff_invis_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canPerformForceCloak(self) || !combatStandardAction("fs_buff_invis_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int steal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int steal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!stealth.canSteal(self, target) || !combatStandardAction("steal", self, target, params, "", "")) - { + if (!stealth.canSteal(self, target) || !combatStandardAction("steal", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } stealth.steal(self, target); return SCRIPT_CONTINUE; } - public int sp_buff_invis_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int sp_buff_invis_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { dictionary blankMsg = new dictionary(); - if (hasSkill(self, "expertise_sp_without_a_trace_1")) - { - if (!stealth.canPerformWithoutTrace(self) || !combatStandardAction("sp_without_a_trace", self, target, params, "", "")) - { + if (hasSkill(self, "expertise_sp_without_a_trace_1")) { + if (!stealth.canPerformWithoutTrace(self) || !combatStandardAction("sp_without_a_trace", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } utils.setScriptVar(self, "sp_without_a_trace", 1); messageTo(self, "withoutTraceTimerExpired", blankMsg, 30, false); - if (successfulFastAttack(self, "sp_perfect", "perfect_opportunity_fly")) - { + if (successfulFastAttack(self, "sp_perfect", "perfect_opportunity_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); buff.applyBuff(self, self, "sp_set_perfect_opportunity"); return SCRIPT_CONTINUE; } - if (successfulFastAttack(self, "sp_smoke", "flawless_getaway_fly")) - { + if (successfulFastAttack(self, "sp_smoke", "flawless_getaway_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_buff_invis_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_smoke"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - if (!stealth.canPerformSmokeGrenade(self)) - { + if (!stealth.canPerformSmokeGrenade(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_buff_invis_1", self, target, params, "", "")) - { + if (!combatStandardAction("sp_buff_invis_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } utils.setScriptVar(self, "sp_smoke_bomb", 1); messageTo(self, "smokeBombTimerExpired", blankMsg, 10, false); - if (successfulFastAttack(self, "sp_perfect", "perfect_opportunity_fly")) - { + if (successfulFastAttack(self, "sp_perfect", "perfect_opportunity_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); buff.applyBuff(self, self, "sp_set_perfect_opportunity"); return SCRIPT_CONTINUE; } - if (successfulFastAttack(self, "sp_smoke", "flawless_getaway_fly")) - { + if (successfulFastAttack(self, "sp_smoke", "flawless_getaway_fly")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_buff_invis_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { baseCooldownTime = 0; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_smoke"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sp_burst_of_shadows(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_burst_of_shadows(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_burst_of_shadows", self, target, params, "", "")) - { + if (!combatStandardAction("sp_burst_of_shadows", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("sp_burst_of_shadows"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_burst_shadows"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sp_reveal_shadows(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canDetectCamouflage(self) || !combatStandardAction("sp_reveal_shadows", self, target, params, "", "")) - { + + public int sp_reveal_shadows(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canDetectCamouflage(self) || !combatStandardAction("sp_reveal_shadows", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float detectSkill = getEnhancedSkillStatisticModifier(self, "detect_hidden"); @@ -7572,75 +6399,64 @@ public class combat_actions extends script.systems.combat.combat_base detectChance = detectChance + detectMod; stealth.detectCamouflage(self, true, true, distance, detectChance); float baseCooldownTime = getBaseCooldownTime("sp_reveal_shadows"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_reveal_shadows"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sp_avoid_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_avoid_damage", self, target, params, "", "")) - { + + public int sp_avoid_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_avoid_damage", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_preparation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_preparation", self, target, params, "", "")) - { + + public int sp_preparation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_preparation", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("sp_preparation"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_preparation"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int sp_buff_stealth_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int sp_buff_stealth_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { String invis = stealth.getInvisBuff(self); - if (invis != null && invis.equals("invis_sp_buff_stealth_1")) - { + if (invis != null && invis.equals("invis_sp_buff_stealth_1")) { buff.removeBuff(self, invis); return SCRIPT_OVERRIDE; } - if (invis != null && (invis.equals("invis_sp_buff_invis_1"))) - { + if (invis != null && (invis.equals("invis_sp_buff_invis_1"))) { buff.removeBuff(self, "invis_sp_buff_invis_1"); buff.applyBuff(self, self, "invis_sp_buff_stealth_1"); return SCRIPT_OVERRIDE; } - if (!stealth.canPerformStealth(self) || !buff.canApplyBuff(self, "invis_sp_buff_stealth_1") || !combatStandardAction("sp_buff_stealth_1", self, target, params, "", "")) - { + if (!stealth.canPerformStealth(self) || !buff.canApplyBuff(self, "invis_sp_buff_stealth_1") || !combatStandardAction("sp_buff_stealth_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_decoy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canPerformSmokeGrenade(self)) - { + + public int sp_decoy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canPerformSmokeGrenade(self)) { return SCRIPT_OVERRIDE; } obj_id decoy = stealth.createDecoy(self); - if (!isIdValid(decoy)) - { + if (!isIdValid(decoy)) { return SCRIPT_OVERRIDE; } obj_id[] haters = getWhoIsTargetingMe(self); int diversionLevel = getEnhancedSkillStatisticModifierUncapped(self, "expertise_improved_decoy"); combat.sendCombatSpamMessage(self, new string_id("spam", "decoy_created")); - if (haters == null || haters.length == 0) - { - if (diversionLevel == 2) - { + if (haters == null || haters.length == 0) { + if (diversionLevel == 2) { buff.applyBuff(self, self, "invis_sp_diversion_stealth"); } return SCRIPT_CONTINUE; @@ -7663,1249 +6479,1069 @@ public class combat_actions extends script.systems.combat.combat_base } } } - if (diversionLevel == 2) - { + if (diversionLevel == 2) { buff.applyBuff(self, self, "invis_sp_diversion_stealth"); } return SCRIPT_CONTINUE; } - public int sp_assassins_mark(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_assassins_mark", self, target, params, "", "")) - { + + public int sp_assassins_mark(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_assassins_mark", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_assassins_mark_reac_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int sp_assassins_mark_reac_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id newTarget = self; obj_id newAttacker = target; - if (!combatStandardAction("sp_assassins_mark_reac_proc", newAttacker, newTarget, params, "", "")) - { + if (!combatStandardAction("sp_assassins_mark_reac_proc", newAttacker, newTarget, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_cc_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_cc_dot", self, target, params, "", "")) - { + + public int sp_cc_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_cc_dot", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_improved_cc_dot_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_improved_cc_dot_0", self, target, params, "", "")) - { + + public int sp_improved_cc_dot_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_improved_cc_dot_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_improved_cc_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_improved_cc_dot_1", self, target, params, "", "")) - { + + public int sp_improved_cc_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_improved_cc_dot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_improved_cc_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_improved_cc_dot_2", self, target, params, "", "")) - { + + public int sp_improved_cc_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_improved_cc_dot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_improved_cc_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_improved_cc_dot_3", self, target, params, "", "")) - { + + public int sp_improved_cc_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_improved_cc_dot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dm_1", self, target, params, "", "")) - { + + public int sp_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sp_dm")) - { + if (successfulFastAttack(self, "sp_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_dm_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int sp_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dm_2", self, target, params, "", "")) - { + + public int sp_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sp_dm")) - { + if (successfulFastAttack(self, "sp_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_dm_2"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int sp_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dm_3", self, target, params, "", "")) - { + + public int sp_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sp_dm")) - { + if (successfulFastAttack(self, "sp_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_dm_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int sp_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dm_4", self, target, params, "", "")) - { + + public int sp_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sp_dm")) - { + if (successfulFastAttack(self, "sp_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_dm_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int sp_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dm_5", self, target, params, "", "")) - { + + public int sp_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sp_dm")) - { + if (successfulFastAttack(self, "sp_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_dm_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int sp_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dm_6", self, target, params, "", "")) - { + + public int sp_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sp_dm")) - { + if (successfulFastAttack(self, "sp_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_dm_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int sp_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dm_7", self, target, params, "", "")) - { + + public int sp_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dm_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sp_dm")) - { + if (successfulFastAttack(self, "sp_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_dm_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int sp_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dm_8", self, target, params, "", "")) - { + + public int sp_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dm_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "sp_dm")) - { + if (successfulFastAttack(self, "sp_dm")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_CONTINUE; } float baseCooldownTime = getBaseCooldownTime("sp_dm_8"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod / 10)); return SCRIPT_CONTINUE; } - public int sp_dot_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dot_0", self, target, params, "", "")) - { + + public int sp_dot_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dot_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dot_1", self, target, params, "", "")) - { + + public int sp_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dot_2", self, target, params, "", "")) - { + + public int sp_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dot_3", self, target, params, "", "")) - { + + public int sp_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_dot_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dot_4", self, target, params, "", "")) - { + + public int sp_dot_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dot_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_dot_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_dot_5", self, target, params, "", "")) - { + + public int sp_dot_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_dot_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_melee_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_melee_0", self, target, params, "", "")) - { + + public int sp_hd_melee_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_melee_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_melee_1", self, target, params, "", "")) - { + + public int sp_hd_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_melee_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_melee_2", self, target, params, "", "")) - { + + public int sp_hd_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_melee_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_melee_3", self, target, params, "", "")) - { + + public int sp_hd_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_melee_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_melee_4", self, target, params, "", "")) - { + + public int sp_hd_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_melee_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_melee_5", self, target, params, "", "")) - { + + public int sp_hd_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_melee_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_melee_6", self, target, params, "", "")) - { + + public int sp_hd_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_melee_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_range_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_range_0", self, target, params, "", "")) - { + + public int sp_hd_range_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_range_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_range_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_range_1", self, target, params, "", "")) - { + + public int sp_hd_range_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_range_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_range_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_range_2", self, target, params, "", "")) - { + + public int sp_hd_range_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_range_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_range_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_range_3", self, target, params, "", "")) - { + + public int sp_hd_range_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_range_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_range_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_range_4", self, target, params, "", "")) - { + + public int sp_hd_range_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_range_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_range_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_range_5", self, target, params, "", "")) - { + + public int sp_hd_range_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_range_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_hd_range_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_hd_range_6", self, target, params, "", "")) - { + + public int sp_hd_range_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_hd_range_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_melee_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_melee_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_melee_0", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_melee_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_melee_1", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_melee_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_melee_2", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_melee_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_melee_3", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_melee_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_melee_4", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_melee_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_melee_5", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_melee_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_melee_6", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_melee_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_ranged_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_ranged_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_ranged_0", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_ranged_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_ranged_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_ranged_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_ranged_1", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_ranged_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_ranged_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_ranged_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_ranged_2", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_ranged_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_ranged_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_ranged_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_ranged_3", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_ranged_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_ranged_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_ranged_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_ranged_4", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_ranged_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_ranged_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_ranged_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_ranged_5", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_ranged_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_stealth_ranged_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_stealth_ranged_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_stealth_ranged_6", self, target, params, "", "")) - { + if (!combatStandardAction("sp_stealth_ranged_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_run_its_course(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_run_its_course", self, target, params, "", "")) - { + + public int sp_run_its_course(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_run_its_course", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_fld_debuff_ca(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_fld_debuff_ca", self, target, params, "", "")) - { + + public int sp_fld_debuff_ca(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_fld_debuff_ca", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_fldmot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - int crippleChanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase"); + + public int sp_fldmot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + int crippleChanceMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase"); int roll = rand(1, 100); - if (roll < crippleChanceMod) - { - if (!combatStandardAction("sp_fldmot_1_snare", self, target, params, "", "")) - { + if (roll < crippleChanceMod) { + if (!combatStandardAction("sp_fldmot_1_snare", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - } - else - { - if (!combatStandardAction("sp_fldmot_1", self, target, params, "", "")) - { + } else { + if (!combatStandardAction("sp_fldmot_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } } return SCRIPT_CONTINUE; } - public int sp_fldmot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - int crippleChanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase"); + + public int sp_fldmot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + int crippleChanceMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase"); int roll = rand(1, 100); - if (roll < crippleChanceMod) - { - if (!combatStandardAction("sp_fldmot_2_snare", self, target, params, "", "")) - { + if (roll < crippleChanceMod) { + if (!combatStandardAction("sp_fldmot_2_snare", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - } - else - { - if (!combatStandardAction("sp_fldmot_2", self, target, params, "", "")) - { + } else { + if (!combatStandardAction("sp_fldmot_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } } return SCRIPT_CONTINUE; } - public int sp_fldmot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - int crippleChanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase"); + + public int sp_fldmot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + int crippleChanceMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase"); int roll = rand(1, 100); - if (roll < crippleChanceMod) - { - if (!combatStandardAction("sp_fldmot_3_snare", self, target, params, "", "")) - { + if (roll < crippleChanceMod) { + if (!combatStandardAction("sp_fldmot_3_snare", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - } - else - { - if (!combatStandardAction("sp_fldmot_3", self, target, params, "", "")) - { + } else { + if (!combatStandardAction("sp_fldmot_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } } return SCRIPT_CONTINUE; } - public int sp_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int sp_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_sh_0", self, target, params, "", "")) - { + if (!combatStandardAction("sp_sh_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int sp_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_sh_1", self, target, params, "", "")) - { + if (!combatStandardAction("sp_sh_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int sp_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_sh_2", self, target, params, "", "")) - { + if (!combatStandardAction("sp_sh_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!healing.isDamaged(self)) - { + + public int sp_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_sh_3", self, target, params, "", "")) - { + if (!combatStandardAction("sp_sh_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_cloaked_recovery_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_cloaked_recovery_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!healing.isDamaged(self)) - { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_cloaked_recovery_0", self, target, params, "", "")) - { + if (!combatStandardAction("sp_cloaked_recovery_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_cloaked_recovery_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_cloaked_recovery_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!healing.isDamaged(self)) - { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_cloaked_recovery_1", self, target, params, "", "")) - { + if (!combatStandardAction("sp_cloaked_recovery_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_cloaked_recovery_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_cloaked_recovery_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!healing.isDamaged(self)) - { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_cloaked_recovery_2", self, target, params, "", "")) - { + if (!combatStandardAction("sp_cloaked_recovery_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_cloaked_recovery_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_cloaked_recovery_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!healing.isDamaged(self)) - { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_cloaked_recovery_3", self, target, params, "", "")) - { + if (!combatStandardAction("sp_cloaked_recovery_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_cloaked_recovery_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_cloaked_recovery_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!healing.isDamaged(self)) - { + if (!healing.isDamaged(self)) { sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_cloaked_recovery_4", self, target, params, "", "")) - { + if (!combatStandardAction("sp_cloaked_recovery_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int handleClearBuffEffect(obj_id self, dictionary params) throws InterruptedException - { + + public int handleClearBuffEffect(obj_id self, dictionary params) throws InterruptedException { int buffCrc = params.getInt("buffCrc"); - if (buffCrc != 0) - { + if (buffCrc != 0) { stopClientEffectObjByLabel(self, buff.getBuffNameFromCrc(buffCrc)); } return SCRIPT_CONTINUE; } - public int failDefaultAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int failDefaultAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { return SCRIPT_OVERRIDE; } - public int failSpecialAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int failSpecialAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { return SCRIPT_CONTINUE; } - public int failProc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int failProc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { return SCRIPT_CONTINUE; } - public int fs_riposte(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInStance(self)) - { + + public int fs_riposte(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInStance(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_riposte", self, target, params, "", "")) - { + if (!combatStandardAction("fs_riposte", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } showFlyTextPrivate(self, self, new string_id("combat_effects", "riposte"), 1.5f, colors.ORANGERED); return SCRIPT_CONTINUE; } - public int expertise_fs_force_clarity_1_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_fs_force_clarity_1_proc", self, target, params, "", "")) - { + + public int expertise_fs_force_clarity_1_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_fs_force_clarity_1_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_fs_flurry_charge_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (buff.isInStance(self)) - { + + public int expertise_fs_flurry_charge_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (buff.isInStance(self)) { buff.applyBuff(self, "jedi_reflect_flurry"); } return SCRIPT_CONTINUE; } - public int meleeHit(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("meleeHit", self, target, params, "", "")) - { + + public int meleeHit(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("meleeHit", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int rangedShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("rangedShot", self, target, params, "", "")) - { + + public int rangedShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("rangedShot", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int saberHit(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("saberHit", self, target, params, "", "")) - { + + public int saberHit(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("saberHit", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_cyber_shock(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_cyber_shock", self, target, params, "", "")) - { + + public int proc_cyber_shock(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_cyber_shock", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_fire_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int proc_fire_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { LOG("procCommand", "proc found"); - if (!combatStandardAction("proc_fire_attack", self, target, params, "", "")) - { + if (!combatStandardAction("proc_fire_attack", self, target, params, "", "")) { LOG("procCommand", "proc failed in combat standard"); return SCRIPT_OVERRIDE; } LOG("procCommand", "proc worked in script"); return SCRIPT_CONTINUE; } - public int proc_generic_test(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_generic_test", self, target, params, "", "")) - { + + public int proc_generic_test(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_generic_test", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int reac_generic_test(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("reac_generic_test", self, target, params, "", "")) - { + + public int reac_generic_test(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("reac_generic_test", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_generic_test_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_generic_test_proc", self, target, params, "", "")) - { + + public int expertise_generic_test_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_generic_test_proc", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_generic_test_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_generic_test_reac", self, target, params, "", "")) - { + + public int expertise_generic_test_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_generic_test_reac", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_fire_attack_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_fire_attack_1", self, target, params, "", "")) - { + + public int proc_fire_attack_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_fire_attack_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_a_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_a_1", self, target, params, "", "")) - { + + public int proc_tow_proc_a_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_a_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_a_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_a_2", self, target, params, "", "")) - { + + public int proc_tow_proc_a_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_a_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_a_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_a_3", self, target, params, "", "")) - { + + public int proc_tow_proc_a_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_a_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_b_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_b_3", self, target, params, "", "")) - { + + public int proc_tow_proc_b_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_b_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_b_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_b_2", self, target, params, "", "")) - { + + public int proc_tow_proc_b_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_b_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_b_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_b_1", self, target, params, "", "")) - { + + public int proc_tow_proc_b_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_b_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_b_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_b_4", self, target, params, "", "")) - { + + public int proc_tow_proc_b_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_b_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_b_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_b_5", self, target, params, "", "")) - { + + public int proc_tow_proc_b_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_b_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_b_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_b_6", self, target, params, "", "")) - { + + public int proc_tow_proc_b_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_b_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_b_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_b_7", self, target, params, "", "")) - { + + public int proc_tow_proc_b_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_b_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_coyn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_coyn", self, target, params, "", "")) - { + + public int proc_tow_proc_coyn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_coyn", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_bracelet_melee(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_bracelet_melee", self, target, params, "", "")) - { + + public int proc_tow_proc_bracelet_melee(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_bracelet_melee", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_bracelet_range(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_bracelet_range", self, target, params, "", "")) - { + + public int proc_tow_proc_bracelet_range(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_bracelet_range", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_tow_proc_bracelet_combo(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_tow_proc_bracelet_combo", self, target, params, "", "")) - { + + public int proc_tow_proc_bracelet_combo(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_tow_proc_bracelet_combo", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_content_charged_proc_fire(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_content_charged_proc_fire", self, target, params, "", "")) - { + + public int proc_content_charged_proc_fire(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_content_charged_proc_fire", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_content_charged_proc_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_content_charged_proc_cold", self, target, params, "", "")) - { + + public int proc_content_charged_proc_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_content_charged_proc_cold", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_content_charged_proc_melee_poison_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_content_charged_proc_melee_poison_1", self, target, params, "", "")) - { + + public int proc_content_charged_proc_melee_poison_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_content_charged_proc_melee_poison_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_content_charged_proc_range_heat_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_content_charged_proc_range_heat_1", self, target, params, "", "")) - { + + public int proc_content_charged_proc_range_heat_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_content_charged_proc_range_heat_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_content_charged_proc_melee_poison_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_content_charged_proc_melee_poison_2", self, target, params, "", "")) - { + + public int proc_content_charged_proc_melee_poison_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_content_charged_proc_melee_poison_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_content_charged_proc_range_heat_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_content_charged_proc_range_heat_2", self, target, params, "", "")) - { + + public int proc_content_charged_proc_range_heat_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_content_charged_proc_range_heat_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_old_light_jedi_gift(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_old_light_jedi_gift", self, target, params, "", "")) - { + + public int proc_old_light_jedi_gift(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_old_light_jedi_gift", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_old_dark_jedi_gift(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_old_dark_jedi_gift", self, target, params, "", "")) - { + + public int proc_old_dark_jedi_gift(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_old_dark_jedi_gift", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_innate_assault_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_innate_assault_1", self, target, params, "", "")) - { + + public int bh_innate_assault_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_innate_assault_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_return_fire_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_return_fire_1", self, target, params, "", "")) - { + + public int bh_return_fire_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_return_fire_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_taunt_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target) || !exists(target)) - { + + public int bh_taunt_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target) || !exists(target)) { return SCRIPT_OVERRIDE; } - if (!ai_lib.isTauntable(target)) - { + if (!ai_lib.isTauntable(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bh_taunt_1", self, target, params, "", "")) - { + if (!combatStandardAction("bh_taunt_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } obj_id topHateTarget = getHateTarget(target); - if (topHateTarget != self) - { + if (topHateTarget != self) { combat.doBhTaunt(self, target); } return SCRIPT_CONTINUE; } - public int bh_taunt_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_taunt_2", self, target, params, "", "")) - { + + public int bh_taunt_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_taunt_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_taunt_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_taunt_3", self, target, params, "", "")) - { + + public int bh_taunt_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_taunt_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_taunt_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_taunt_4", self, target, params, "", "")) - { + + public int bh_taunt_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_taunt_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_taunt_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_taunt_5", self, target, params, "", "")) - { + + public int bh_taunt_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_taunt_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_taunt_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_taunt_6", self, target, params, "", "")) - { + + public int bh_taunt_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_taunt_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_fumble_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_fumble_1", self, target, params, "", "")) - { + + public int bh_fumble_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_fumble_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_fumble_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_fumble_2", self, target, params, "", "")) - { + + public int bh_fumble_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_fumble_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_fumble_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_fumble_3", self, target, params, "", "")) - { + + public int bh_fumble_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_fumble_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_fumble_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_fumble_4", self, target, params, "", "")) - { + + public int bh_fumble_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_fumble_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_fumble_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_fumble_5", self, target, params, "", "")) - { + + public int bh_fumble_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_fumble_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_fumble_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_fumble_6", self, target, params, "", "")) - { + + public int bh_fumble_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_fumble_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_stun_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_stun_1", self, target, params, "", "")) - { + + public int bh_stun_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_stun_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_stun_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_stun_2", self, target, params, "", "")) - { + + public int bh_stun_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_stun_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_stun_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_stun_3", self, target, params, "", "")) - { + + public int bh_stun_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_stun_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_stun_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_stun_4", self, target, params, "", "")) - { + + public int bh_stun_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_stun_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_stun_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_stun_5", self, target, params, "", "")) - { + + public int bh_stun_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_stun_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_prescience(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_prescience", self, target, params, "", "")) - { + + public int bh_prescience(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_prescience", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } buff.applyBuff(self, target, "bh_prescience"); @@ -8915,965 +7551,836 @@ public class combat_actions extends script.systems.combat.combat_base playClientEffectObj(viewers, "appearance/pt_arrow_disc_temp.prt", target, ""); return SCRIPT_CONTINUE; } - public int bh_shields_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_shields_1", self, target, params, "", "")) - { + + public int bh_shields_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_shields_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_dm_crit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_crit_3", self, target, params, "", "")) - { + + public int bh_dm_crit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_crit_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_3"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_crit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_crit_4", self, target, params, "", "")) - { + + public int bh_dm_crit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_crit_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_4"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_crit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_crit_5", self, target, params, "", "")) - { + + public int bh_dm_crit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_crit_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_5"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_crit_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_crit_6", self, target, params, "", "")) - { + + public int bh_dm_crit_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_crit_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_6"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_crit_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_crit_7", self, target, params, "", "")) - { + + public int bh_dm_crit_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_crit_7", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_7"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dm_crit_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dm_crit_8", self, target, params, "", "")) - { + + public int bh_dm_crit_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dm_crit_8", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_8"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10; setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_intimidate_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_intimidate_1", self, target, params, "", "")) - { + + public int bh_intimidate_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_intimidate_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_intimidate_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_intimidate_2", self, target, params, "", "")) - { + + public int bh_intimidate_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_intimidate_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_intimidate_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_intimidate_3", self, target, params, "", "")) - { + + public int bh_intimidate_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_intimidate_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_intimidate_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_intimidate_4", self, target, params, "", "")) - { + + public int bh_intimidate_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_intimidate_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_intimidate_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_intimidate_5", self, target, params, "", "")) - { + + public int bh_intimidate_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_intimidate_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_intimidate_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_intimidate_6", self, target, params, "", "")) - { + + public int bh_intimidate_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_intimidate_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_dread_strike_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dread_strike_1", self, target, params, "", "")) - { + + public int bh_dread_strike_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dread_strike_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_dread_strike_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dread_strike_2", self, target, params, "", "")) - { + + public int bh_dread_strike_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dread_strike_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_dread_strike_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dread_strike_3", self, target, params, "", "")) - { + + public int bh_dread_strike_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dread_strike_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_dread_strike_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dread_strike_4", self, target, params, "", "")) - { + + public int bh_dread_strike_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dread_strike_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_dread_strike_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dread_strike_5", self, target, params, "", "")) - { + + public int bh_dread_strike_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dread_strike_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } removeObjVar(self, "ai.combat.oneShotAction"); removeObjVar(self, "oneShotActionComplete"); return SCRIPT_CONTINUE; } - public int bh_relentless_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_relentless_1", self, target, params, "", "")) - { + + public int bh_relentless_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_relentless_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sniper_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_sniper_1", self, target, params, "", "")) - { + + public int bh_sniper_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_sniper_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sniper_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_sniper_2", self, target, params, "", "")) - { + + public int bh_sniper_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_sniper_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sniper_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_sniper_3", self, target, params, "", "")) - { + + public int bh_sniper_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_sniper_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sniper_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_sniper_4", self, target, params, "", "")) - { + + public int bh_sniper_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_sniper_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sniper_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_sniper_5", self, target, params, "", "")) - { + + public int bh_sniper_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_sniper_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_sniper_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_sniper_6", self, target, params, "", "")) - { + + public int bh_sniper_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_sniper_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_cover_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_cover_1", self, target, params, "", "")) - { + + public int bh_cover_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_cover_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_sprint_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_sprint_1", self, target, params, "", "")) - { + + public int bh_armor_sprint_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_sprint_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_1", self, target, params, "", "")) - { + + public int bh_armor_duelist_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_2", self, target, params, "", "")) - { + + public int bh_armor_duelist_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_3", self, target, params, "", "")) - { + + public int bh_armor_duelist_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_4", self, target, params, "", "")) - { + + public int bh_armor_duelist_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_5", self, target, params, "", "")) - { + + public int bh_armor_duelist_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_heal_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_heal_1", self, target, params, "", "")) - { + + public int bh_armor_duelist_heal_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_heal_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_heal_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_heal_2", self, target, params, "", "")) - { + + public int bh_armor_duelist_heal_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_heal_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_heal_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_heal_3", self, target, params, "", "")) - { + + public int bh_armor_duelist_heal_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_heal_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_heal_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_heal_4", self, target, params, "", "")) - { + + public int bh_armor_duelist_heal_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_heal_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_armor_duelist_heal_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_armor_duelist_heal_5", self, target, params, "", "")) - { + + public int bh_armor_duelist_heal_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_armor_duelist_heal_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bh_return_fire_command_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_return_fire_command_1", self, target, params, "", "")) - { + + public int bh_return_fire_command_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_return_fire_command_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("bh_return_fire_command_1"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_bh_return_fire"); setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod); return SCRIPT_CONTINUE; } - public int bh_dire_root_area_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bh_dire_root_area_1", self, target, params, "", "")) - { + + public int bh_dire_root_area_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bh_dire_root_area_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_damage_shield_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_damage_shield_a", self, target, params, "", "")) - { + + public int gcw_base_damage_shield_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_damage_shield_a", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_damage_shield_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_damage_shield_b", self, target, params, "", "")) - { + + public int gcw_base_damage_shield_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_damage_shield_b", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_damage_shield_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_damage_shield_c", self, target, params, "", "")) - { + + public int gcw_base_damage_shield_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_damage_shield_c", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_damage_shield_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_damage_shield_d", self, target, params, "", "")) - { + + public int gcw_base_damage_shield_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_damage_shield_d", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_damage_shield_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_damage_shield_e", self, target, params, "", "")) - { + + public int gcw_base_damage_shield_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_damage_shield_e", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_gcw_base_damage_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_gcw_base_damage_a", self, target, params, "", "")) - { + + public int proc_gcw_base_damage_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_gcw_base_damage_a", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_gcw_base_damage_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_gcw_base_damage_b", self, target, params, "", "")) - { + + public int proc_gcw_base_damage_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_gcw_base_damage_b", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_gcw_base_damage_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_gcw_base_damage_c", self, target, params, "", "")) - { + + public int proc_gcw_base_damage_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_gcw_base_damage_c", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_gcw_base_damage_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_gcw_base_damage_d", self, target, params, "", "")) - { + + public int proc_gcw_base_damage_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_gcw_base_damage_d", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int proc_gcw_base_damage_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_gcw_base_damage_e", self, target, params, "", "")) - { + + public int proc_gcw_base_damage_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_gcw_base_damage_e", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_heal_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_heal_a", self, target, params, "", "")) - { + + public int gcw_base_reactive_heal_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_heal_a", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_heal_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_heal_b", self, target, params, "", "")) - { + + public int gcw_base_reactive_heal_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_heal_b", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_heal_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_heal_c", self, target, params, "", "")) - { + + public int gcw_base_reactive_heal_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_heal_c", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_heal_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_heal_d", self, target, params, "", "")) - { + + public int gcw_base_reactive_heal_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_heal_d", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_heal_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_heal_e", self, target, params, "", "")) - { + + public int gcw_base_reactive_heal_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_heal_e", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_action_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_action_a", self, target, params, "", "")) - { + + public int gcw_base_reactive_action_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_action_a", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_action_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_action_b", self, target, params, "", "")) - { + + public int gcw_base_reactive_action_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_action_b", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_action_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_action_c", self, target, params, "", "")) - { + + public int gcw_base_reactive_action_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_action_c", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_action_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_action_d", self, target, params, "", "")) - { + + public int gcw_base_reactive_action_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_action_d", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_base_reactive_action_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("gcw_base_reactive_action_e", self, target, params, "", "")) - { + + public int gcw_base_reactive_action_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("gcw_base_reactive_action_e", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int throwGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int throwGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { Long lngId; - try - { + try { lngId = Long.valueOf(params); - } - catch(NumberFormatException err) - { + } catch (NumberFormatException err) { return SCRIPT_CONTINUE; } obj_id objGrenade = obj_id.getObjId(lngId.longValue()); - if (hasObjVar(objGrenade, "intUsed")) - { + if (hasObjVar(objGrenade, "intUsed")) { return SCRIPT_OVERRIDE; } int intCount = getCount(objGrenade); intCount = intCount - 1; String strTemplate = getSharedObjectTemplateName(objGrenade); dictionary dctGrenadeCommand = dataTableGetRow("datatables/timer/template_command_mapping.iff", strTemplate); - if(dctGrenadeCommand == null){ + if (dctGrenadeCommand == null) { LOG("grenade", "Can't find entry for template (" + strTemplate + ") in datatable datatables/timer/template_command_mapping.iff." + "Thrown by (" + self + ":" + getTemplateName(self) + ") who " + (isPlayer(target) ? "IS" : "IS NOT") + " a player, thrown at (" + target + ":" + getTemplateName(target) + ") who " + (isPlayer(target) ? "IS" : "IS NOT") + " a player."); return SCRIPT_OVERRIDE; } String strCommand = dctGrenadeCommand.getString("COMMAND"); - if (!combatStandardAction(strCommand, self, target, objGrenade, "", null, false)) - { + if (!combatStandardAction(strCommand, self, target, objGrenade, "", null, false)) { return SCRIPT_OVERRIDE; - } - else - { - if (intCount <= 0) - { + } else { + if (intCount <= 0) { setObjVar(objGrenade, "intUsed", 1); destroyObject(objGrenade); - } - else - { + } else { setCount(objGrenade, intCount); } } return SCRIPT_CONTINUE; } - public int failThrowGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int failThrowGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { Long lngId; - try - { + try { lngId = Long.valueOf(params); - } - catch(NumberFormatException err) - { + } catch (NumberFormatException err) { return SCRIPT_CONTINUE; } obj_id grenade = obj_id.getObjId(lngId.longValue()); removeObjVar(grenade, "intUsed"); return SCRIPT_CONTINUE; } - public int cheapShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("cheapShot", self, target, params, "", "")) - { + + public int cheapShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("cheapShot", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int blastAway(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("blastAway", self, target, params, "", "")) - { + + public int blastAway(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("blastAway", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int hipShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("hipShot", self, target, params, "", "")) - { + + public int hipShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("hipShot", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int assault(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("assault", self, target, params, "", "")) - { + + public int assault(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("assault", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int crippleShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("crippleShot", self, target, params, "", "")) - { + + public int crippleShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("crippleShot", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int forceThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("forceThrow", self, target, params, "", "")) - { + + public int forceThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("forceThrow", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ambush(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ambush", self, target, params, "", "")) - { + + public int ambush(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ambush", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int demolition(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("demolition", self, target, params, "", "")) - { + + public int demolition(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("demolition", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int stunGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("stunGrenade", self, target, params, "", "")) - { + + public int stunGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("stunGrenade", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int barrage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("barrage", self, target, params, "", "")) - { + + public int barrage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("barrage", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int forceStrike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("forceStrike", self, target, params, "", "")) - { + + public int forceStrike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("forceStrike", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int actOfWar(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("actOfWar", self, target, params, "", "")) - { + + public int actOfWar(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("actOfWar", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int terminateTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("terminateTarget", self, target, params, "", "")) - { + + public int terminateTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("terminateTarget", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int targetAnatomy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("targetAnatomy", self, target, params, "", "")) - { + + public int targetAnatomy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("targetAnatomy", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int neurotoxin(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("neurotoxin", self, target, params, "", "")) - { + + public int neurotoxin(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("neurotoxin", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int onehandThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("onehandThrow", self, target, params, "", "")) - { + + public int onehandThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("onehandThrow", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int twohandThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("twohandThrow", self, target, params, "", "")) - { + + public int twohandThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("twohandThrow", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int polearmThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("polearmThrow", self, target, params, "", "")) - { + + public int polearmThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("polearmThrow", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int stealth(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canPerformStealth(self) || !combatStandardAction("stealth", self, target, params, "", "")) - { + + public int stealth(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canPerformStealth(self) || !combatStandardAction("stealth", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int smokeGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canPerformSmokeGrenade(self) || !combatStandardAction("smokeGrenade", self, target, params, "", "")) - { + + public int smokeGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canPerformSmokeGrenade(self) || !combatStandardAction("smokeGrenade", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int entrench(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("entrench", self, target, params, "", "")) - { + + public int entrench(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("entrench", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int centerOfBeing(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("centerOfBeing", self, target, params, "", "")) - { + + public int centerOfBeing(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("centerOfBeing", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int forceFocus(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("forceFocus", self, target, params, "", "")) - { + + public int forceFocus(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("forceFocus", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int paintTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("paintTarget", self, target, params, "", "")) - { + + public int paintTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("paintTarget", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int blueGlowie(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int blueGlowie(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { string_id SHAPECHANGE = new string_id("spam", "not_while_shapechanged"); int shapechange = buff.getBuffOnTargetFromGroup(self, "shapechange"); - if (shapechange != 0) - { + if (shapechange != 0) { sendSystemMessage(self, SHAPECHANGE); return SCRIPT_OVERRIDE; } - if (combat.isInCombat(self)) - { + if (combat.isInCombat(self)) { return SCRIPT_OVERRIDE; } - if (getState(self, STATE_GLOWING_JEDI) == 0) - { + if (getState(self, STATE_GLOWING_JEDI) == 0) { setState(self, STATE_GLOWING_JEDI, true); - } - else - { + } else { setState(self, STATE_GLOWING_JEDI, false); } return SCRIPT_CONTINUE; } - public int proc_pvp_despair(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("proc_pvp_despair", self, target, params, "", "")) - { + + public int proc_pvp_despair(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("proc_pvp_despair", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_aura_buff_self(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_aura_buff_self", self, target, params, "", "")) - { + + public int pvp_aura_buff_self(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_aura_buff_self", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_aura_buff_rebel_self(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_aura_buff_rebel_self", self, target, params, "", "")) - { + + public int pvp_aura_buff_rebel_self(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_aura_buff_rebel_self", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_retaliation_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_retaliation_ability", self, target, params, "", "")) - { + + public int pvp_retaliation_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_retaliation_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_retaliation_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_retaliation_rebel_ability", self, target, params, "", "")) - { + + public int pvp_retaliation_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_retaliation_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_adrenaline_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_adrenaline_ability", self, target, params, "", "")) - { + + public int pvp_adrenaline_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_adrenaline_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_adrenaline_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_adrenaline_rebel_ability", self, target, params, "", "")) - { + + public int pvp_adrenaline_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_adrenaline_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_unstoppable_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_unstoppable_ability", self, target, params, "", "")) - { + + public int pvp_unstoppable_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_unstoppable_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_unstoppable_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_unstoppable_rebel_ability", self, target, params, "", "")) - { + + public int pvp_unstoppable_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_unstoppable_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int command_pvp_retaliation_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("command_pvp_retaliation_ability", self, target, params, "", "")) - { + + public int command_pvp_retaliation_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("command_pvp_retaliation_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int command_pvp_retaliation_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("command_pvp_retaliation_rebel_ability", self, target, params, "", "")) - { + + public int command_pvp_retaliation_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("command_pvp_retaliation_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int command_pvp_adrenaline_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("command_pvp_adrenaline_ability", self, target, params, "", "")) - { + + public int command_pvp_adrenaline_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("command_pvp_adrenaline_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int command_pvp_adrenaline_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("command_pvp_adrenaline_rebel_ability", self, target, params, "", "")) - { + + public int command_pvp_adrenaline_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("command_pvp_adrenaline_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int command_pvp_unstoppable_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("command_pvp_unstoppable_ability", self, target, params, "", "")) - { + + public int command_pvp_unstoppable_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("command_pvp_unstoppable_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int command_pvp_unstoppable_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("command_pvp_unstoppable_rebel_ability", self, target, params, "", "")) - { + + public int command_pvp_unstoppable_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("command_pvp_unstoppable_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int command_pvp_last_man_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("command_pvp_last_man_ability", self, target, params, "", "")) - { + + public int command_pvp_last_man_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("command_pvp_last_man_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int command_pvp_last_man_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("command_pvp_last_man_rebel_ability", self, target, params, "", "")) - { + + public int command_pvp_last_man_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("command_pvp_last_man_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_last_man_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_last_man_ability", self, target, params, "", "")) - { + + public int pvp_last_man_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_last_man_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_last_man_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("pvp_last_man_rebel_ability", self, target, params, "", "")) - { + + public int pvp_last_man_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("pvp_last_man_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pvp_airstrike_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (getTopMostContainer(self) != self) - { + + public int pvp_airstrike_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (getTopMostContainer(self) != self) { sendSystemMessage(self, new string_id("spam", "cant_do_indoors")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("pvp_airstrike_ability", self, target, params, "", "")) - { + if (!combatStandardAction("pvp_airstrike_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } prose_package p = prose.getPackage(new string_id("spam", "pvp_airstrike_imperial")); @@ -9881,15 +8388,13 @@ public class combat_actions extends script.systems.combat.combat_base playClientEffectLoc(self, "clienteffect/pvp_imperial_airstrike.cef", getLocation(target), 0); return SCRIPT_CONTINUE; } - public int pvp_airstrike_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (getTopMostContainer(self) != self) - { + + public int pvp_airstrike_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (getTopMostContainer(self) != self) { sendSystemMessage(self, new string_id("spam", "cant_do_indoors")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("pvp_airstrike_rebel_ability", self, target, params, "", "")) - { + if (!combatStandardAction("pvp_airstrike_rebel_ability", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } prose_package p = prose.getPackage(new string_id("spam", "pvp_airstrike_rebel")); @@ -9897,35 +8402,29 @@ public class combat_actions extends script.systems.combat.combat_base playClientEffectLoc(self, "clienteffect/pvp_rebel_airstrike.cef", getLocation(target), 0); return SCRIPT_CONTINUE; } - public int gallop(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int gallop(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id objMount = getMountId(self); - if (!isIdValid(objMount)) - { + if (!isIdValid(objMount)) { string_id strSpam = new string_id("combat_effects", "not_mounted"); sendSystemMessage(self, strSpam); return SCRIPT_CONTINUE; - } - else if (vehicle.isDriveableVehicle(objMount)) - { + } else if (vehicle.isDriveableVehicle(objMount)) { string_id strSpam = new string_id("combat_effects", "not_mounted"); sendSystemMessage(self, strSpam); return SCRIPT_OVERRIDE; } dictionary dctMountInfo = pet_lib.getMountMovementInfo(objMount); - if (dctMountInfo == null) - { + if (dctMountInfo == null) { return SCRIPT_CONTINUE; } obj_id objControlDevice = callable.getCallableCD(objMount); - if (utils.hasScriptVar(objControlDevice, "mount.intGalloping")) - { + if (utils.hasScriptVar(objControlDevice, "mount.intGalloping")) { string_id strSpam = new string_id("combat_effects", "already_galloping"); sendSystemMessage(self, strSpam); return SCRIPT_CONTINUE; } - if (utils.hasScriptVar(objControlDevice, "mount.intTired")) - { + if (utils.hasScriptVar(objControlDevice, "mount.intTired")) { string_id strSpam = new string_id("combat_effects", "mount_tired"); sendSystemMessage(self, strSpam); return SCRIPT_CONTINUE; @@ -9933,17 +8432,15 @@ public class combat_actions extends script.systems.combat.combat_base pet_lib.setMountBurstRunMovementRate(self, objMount); return SCRIPT_CONTINUE; } - public int gallopStop(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int gallopStop(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id objMount = getMountId(self); - if (!isIdValid(objMount)) - { + if (!isIdValid(objMount)) { string_id strSpam = new string_id("combat_effects", "cant_stop_gallop_not_mounted"); sendSystemMessage(self, strSpam); return SCRIPT_CONTINUE; } - if (!pet_lib.isGalloping(objMount)) - { + if (!pet_lib.isGalloping(objMount)) { string_id strSpam = new string_id("combat_effects", "cant_stop_galloping_not_galloping"); sendSystemMessage(self, strSpam); return SCRIPT_CONTINUE; @@ -9952,289 +8449,246 @@ public class combat_actions extends script.systems.combat.combat_base messageTo(objControlDevice, "removeGallop", null, 1, false); return SCRIPT_CONTINUE; } - public int en_holographic_image(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (combat.isInCombat(self)) - { + + public int en_holographic_image(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (combat.isInCombat(self)) { sendSystemMessage(self, new string_id("spam", "cant_do_holo_combat")); return SCRIPT_OVERRIDE; } - if (performance.hasMaxHolo(self)) - { + if (performance.hasMaxHolo(self)) { sendSystemMessage(self, new string_id("spam", "holo_maximum_reached")); return SCRIPT_OVERRIDE; } - if (!performance.createHolographicBackup(self)) - { + if (!performance.createHolographicBackup(self)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_holographic_recall(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!utils.hasScriptVar(self, "holoMessageTime")) - { + + public int en_holographic_recall(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!utils.hasScriptVar(self, "holoMessageTime")) { sendSystemMessage(self, new string_id("spam", "no_holo_recall")); return SCRIPT_OVERRIDE; } performance.holographicCleanup(self); return SCRIPT_CONTINUE; } - public int en_void_dance(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - int voidEffectMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "eexpertise_buff_en_void_dance_buff"); - if ((voidEffectMod == 5) && (!combatStandardAction("en_void_dance_1", self, target, params, "", ""))) - { + + public int en_void_dance(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + int voidEffectMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "eexpertise_buff_en_void_dance_buff"); + if ((voidEffectMod == 5) && (!combatStandardAction("en_void_dance_1", self, target, params, "", ""))) { return SCRIPT_OVERRIDE; - } - else if ((voidEffectMod == 10) && (!combatStandardAction("en_void_dance_2", self, target, params, "", ""))) - { + } else if ((voidEffectMod == 10) && (!combatStandardAction("en_void_dance_2", self, target, params, "", ""))) { return SCRIPT_OVERRIDE; - } - else if ((voidEffectMod == 15) && (!combatStandardAction("en_void_dance_3", self, target, params, "", ""))) - { + } else if ((voidEffectMod == 15) && (!combatStandardAction("en_void_dance_3", self, target, params, "", ""))) { return SCRIPT_OVERRIDE; - } - else if (!combatStandardAction("en_void_dance", self, target, params, "", "")) - { + } else if (!combatStandardAction("en_void_dance", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_strike_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_strike_0", self, target, params, "", "")) - { + + public int en_strike_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_strike_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_strike_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_strike_1", self, target, params, "", "")) - { + + public int en_strike_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_strike_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_strike_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_strike_2", self, target, params, "", "")) - { + + public int en_strike_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_strike_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_strike_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_strike_3", self, target, params, "", "")) - { + + public int en_strike_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_strike_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_strike_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_strike_4", self, target, params, "", "")) - { + + public int en_strike_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_strike_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_strike_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_strike_5", self, target, params, "", "")) - { + + public int en_strike_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_strike_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_strike_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_strike_6", self, target, params, "", "")) - { + + public int en_strike_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_strike_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_thrill(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - int thrillEffectMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_en_debuff_thrill_increase"); - if ((thrillEffectMod == 10) && (!combatStandardAction("en_thrill_1", self, target, params, "", ""))) - { + + public int en_thrill(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + int thrillEffectMod = (int) getEnhancedSkillStatisticModifierUncapped(self, "expertise_en_debuff_thrill_increase"); + if ((thrillEffectMod == 10) && (!combatStandardAction("en_thrill_1", self, target, params, "", ""))) { return SCRIPT_OVERRIDE; - } - else if ((thrillEffectMod == 20) && (!combatStandardAction("en_thrill_2", self, target, params, "", ""))) - { + } else if ((thrillEffectMod == 20) && (!combatStandardAction("en_thrill_2", self, target, params, "", ""))) { return SCRIPT_OVERRIDE; - } - else if (!combatStandardAction("en_thrill", self, target, params, "", "")) - { + } else if (!combatStandardAction("en_thrill", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_project_will_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_project_will_0", self, target, params, "", "")) - { + + public int en_project_will_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_project_will_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_project_will_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_project_will_1", self, target, params, "", "")) - { + + public int en_project_will_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_project_will_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_project_will_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_project_will_2", self, target, params, "", "")) - { + + public int en_project_will_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_project_will_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_project_will_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_project_will_3", self, target, params, "", "")) - { + + public int en_project_will_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_project_will_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_project_will_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_project_will_4", self, target, params, "", "")) - { + + public int en_project_will_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_project_will_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_project_will_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_project_will_5", self, target, params, "", "")) - { + + public int en_project_will_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_project_will_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_project_will_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_project_will_6", self, target, params, "", "")) - { + + public int en_project_will_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_project_will_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sweeping_pirouette_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_sweeping_pirouette_0", self, target, params, "", "")) - { + + public int en_sweeping_pirouette_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_sweeping_pirouette_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sweeping_pirouette_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_sweeping_pirouette_1", self, target, params, "", "")) - { + + public int en_sweeping_pirouette_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_sweeping_pirouette_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sweeping_pirouette_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_sweeping_pirouette_2", self, target, params, "", "")) - { + + public int en_sweeping_pirouette_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_sweeping_pirouette_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sweeping_pirouette_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_sweeping_pirouette_3", self, target, params, "", "")) - { + + public int en_sweeping_pirouette_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_sweeping_pirouette_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sweeping_pirouette_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_sweeping_pirouette_4", self, target, params, "", "")) - { + + public int en_sweeping_pirouette_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_sweeping_pirouette_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_sweeping_pirouette_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_sweeping_pirouette_5", self, target, params, "", "")) - { + + public int en_sweeping_pirouette_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_sweeping_pirouette_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_unhealthy_fixation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_unhealthy_fixation", self, target, params, "", "")) - { + + public int en_unhealthy_fixation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_unhealthy_fixation", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_spiral_kick_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_spiral_kick_0", self, target, params, "", "")) - { + + public int en_spiral_kick_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_spiral_kick_0", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_spiral_kick_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_spiral_kick_1", self, target, params, "", "")) - { + + public int en_spiral_kick_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_spiral_kick_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_spiral_kick_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_spiral_kick_2", self, target, params, "", "")) - { + + public int en_spiral_kick_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_spiral_kick_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_spiral_kick_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_spiral_kick_3", self, target, params, "", "")) - { + + public int en_spiral_kick_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_spiral_kick_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int en_spiral_kick_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("en_spiral_kick_4", self, target, params, "", "")) - { + + public int en_spiral_kick_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("en_spiral_kick_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int pingObject(obj_id self, dictionary params) throws InterruptedException - { + + public int pingObject(obj_id self, dictionary params) throws InterruptedException { location locTest = getLocation(self); obj_id objSender = params.getObjId("objSender"); dictionary dctParams = new dictionary(); dctParams.put("locTest", locTest); obj_id objTopMostContainer = getTopMostContainer(self); - if (isIdValid(objTopMostContainer)) - { + if (isIdValid(objTopMostContainer)) { dctParams.put("objTopMost", objTopMostContainer); dctParams.put("locTopMost", getLocation(objTopMostContainer)); } @@ -10243,160 +8697,139 @@ public class combat_actions extends script.systems.combat.combat_base LOG("npe", self + " at " + locTest + " responded to ping"); return SCRIPT_CONTINUE; } - public int bountyTrackTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bountyTrackTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = utils.stringToObjId(params); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { return SCRIPT_OVERRIDE; - } - else - { + } else { bounty_hunter.probeDroidTrackTarget(self, droid); } return SCRIPT_CONTINUE; } - public int applyCritImmunityBuff(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "criticalImmunity")) - { + + public int applyCritImmunityBuff(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "criticalImmunity")) { buff.applyBuff(self, self, "criticalImmunity"); } return SCRIPT_CONTINUE; } - public int applyStunImmunity(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "stun_immune")) - { + + public int applyStunImmunity(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "stun_immune")) { buff.applyBuff(self, self, "stun_immune"); } return SCRIPT_CONTINUE; } - public int applyVortexSnare(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "of_vortex_snare")) - { + + public int applyVortexSnare(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "of_vortex_snare")) { buff.applyBuff(self, self, "of_vortex_snare"); } return SCRIPT_CONTINUE; } - public float getBaseCooldownTime(String commandName) throws InterruptedException - { + + public float getBaseCooldownTime(String commandName) throws InterruptedException { float cooldownTime = dataTableGetFloat("datatables/command/command_table.iff", commandName, "cooldownTime"); return cooldownTime; } - public int fs_dot_immunity_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "fs_dot_immunity_recourse")) - { + + public int fs_dot_immunity_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "fs_dot_immunity_recourse")) { buff.applyBuff(self, self, "fs_dot_immunity_recourse"); } return SCRIPT_CONTINUE; } - public int throwFan(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("throwFan", self, target, params, "", "")) - { + + public int throwFan(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("throwFan", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creature_milking_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creature_milking_buff", self, target, params, "", "")) - { + + public int creature_milking_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creature_milking_buff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int lair_egg_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("lair_egg_buff", self, target, params, "", "")) - { + + public int lair_egg_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("lair_egg_buff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_buildabuff_heal_1_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_buildabuff_heal_1_reac", self, target, params, "", "")) - { + + public int expertise_buildabuff_heal_1_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_buildabuff_heal_1_reac", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_buildabuff_heal_2_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_buildabuff_heal_2_reac", self, target, params, "", "")) - { + + public int expertise_buildabuff_heal_2_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_buildabuff_heal_2_reac", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int expertise_buildabuff_heal_3_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("expertise_buildabuff_heal_3_reac", self, target, params, "", "")) - { + + public int expertise_buildabuff_heal_3_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("expertise_buildabuff_heal_3_reac", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int forceCrystalForce(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int forceCrystalForce(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { LOG("procCommand", "proc found"); - if (!combatStandardAction("forceCrystalForce", self, target, params, "", "")) - { + if (!combatStandardAction("forceCrystalForce", self, target, params, "", "")) { LOG("procCommand", "proc failed in combat standard"); return SCRIPT_OVERRIDE; } LOG("procCommand", "proc worked in script"); return SCRIPT_CONTINUE; } - public int bm_soothing_comfort_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_soothing_comfort_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); - if (!exists(beast) || isIdNull(beast)) - { + if (!exists(beast) || isIdNull(beast)) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); sendSystemMessage(self, new string_id("spam", "no_beast_out")); return SCRIPT_OVERRIDE; } target = beast; - if (!isDead(beast) == false) - { + if (!isDead(beast) == false) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); sendSystemMessage(self, new string_id("spam", "pet_beyond_healing")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_soothing_comfort_1", self, target, params, "", "")) - { + if (!combatStandardAction("bm_soothing_comfort_1", self, target, params, "", "")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_mend_pet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_mend_pet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); - if (!exists(beast) || isIdNull(beast)) - { + if (!exists(beast) || isIdNull(beast)) { sendSystemMessage(self, new string_id("spam", "no_beast_out")); setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } target = beast; - if (isDead(beast)) - { + if (isDead(beast)) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); sendSystemMessage(self, new string_id("spam", "pet_beyond_healing")); return SCRIPT_OVERRIDE; } - if (!healing.canDoBeastHeal(self, target)) - { + if (!healing.canDoBeastHeal(self, target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_mend_pet_1", self, target, params, "", "")) - { + if (!combatStandardAction("bm_mend_pet_1", self, target, params, "", "")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } @@ -10404,28 +8837,24 @@ public class combat_actions extends script.systems.combat.combat_base healing.doBeastHeal(self, target, toHeal); return SCRIPT_CONTINUE; } - public int bm_mend_pet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_mend_pet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); - if (!exists(beast) || isIdNull(beast)) - { + if (!exists(beast) || isIdNull(beast)) { sendSystemMessage(self, new string_id("spam", "no_beast_out")); setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } target = beast; - if (isDead(beast)) - { + if (isDead(beast)) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); sendSystemMessage(self, new string_id("spam", "pet_beyond_healing")); return SCRIPT_OVERRIDE; } - if (!healing.canDoBeastHeal(self, target)) - { + if (!healing.canDoBeastHeal(self, target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_mend_pet_2", self, target, params, "", "")) - { + if (!combatStandardAction("bm_mend_pet_2", self, target, params, "", "")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } @@ -10433,28 +8862,24 @@ public class combat_actions extends script.systems.combat.combat_base healing.doBeastHeal(self, target, toHeal); return SCRIPT_CONTINUE; } - public int bm_mend_pet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_mend_pet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); - if (!exists(beast) || isIdNull(beast)) - { + if (!exists(beast) || isIdNull(beast)) { sendSystemMessage(self, new string_id("spam", "no_beast_out")); setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } target = beast; - if (isDead(beast)) - { + if (isDead(beast)) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); sendSystemMessage(self, new string_id("spam", "pet_beyond_healing")); return SCRIPT_OVERRIDE; } - if (!healing.canDoBeastHeal(self, target)) - { + if (!healing.canDoBeastHeal(self, target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_mend_pet_3", self, target, params, "", "")) - { + if (!combatStandardAction("bm_mend_pet_3", self, target, params, "", "")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } @@ -10462,24 +8887,21 @@ public class combat_actions extends script.systems.combat.combat_base healing.doBeastHeal(self, target, toHeal); return SCRIPT_CONTINUE; } - public int bm_revive_pet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_revive_pet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); - if (!exists(beast) || isIdNull(beast)) - { + if (!exists(beast) || isIdNull(beast)) { sendSystemMessage(self, new string_id("spam", "no_beast_out")); setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } target = beast; - if (!isDead(beast)) - { + if (!isDead(beast)) { sendSystemMessage(self, new string_id("spam", "beast_not_dead")); setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_revive_pet_1", self, target, params, "", "")) - { + if (!combatStandardAction("bm_revive_pet_1", self, target, params, "", "")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; } @@ -10488,8 +8910,8 @@ public class combat_actions extends script.systems.combat.combat_base sendSystemMessage(self, new string_id("spam", "stand_next_to_corpse")); setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); return SCRIPT_OVERRIDE; - } - float percentRangeMod = (playerToPetRange > 7f) ? (playerToPetRange / 85f) * 10f : 1f ; + } + float percentRangeMod = (playerToPetRange > 7f) ? (playerToPetRange / 85f) * 10f : 1f; dictionary dict = new dictionary(); dict.addFloat("extendedRange", percentRangeMod); messageTo(self, "channelRevivePet", dict, 0, false); @@ -10498,52 +8920,47 @@ public class combat_actions extends script.systems.combat.combat_base setCommandTimerValue(self, TIMER_COOLDOWN, (baseCooldownTime - cooldownTimeMod) * percentRangeMod); return SCRIPT_CONTINUE; } - public int bm_paralytic_poison_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "bm_paralytic_poison_recourse")) - { + + public int bm_paralytic_poison_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "bm_paralytic_poison_recourse")) { buff.applyBuff(self, self, "bm_paralytic_poison_recourse"); } return SCRIPT_CONTINUE; } - public int handlePostureRestore(obj_id self, dictionary params) throws InterruptedException - { + + public int handlePostureRestore(obj_id self, dictionary params) throws InterruptedException { stopClientEffectObjByLabel(self, "state_knockdown"); - if (getPosture(self) == POSTURE_KNOCKED_DOWN) - { + if (getPosture(self) == POSTURE_KNOCKED_DOWN) { setPostureClientImmediate(self, utils.getIntScriptVar(self, "combat.intKnockdownTime.posture")); } return SCRIPT_CONTINUE; } - public int performHateTick(obj_id self, dictionary params) throws InterruptedException - { + + public int performHateTick(obj_id self, dictionary params) throws InterruptedException { obj_id attacker = params.getObjId("attacker"); int hate = params.getInt("hate"); int tick = params.getInt("tick"); int duration = params.getInt("duration"); addHate(attacker, self, 0.0f); addHate(self, attacker, hate); - if (duration < getGameTime()) - { + if (duration < getGameTime()) { messageTo(self, "performHateTick", params, tick, false); } return SCRIPT_CONTINUE; } - public int combatTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target)) - { + + public int combatTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target)) { return SCRIPT_OVERRIDE; } setTarget(self, target); return SCRIPT_OVERRIDE; } - public int updateCrowdControlEffect(obj_id self, dictionary params) throws InterruptedException - { + + public int updateCrowdControlEffect(obj_id self, dictionary params) throws InterruptedException { boolean effectActive = false; int[] buffList = buff.getAllBuffs(self); - if (buffList == null || buffList.length == 0) - { + if (buffList == null || buffList.length == 0) { return SCRIPT_CONTINUE; } prose_package pp = new prose_package(); @@ -10564,166 +8981,147 @@ public class combat_actions extends script.systems.combat.combat_base showFlyTextPrivateProseWithFlags(self, self, pp, 1.5f, colors.LAWNGREEN, FLY_TEXT_FLAG_IS_SNARE); } } - if (effectActive) - { + if (effectActive) { messageTo(self, "updateCrowdControlEffect", null, 4.0f, false); } return SCRIPT_CONTINUE; } - public int creatureMeleeAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureMeleeAttack", self, target, params, "", "")) - { + + public int creatureMeleeAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureMeleeAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureRangedAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureRangedAttack", self, target, params, "", "")) - { + + public int creatureRangedAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureRangedAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureBlindAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureBlindAttack", self, target, params, "", "")) - { + + public int creatureBlindAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureBlindAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureDizzyAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureDizzyAttack", self, target, params, "", "")) - { + + public int creatureDizzyAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureDizzyAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureStunAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureStunAttack", self, target, params, "", "")) - { + + public int creatureStunAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureStunAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureIntimidationAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureIntimidationAttack", self, target, params, "", "")) - { + + public int creatureIntimidationAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureIntimidationAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureKnockdownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureKnockdownAttack", self, target, params, "", "")) - { + + public int creatureKnockdownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureKnockdownAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creaturePostureDownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creaturePostureDownAttack", self, target, params, "", "")) - { + + public int creaturePostureDownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creaturePostureDownAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creaturePostureUpAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creaturePostureUpAttack", self, target, params, "", "")) - { + + public int creaturePostureUpAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creaturePostureUpAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureAreaAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureAreaAttack", self, target, params, "", "")) - { + + public int creatureAreaAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureAreaAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureAreaCombo(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureAreaCombo", self, target, params, "", "")) - { + + public int creatureAreaCombo(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureAreaCombo", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureAreaBleeding(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureAreaBleeding", self, target, params, "", "")) - { + + public int creatureAreaBleeding(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureAreaBleeding", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureAreaDisease(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureAreaDisease", self, target, params, "creatureAreaDiseaseSuccess", "")) - { + + public int creatureAreaDisease(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureAreaDisease", self, target, params, "creatureAreaDiseaseSuccess", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureAreaPoison(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureAreaPoison", self, target, params, "creatureAreaPoisonSuccess", "")) - { + + public int creatureAreaPoison(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureAreaPoison", self, target, params, "creatureAreaPoisonSuccess", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureAreaKnockdown(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureAreaKnockdown", self, target, params, "", "")) - { + + public int creatureAreaKnockdown(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureAreaKnockdown", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creaturePoisonAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creaturePoisonAttack", self, target, params, "", "")) - { + + public int creaturePoisonAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creaturePoisonAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureFireAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureFireAttack", self, target, params, "", "")) - { + + public int creatureFireAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureFireAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureSnareAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("creatureSnareAttack", self, target, params, "", "")) - { + + public int creatureSnareAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("creatureSnareAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int creatureAreaDiseaseSuccess(obj_id self, dictionary params) throws InterruptedException - { + + public int creatureAreaDiseaseSuccess(obj_id self, dictionary params) throws InterruptedException { obj_id[] defenders = params.getObjIdArray("defenders"); for (obj_id defender : defenders) { dot.applyDotEffect(defender, self, dot.DOT_DISEASE, "creatureDiseaseAttack", HEALTH, 100, 300, 300); } return SCRIPT_CONTINUE; } - public int creatureAreaPoisonSuccess(obj_id self, dictionary params) throws InterruptedException - { + + public int creatureAreaPoisonSuccess(obj_id self, dictionary params) throws InterruptedException { obj_id[] defenders = params.getObjIdArray("defenders"); for (obj_id defender : defenders) { if (dot.canApplyDotType(defender, dot.DOT_POISON)) { @@ -10732,1192 +9130,1042 @@ public class combat_actions extends script.systems.combat.combat_base } return SCRIPT_CONTINUE; } - public int knockdownRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("knockdownRecovery", self, target, params, "knockdownRecoverySuccess", "")) - { + + public int knockdownRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("knockdownRecovery", self, target, params, "knockdownRecoverySuccess", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int stunRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("stunRecovery", self, target, params, "stunRecoverySuccess", "")) - { + + public int stunRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("stunRecovery", self, target, params, "stunRecoverySuccess", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int blindRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("blindRecovery", self, target, params, "blindRecoverySuccess", "")) - { + + public int blindRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("blindRecovery", self, target, params, "blindRecoverySuccess", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int dizzyRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("dizzyRecovery", self, target, params, "dizzyRecoverySuccess", "")) - { + + public int dizzyRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("dizzyRecovery", self, target, params, "dizzyRecoverySuccess", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int iceCreamRecourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "ice_cream_recourse")) - { + + public int iceCreamRecourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "ice_cream_recourse")) { buff.applyBuff(self, self, "ice_cream_recourse"); } return SCRIPT_CONTINUE; } - public int dazeRecourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "dazeBlockDebuff")) - { + + public int dazeRecourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "dazeBlockDebuff")) { buff.applyBuff(self, self, "dazeBlockDebuff"); } return SCRIPT_CONTINUE; } - public int mezRecourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "mezBlockDebuff")) - { + + public int mezRecourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "mezBlockDebuff")) { buff.applyBuff(self, self, "mezBlockDebuff"); } return SCRIPT_CONTINUE; } - public int seetingAngerRecourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "seetingAnger_1")) - { + + public int seetingAngerRecourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "seetingAnger_1")) { buff.applyBuff(self, self, "seethingAnger_1"); } return SCRIPT_CONTINUE; } - public int seetingAngerRecourse_1(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "seetingAnger_2")) - { + + public int seetingAngerRecourse_1(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "seetingAnger_2")) { buff.applyBuff(self, self, "seethingAnger_2"); } return SCRIPT_CONTINUE; } - public int seetingAngerRecourse_2(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "seetingAnger_3")) - { + + public int seetingAngerRecourse_2(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "seetingAnger_3")) { buff.applyBuff(self, self, "seethingAnger_3"); } return SCRIPT_CONTINUE; } - public int seetingAngerRecourse_3(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "seetingAnger_4")) - { + + public int seetingAngerRecourse_3(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "seetingAnger_4")) { buff.applyBuff(self, self, "seethingAnger_4"); } return SCRIPT_CONTINUE; } - public int petSnareAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("petSnareAttack", self, target, params, "", "")) - { + + public int petSnareAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("petSnareAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int petPinAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("petPinAttack", self, target, params, "", "")) - { + + public int petPinAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("petPinAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int petBleedAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("petBleedAttack", self, target, params, "", "")) - { + + public int petBleedAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("petBleedAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int petIntimidateAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("petIntimidateAttack", self, target, params, "", "")) - { + + public int petIntimidateAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("petIntimidateAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int petStunAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("petStunAttack", self, target, params, "", "")) - { + + public int petStunAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("petStunAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int petBlindAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("petBlindAttack", self, target, params, "", "")) - { + + public int petBlindAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("petBlindAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int petKnockdownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("petKnockdownAttack", self, target, params, "", "")) - { + + public int petKnockdownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("petKnockdownAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int petDefenseBreakAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("petDefenseBreakAttack", self, target, params, "", "")) - { + + public int petDefenseBreakAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("petDefenseBreakAttack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int insidiousMalady(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("insidiousMalady", self, target, params, "", "")) - { + + public int insidiousMalady(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("insidiousMalady", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int euphoria(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("euphoria", self, target, params, "", "")) - { + + public int euphoria(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("euphoria", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int rampage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("rampage", self, target, params, "", "")) - { + + public int rampage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("rampage", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int seethingAnger(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("seethingAnger", self, target, params, "", "")) - { + + public int seethingAnger(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("seethingAnger", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int cloakOfLava(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("cloakOfLava", self, target, params, "", "")) - { + + public int cloakOfLava(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("cloakOfLava", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sherKarRage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sherKarRage", self, target, params, "", "")) - { + + public int sherKarRage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sherKarRage", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int decrepitStrike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("decrepitStrike", self, target, params, "", "")) - { + + public int decrepitStrike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("decrepitStrike", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sk_shockWave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sk_shockWave", self, target, params, "", "")) - { + + public int sk_shockWave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sk_shockWave", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_charge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_charge_1", self, target, params, "", "", true)) - { + + public int bm_charge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_charge_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_charge_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_charge_2", self, target, params, "", "", true)) - { + + public int bm_charge_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_charge_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_charge_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_charge_3", self, target, params, "", "", true)) - { + + public int bm_charge_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_charge_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_charge_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_charge_4", self, target, params, "", "", true)) - { + + public int bm_charge_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_charge_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_charge_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_charge_5", self, target, params, "", "", true)) - { + + public int bm_charge_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_charge_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_trample(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_trample", self, target, params, "", "", true)) - { + + public int bm_trample(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_trample", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bite_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bite_1", self, target, params, "", "", true)) - { + + public int bm_bite_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bite_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bite_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bite_2", self, target, params, "", "", true)) - { + + public int bm_bite_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bite_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bite_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bite_3", self, target, params, "", "", true)) - { + + public int bm_bite_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bite_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bite_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bite_4", self, target, params, "", "", true)) - { + + public int bm_bite_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bite_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bite_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bite_5", self, target, params, "", "", true)) - { + + public int bm_bite_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bite_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_puncture_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_puncture_1", self, target, params, "", "", true)) - { + + public int bm_puncture_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_puncture_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_puncture_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_puncture_2", self, target, params, "", "", true)) - { + + public int bm_puncture_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_puncture_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_puncture_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_puncture_3", self, target, params, "", "", true)) - { + + public int bm_puncture_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_puncture_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_siphon_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_siphon_1", self, target, params, "", "", true)) - { + + public int bm_siphon_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_siphon_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_siphon_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_siphon_2", self, target, params, "", "", true)) - { + + public int bm_siphon_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_siphon_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_siphon_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_siphon_3", self, target, params, "", "", true)) - { + + public int bm_siphon_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_siphon_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_siphon_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_siphon_4", self, target, params, "", "", true)) - { + + public int bm_siphon_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_siphon_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_siphon_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_siphon_5", self, target, params, "", "", true)) - { + + public int bm_siphon_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_siphon_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_hamstring_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_hamstring_1", self, target, params, "", "", true)) - { + + public int bm_hamstring_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_hamstring_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_hamstring_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_hamstring_2", self, target, params, "", "", true)) - { + + public int bm_hamstring_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_hamstring_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_hamstring_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_hamstring_3", self, target, params, "", "", true)) - { + + public int bm_hamstring_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_hamstring_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_hamstring_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_hamstring_4", self, target, params, "", "", true)) - { + + public int bm_hamstring_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_hamstring_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_hamstring_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_hamstring_5", self, target, params, "", "", true)) - { + + public int bm_hamstring_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_hamstring_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_claw_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_claw_1", self, target, params, "", "", true)) - { + + public int bm_claw_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_claw_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_claw_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_claw_2", self, target, params, "", "", true)) - { + + public int bm_claw_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_claw_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_claw_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_claw_3", self, target, params, "", "", true)) - { + + public int bm_claw_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_claw_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_claw_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_claw_4", self, target, params, "", "", true)) - { + + public int bm_claw_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_claw_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_claw_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_claw_5", self, target, params, "", "", true)) - { + + public int bm_claw_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_claw_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_slash_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_slash_1", self, target, params, "", "", true)) - { + + public int bm_slash_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_slash_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_slash_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_slash_2", self, target, params, "", "", true)) - { + + public int bm_slash_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_slash_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_slash_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_slash_3", self, target, params, "", "", true)) - { + + public int bm_slash_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_slash_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_slash_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_slash_4", self, target, params, "", "", true)) - { + + public int bm_slash_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_slash_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_slash_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_slash_5", self, target, params, "", "", true)) - { + + public int bm_slash_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_slash_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_flank_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_flank_1", self, target, params, "", "", true)) - { + + public int bm_flank_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_flank_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_flank_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_flank_2", self, target, params, "", "", true)) - { + + public int bm_flank_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_flank_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_flank_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_flank_3", self, target, params, "", "", true)) - { + + public int bm_flank_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_flank_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bolster_armor_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bolster_armor_1", self, target, params, "", "", true)) - { + + public int bm_bolster_armor_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bolster_armor_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bolster_armor_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bolster_armor_2", self, target, params, "", "", true)) - { + + public int bm_bolster_armor_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bolster_armor_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bolster_armor_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bolster_armor_3", self, target, params, "", "", true)) - { + + public int bm_bolster_armor_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bolster_armor_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bolster_armor_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bolster_armor_4", self, target, params, "", "", true)) - { + + public int bm_bolster_armor_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bolster_armor_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_bolster_armor_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_bolster_armor_5", self, target, params, "", "", true)) - { + + public int bm_bolster_armor_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_bolster_armor_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_dampen_pain_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_dampen_pain_1", self, target, params, "", "", true)) - { + + public int bm_dampen_pain_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_dampen_pain_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_dampen_pain_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_dampen_pain_2", self, target, params, "", "", true)) - { + + public int bm_dampen_pain_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_dampen_pain_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_dampen_pain_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_dampen_pain_3", self, target, params, "", "", true)) - { + + public int bm_dampen_pain_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_dampen_pain_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_dampen_pain_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_dampen_pain_4", self, target, params, "", "", true)) - { + + public int bm_dampen_pain_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_dampen_pain_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_dampen_pain_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_dampen_pain_5", self, target, params, "", "", true)) - { + + public int bm_dampen_pain_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_dampen_pain_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_shield_master(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_shield_master", self, target, params, "", "", true)) - { + + public int bm_shield_master(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_shield_master", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_deflective_hide(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_deflective_hide", self, target, params, "", "", true)) - { + + public int bm_deflective_hide(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_deflective_hide", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_defensive_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_defensive_1", self, target, params, "", "", true)) - { + + public int bm_defensive_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_defensive_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_defensive_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_defensive_2", self, target, params, "", "", true)) - { + + public int bm_defensive_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_defensive_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_defensive_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_defensive_3", self, target, params, "", "", true)) - { + + public int bm_defensive_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_defensive_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_defensive_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_defensive_4", self, target, params, "", "", true)) - { + + public int bm_defensive_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_defensive_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_defensive_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_defensive_5", self, target, params, "", "", true)) - { + + public int bm_defensive_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_defensive_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_poison_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_poison_1", self, target, params, "", "", true)) - { + + public int bm_damage_poison_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_poison_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_poison_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_poison_2", self, target, params, "", "", true)) - { + + public int bm_damage_poison_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_poison_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_poison_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_poison_3", self, target, params, "", "", true)) - { + + public int bm_damage_poison_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_poison_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_poison_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_poison_4", self, target, params, "", "", true)) - { + + public int bm_damage_poison_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_poison_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_poison_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_poison_5", self, target, params, "", "", true)) - { + + public int bm_damage_poison_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_poison_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_disease_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_disease_1", self, target, params, "", "", true)) - { + + public int bm_damage_disease_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_disease_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_disease_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_disease_2", self, target, params, "", "", true)) - { + + public int bm_damage_disease_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_disease_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_disease_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_disease_3", self, target, params, "", "", true)) - { + + public int bm_damage_disease_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_disease_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_disease_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_disease_4", self, target, params, "", "", true)) - { + + public int bm_damage_disease_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_disease_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_damage_disease_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_damage_disease_5", self, target, params, "", "", true)) - { + + public int bm_damage_disease_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_damage_disease_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_paralytic_poison(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_paralytic_poison", self, target, params, "", "", true)) - { + + public int bm_paralytic_poison(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_paralytic_poison", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_enfeeble_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_enfeeble_1", self, target, params, "", "", true)) - { + + public int bm_enfeeble_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_enfeeble_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_enfeeble_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_enfeeble_2", self, target, params, "", "", true)) - { + + public int bm_enfeeble_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_enfeeble_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_enfeeble_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_enfeeble_3", self, target, params, "", "", true)) - { + + public int bm_enfeeble_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_enfeeble_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_enfeeble_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_enfeeble_4", self, target, params, "", "", true)) - { + + public int bm_enfeeble_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_enfeeble_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_enfeeble_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_enfeeble_5", self, target, params, "", "", true)) - { + + public int bm_enfeeble_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_enfeeble_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_preperation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_preperation", self, target, params, "", "", true)) - { + + public int bm_preperation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_preperation", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_stomp_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_stomp_1", self, target, params, "", "", true)) - { + + public int bm_stomp_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_stomp_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_stomp_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_stomp_2", self, target, params, "", "", true)) - { + + public int bm_stomp_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_stomp_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_stomp_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_stomp_3", self, target, params, "", "", true)) - { + + public int bm_stomp_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_stomp_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_stomp_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_stomp_4", self, target, params, "", "", true)) - { + + public int bm_stomp_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_stomp_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_stomp_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_stomp_5", self, target, params, "", "", true)) - { + + public int bm_stomp_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_stomp_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_shaken_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_shaken_1", self, target, params, "", "", true)) - { + + public int bm_shaken_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_shaken_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_shaken_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_shaken_2", self, target, params, "", "", true)) - { + + public int bm_shaken_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_shaken_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_shaken_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_shaken_3", self, target, params, "", "", true)) - { + + public int bm_shaken_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_shaken_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_wing_buffet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_wing_buffet_1", self, target, params, "", "", true)) - { + + public int bm_wing_buffet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_wing_buffet_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_wing_buffet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_wing_buffet_2", self, target, params, "", "", true)) - { + + public int bm_wing_buffet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_wing_buffet_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_wing_buffet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_wing_buffet_3", self, target, params, "", "", true)) - { + + public int bm_wing_buffet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_wing_buffet_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_wing_buffet_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_wing_buffet_4", self, target, params, "", "", true)) - { + + public int bm_wing_buffet_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_wing_buffet_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_wing_buffet_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_wing_buffet_5", self, target, params, "", "", true)) - { + + public int bm_wing_buffet_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_wing_buffet_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_spit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_spit_1", self, target, params, "", "", true)) - { + + public int bm_spit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_spit_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_spit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_spit_2", self, target, params, "", "", true)) - { + + public int bm_spit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_spit_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_spit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_spit_3", self, target, params, "", "", true)) - { + + public int bm_spit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_spit_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_spit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_spit_4", self, target, params, "", "", true)) - { + + public int bm_spit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_spit_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_spit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_spit_5", self, target, params, "", "", true)) - { + + public int bm_spit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_spit_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_kick_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_kick_1", self, target, params, "", "", true)) - { + + public int bm_kick_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_kick_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_kick_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_kick_2", self, target, params, "", "", true)) - { + + public int bm_kick_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_kick_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_kick_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_kick_3", self, target, params, "", "", true)) - { + + public int bm_kick_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_kick_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_kick_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_kick_4", self, target, params, "", "", true)) - { + + public int bm_kick_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_kick_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_kick_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_kick_5", self, target, params, "", "", true)) - { + + public int bm_kick_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_kick_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_enrage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_enrage", self, target, params, "", "", true)) - { + + public int bm_enrage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_enrage", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_frenzy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_frenzy", self, target, params, "", "", true)) - { + + public int bm_frenzy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_frenzy", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int bm_provoke_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_provoke_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self); - if (!ai_lib.isTauntable(target)) - { + if (!ai_lib.isTauntable(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_provoke_1", self, target, params, "", "", true)) - { + if (!combatStandardAction("bm_provoke_1", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } beast_lib.doBmProvokeCommand(beast, target, 1); return SCRIPT_CONTINUE; } - public int bm_provoke_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_provoke_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self); - if (!ai_lib.isTauntable(target)) - { + if (!ai_lib.isTauntable(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_provoke_2", self, target, params, "", "", true)) - { + if (!combatStandardAction("bm_provoke_2", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } beast_lib.doBmProvokeCommand(beast, target, 2); return SCRIPT_CONTINUE; } - public int bm_provoke_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_provoke_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self); - if (!ai_lib.isTauntable(target)) - { + if (!ai_lib.isTauntable(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_provoke_3", self, target, params, "", "", true)) - { + if (!combatStandardAction("bm_provoke_3", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } beast_lib.doBmProvokeCommand(beast, target, 3); return SCRIPT_CONTINUE; } - public int bm_provoke_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_provoke_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self); - if (!ai_lib.isTauntable(target)) - { + if (!ai_lib.isTauntable(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_provoke_4", self, target, params, "", "", true)) - { + if (!combatStandardAction("bm_provoke_4", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } beast_lib.doBmProvokeCommand(beast, target, 4); return SCRIPT_CONTINUE; } - public int bm_provoke_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bm_provoke_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self); - if (!ai_lib.isTauntable(target)) - { + if (!ai_lib.isTauntable(target)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("bm_provoke_5", self, target, params, "", "", true)) - { + if (!combatStandardAction("bm_provoke_5", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } beast_lib.doBmProvokeCommand(beast, target, 5); return SCRIPT_CONTINUE; } - public int fs_taunt(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int fs_taunt(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { int stanceBuff = buff.getBuffOnTargetFromGroup(self, "fsDefStance"); - if (stanceBuff == 0) - { + if (stanceBuff == 0) { return SCRIPT_OVERRIDE; } target = isIdValid(getIntendedTarget(self)) ? getIntendedTarget(self) : getTarget(self); - if (!isIdValid(target) || !exists(target)) - { + if (!isIdValid(target) || !exists(target)) { return SCRIPT_OVERRIDE; } - if (!ai_lib.isTauntable(target)) - { + if (!ai_lib.isTauntable(target)) { return SCRIPT_OVERRIDE; } - if (isPlayer(target) || beast_lib.isBeast(target)) - { + if (isPlayer(target) || beast_lib.isBeast(target)) { return SCRIPT_OVERRIDE; } obj_id topHateTarget = getHateTarget(target); - if (topHateTarget == self) - { + if (topHateTarget == self) { return SCRIPT_CONTINUE; } - if (!combatStandardAction("fs_taunt", self, target, params, "", "", false)) - { + if (!combatStandardAction("fs_taunt", self, target, params, "", "", false)) { return SCRIPT_OVERRIDE; } combat.dsFsTaunt(self, target); return SCRIPT_CONTINUE; } - public int togglePetAutoRepeatOn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int togglePetAutoRepeatOn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { beast_lib.setAbilityAutoRepeat(beast_lib.getBeastOnPlayer(self), params); return SCRIPT_CONTINUE; } - public int togglePetAutoRepeatOff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int togglePetAutoRepeatOff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { beast_lib.unsetAbilityAutoRepeat(beast_lib.getBeastOnPlayer(self), params); return SCRIPT_CONTINUE; } - public int toggleBeastDefensive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int toggleBeastDefensive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); - if (!isIdValid(beast) || !exists(beast)) - { + if (!isIdValid(beast) || !exists(beast)) { return SCRIPT_OVERRIDE; } - if (isDead(beast)) - { + if (isDead(beast)) { sendSystemMessage(self, beast_lib.SID_BEAST_CANT_WHEN_DEAD); return SCRIPT_OVERRIDE; } beast_lib.setBeastDefensive(beast, self, true); return SCRIPT_CONTINUE; } - public int toggleBeastPassive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int toggleBeastPassive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id beast = beast_lib.getBeastOnPlayer(self); - if (!isIdValid(beast) || !exists(beast)) - { + if (!isIdValid(beast) || !exists(beast)) { return SCRIPT_OVERRIDE; } - if (isDead(beast)) - { + if (isDead(beast)) { sendSystemMessage(self, beast_lib.SID_BEAST_CANT_WHEN_DEAD); return SCRIPT_OVERRIDE; } beast_lib.setBeastDefensive(beast, self, false); return SCRIPT_CONTINUE; } - public int bm_forage_enzyme_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_forage_enzyme_buff", self, target, params, "", "", true)) - { + + public int bm_forage_enzyme_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_forage_enzyme_buff", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int devastating_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("devastating_strike", self, target, params, "", "", true)) - { + + public int devastating_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("devastating_strike", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int human_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("human_ability_1", self, target, params, "", "")) - { + + public int human_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("human_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } showFlyText(self, new string_id("spam", "fly_human_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int wookiee_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("wookiee_ability_1", self, target, params, "", "")) - { + + public int wookiee_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("wookiee_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } showFlyText(self, new string_id("spam", "fly_wookiee_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int rodian_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("rodian_ability_1", self, target, params, "", "")) - { + + public int rodian_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("rodian_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } showFlyText(self, new string_id("spam", "fly_rodian_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int bothan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.canPerformSmokeGrenade(self) || !combatStandardAction("bothan_ability_1", self, target, params, "", "") || !buff.canApplyBuff(target, "invis_bothan_ability_1")) - { + + public int bothan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.canPerformSmokeGrenade(self) || !combatStandardAction("bothan_ability_1", self, target, params, "", "") || !buff.canApplyBuff(target, "invis_bothan_ability_1")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ithorian_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ithorian_ability_1", self, target, params, "", "")) - { + + public int ithorian_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ithorian_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float level = getLevel(self); @@ -11926,37 +10174,33 @@ public class combat_actions extends script.systems.combat.combat_base showFlyText(self, new string_id("spam", "fly_ithorian_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int twilek_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("twilek_ability_1", self, target, params, "", "")) - { + + public int twilek_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("twilek_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } showFlyText(self, new string_id("spam", "fly_twilek_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int sullustan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sullustan_ability_1", self, target, params, "", "")) - { + + public int sullustan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sullustan_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } showFlyText(self, new string_id("spam", "fly_sullustan_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int moncal_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("moncal_ability_1", self, target, params, "", "")) - { + + public int moncal_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("moncal_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } showFlyText(self, new string_id("spam", "fly_moncal_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int trandoshan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("trandoshan_ability_1", self, target, params, "", "")) - { + + public int trandoshan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("trandoshan_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } int level = getLevel(self); @@ -11965,10 +10209,9 @@ public class combat_actions extends script.systems.combat.combat_base showFlyText(self, new string_id("spam", "fly_trandoshan_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int zabrak_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("zabrak_ability_1", self, target, params, "", "")) - { + + public int zabrak_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("zabrak_ability_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } int level = getLevel(self); @@ -11990,36 +10233,32 @@ public class combat_actions extends script.systems.combat.combat_base showFlyText(self, new string_id("spam", "fly_zabrak_ability_1"), 1.5f, colors.LEMONCHIFFON); return SCRIPT_CONTINUE; } - public int gcw_reward_comlink(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!faction_perk.executeComlinkReinforcements(self)) - { + + public int gcw_reward_comlink(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!faction_perk.executeComlinkReinforcements(self)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int trample_random(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("trample_random", self, target, params, "", "")) - { + + public int trample_random(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("trample_random", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } setLocation(self, getLocation(utils.getObjIdScriptVar(self, combat.CHARGE_TARGET))); return SCRIPT_CONTINUE; } - public int bodyguard(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bodyguard", self, target, params, "", "")) - { + + public int bodyguard(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bodyguard", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int nandina_heal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int nandina_heal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id[] spawn_id = trial.getObjectsInDungeonWithObjVar(trial.getTop(self), "spawn_id"); - if (spawn_id == null || spawn_id.length == 0) - { + if (spawn_id == null || spawn_id.length == 0) { return SCRIPT_CONTINUE; } obj_id gorvo = null; @@ -12028,28 +10267,26 @@ public class combat_actions extends script.systems.combat.combat_base gorvo = obj_id; } } - if (!isIdValid(gorvo) || ai_lib.isDead(gorvo)) - { + if (!isIdValid(gorvo) || ai_lib.isDead(gorvo)) { return SCRIPT_CONTINUE; } int healingReduction = getEnhancedSkillStatisticModifierUncapped(gorvo, "expertise_healing_reduction"); float redux = healingReduction / (healingReduction + 75.0f); - int toHeal = (int)(50000.0f - (50000.0f * redux)); + int toHeal = (int) (50000.0f - (50000.0f * redux)); toHeal = toHeal < 1 ? 1 : toHeal; healing.healDamage(gorvo, HEALTH, toHeal); playClientEffectLoc(gorvo, "clienteffect/bacta_bomb.cef", getLocation(target), 0); return SCRIPT_CONTINUE; } - public int lelli_bleed(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("lelli_bleed", self, target, params, "", "")) - { + + public int lelli_bleed(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("lelli_bleed", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int lelli_ambush(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int lelli_ambush(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { setInvulnerable(self, true); setCreatureCoverVisibility(self, false); utils.setScriptVar(self, combat.DEFAULT_ATTACK_OVERRIDE, "null_attack"); @@ -12057,42 +10294,37 @@ public class combat_actions extends script.systems.combat.combat_base messageTo(self, "performAmbush", trial.getSessionDict(self, "ambush"), 2.0f, false); return SCRIPT_CONTINUE; } - public int ig88_bomb_explode(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ig88_bomb_explode", self, target, params, "", "", true) && !utils.hasScriptVar(self, "exploded")) - { + + public int ig88_bomb_explode(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ig88_bomb_explode", self, target, params, "", "", true) && !utils.hasScriptVar(self, "exploded")) { return SCRIPT_OVERRIDE; } utils.setScriptVar(self, "exploded", 1); obj_id dungeon = getTopMostContainer(self); - if (isIdValid(dungeon)) - { + if (isIdValid(dungeon)) { dictionary messageParams = trial.getSessionDict(dungeon); messageParams.put("npc", self); messageTo(dungeon, "killNPC", messageParams, 0, false); } return SCRIPT_CONTINUE; } - public int ig88_droideka_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ig88_droideka_shield", self, target, params, "", "")) - { + + public int ig88_droideka_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ig88_droideka_shield", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ig88_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ig88_shield", self, target, params, "", "")) - { + + public int ig88_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ig88_shield", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ig88_droideka_electrify(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ig88_droideka_electrify", self, target, params, "", "")) - { + + public int ig88_droideka_electrify(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ig88_droideka_electrify", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } setHate(self, target, 1); @@ -12102,88 +10334,76 @@ public class combat_actions extends script.systems.combat.combat_base removeObjVar(self, "oneShotActionComplete"); return SCRIPT_CONTINUE; } - public int ig88_flame_thrower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target)) - { + + public int ig88_flame_thrower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target)) { return SCRIPT_OVERRIDE; } location where = getLocation(target); obj_id[] defenders = pvpGetTargetsInCone(self, self, where, 64, 10); Vector filteredDefenders = new Vector(); filteredDefenders.setSize(0); - if (defenders != null && defenders.length > 0) - { + if (defenders != null && defenders.length > 0) { for (obj_id defender : defenders) { if (isIdValid(defender) && !isDead(defender) && isPlayer(defender)) { filteredDefenders = utils.addElement(filteredDefenders, defender); } } } - if (filteredDefenders != null && filteredDefenders.size() > 0) - { - target = ((obj_id)filteredDefenders.get(rand(0, filteredDefenders.size() - 1))); + if (filteredDefenders != null && filteredDefenders.size() > 0) { + target = ((obj_id) filteredDefenders.get(rand(0, filteredDefenders.size() - 1))); } - if (!combatStandardAction("ig88_flame_thrower", self, target, params, "", "")) - { + if (!combatStandardAction("ig88_flame_thrower", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ig88_flame_thrower_vertical(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target)) - { + + public int ig88_flame_thrower_vertical(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target)) { return SCRIPT_OVERRIDE; } location where = getLocation(target); obj_id[] defenders = pvpGetTargetsInCone(self, self, where, 64, 10); Vector filteredDefenders = new Vector(); filteredDefenders.setSize(0); - if (defenders != null && defenders.length > 0) - { + if (defenders != null && defenders.length > 0) { for (obj_id defender : defenders) { if (isIdValid(defender) && !isDead(defender) && isPlayer(defender)) { filteredDefenders = utils.addElement(filteredDefenders, defender); } } } - if (filteredDefenders != null && filteredDefenders.size() > 0) - { - target = ((obj_id)filteredDefenders.get(rand(0, filteredDefenders.size() - 1))); + if (filteredDefenders != null && filteredDefenders.size() > 0) { + target = ((obj_id) filteredDefenders.get(rand(0, filteredDefenders.size() - 1))); } - if (!combatStandardAction("ig88_flame_thrower_vertical", self, target, params, "", "")) - { + if (!combatStandardAction("ig88_flame_thrower_vertical", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public obj_id getRocketTarget(obj_id self, obj_id target) throws InterruptedException - { + + public obj_id getRocketTarget(obj_id self, obj_id target) throws InterruptedException { obj_id dungeon = getTopMostContainer(self); - if (!isIdValid(dungeon)) - { + if (!isIdValid(dungeon)) { return target; } obj_id[] targets = trial.getNonStealthedTargetsInCell(dungeon, "r1"); - if (targets == null || targets.length <= 0) - { + if (targets == null || targets.length <= 0) { dictionary sessionDict = new dictionary(); messageTo(dungeon, "ig88_failed", sessionDict, 0, false); return target; } target = targets[rand(0, targets.length - 1)]; - if (!isIdValid(target)) - { + if (!isIdValid(target)) { debugSpeakMsg(self, "I couldn't find a valid target."); return target; } return target; } - public int gcw_rocket_launch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ig88_rocket_launch", self, target, params, "", "")) - { + + public int gcw_rocket_launch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ig88_rocket_launch", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } playClientEffectObj(self, "appearance/pt_gcw_rocket_launch.prt", self, ""); @@ -12196,26 +10416,24 @@ public class combat_actions extends script.systems.combat.combat_base removeObjVar(self, "oneShotActionComplete"); return SCRIPT_CONTINUE; } - public int gcw_rocket_launcher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ig88_rocket_launcher", self, target, params, "", "")) - { + + public int gcw_rocket_launcher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ig88_rocket_launcher", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int gcw_rocket_hit(obj_id self, dictionary params) throws InterruptedException - { + + public int gcw_rocket_hit(obj_id self, dictionary params) throws InterruptedException { location loc = params.getLocation("loc"); playClientEffectLoc(self, "appearance/pt_gcw_rocket_hit.prt", loc, 0.0f); return SCRIPT_CONTINUE; } - public int ig88_rocket_launch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int ig88_rocket_launch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { target = getRocketTarget(self, target); LOG("combat_actions", "gcw ig88_rocket_launch 1"); - if (!combatStandardAction("ig88_rocket_launch", self, target, params, "", "")) - { + if (!combatStandardAction("ig88_rocket_launch", self, target, params, "", "")) { LOG("combat_actions", "gcw ig88_rocket_launch FAIL self: " + self + " target: " + target + " params: " + params); return SCRIPT_OVERRIDE; } @@ -12229,91 +10447,83 @@ public class combat_actions extends script.systems.combat.combat_base removeObjVar(self, "oneShotActionComplete"); return SCRIPT_CONTINUE; } - public int ig88_rocket_launcher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ig88_rocket_launcher", self, target, params, "", "")) - { + + public int ig88_rocket_launcher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ig88_rocket_launcher", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ig88_rocket_hit(obj_id self, dictionary params) throws InterruptedException - { + + public int ig88_rocket_hit(obj_id self, dictionary params) throws InterruptedException { location loc = params.getLocation("loc"); playClientEffectLoc(self, "appearance/pt_ig88_rocket_hit.prt", loc, 0.0f); return SCRIPT_CONTINUE; } - public int ig88_shockwave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int ig88_shockwave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location loc = getLocation(self); String strLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("ig88_shockwave", self, target, strLoc, "", "")) - { + if (!combatStandardAction("ig88_shockwave", self, target, strLoc, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ig88_grenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int ig88_grenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location loc = getLocation(self); String strLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("ig88_grenade", self, target, strLoc, "", "")) - { + if (!combatStandardAction("ig88_grenade", self, target, strLoc, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int nandina_fester(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("nandina_fester", self, target, params, "", "")) - { + + public int nandina_fester(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("nandina_fester", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int lelli_mine(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int lelli_mine(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id[] hateList = getHateList(self); Vector vectorList = new Vector(Arrays.asList(hateList)); vectorList = utils.shuffleArray(vectorList); - for (int i = 0; i < hateList.length && i < 4; i++) - { + for (int i = 0; i < hateList.length && i < 4; i++) { combatStandardAction("lelli_mine", self, hateList[i], params, "", ""); } return SCRIPT_CONTINUE; } - public int lelli_chain_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("lelli_chain_cleave", self, target, params, "", "")) - { + + public int lelli_chain_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("lelli_chain_cleave", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kimaru_storm_pulse(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kimaru_storm_pulse", self, target, params, "", "")) - { + + public int kimaru_storm_pulse(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kimaru_storm_pulse", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kimaru_generate_storm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int kimaru_generate_storm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id[] hateList = getHateList(self); location loc1 = new location(-63.6f, 16.0f, 36.4f, "dungeon1", getCellId(trial.getTop(self), "r2")); location loc2 = new location(-69.8f, 15.0f, 9.6f, "dungeon1", getCellId(trial.getTop(self), "r2")); location loc3 = new location(-44.4f, 9.0f, 1.5f, "dungeon1", getCellId(trial.getTop(self), "r2")); location loc4 = new location(-42.7f, 10.3f, 20.9f, "dungeon1", getCellId(trial.getTop(self), "r2")); - location[] locList = - { - loc1, - loc2, - loc3, - loc4 - }; - for (int i = 0; i < 4; i++) - { + location[] locList + = { + loc1, + loc2, + loc3, + loc4 + }; + for (int i = 0; i < 4; i++) { obj_id storm = create.object("kimaru_force_storm", locList[i]); playClientEffectLoc(hateList[0], "appearance/pt_kimaru_force_storm_birth.prt", locList[i], 0.0f); setMaster(storm, self); @@ -12321,163 +10531,144 @@ public class combat_actions extends script.systems.combat.combat_base } return SCRIPT_CONTINUE; } - public int kimaru_flame_patch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int kimaru_flame_patch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id[] hateList = getHateList(self); location loc = getLocation(hateList[rand(0, hateList.length - 1)]); String targetLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("kimaru_flame_patch", self, target, targetLoc, "", "")) - { + if (!combatStandardAction("kimaru_flame_patch", self, target, targetLoc, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int heat_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("heat_aspect", self, target, params, "", "")) - { + + public int heat_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("heat_aspect", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int acid_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("acid_aspect", self, target, params, "", "")) - { + + public int acid_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("acid_aspect", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int elec_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("elec_aspect", self, target, params, "", "")) - { + + public int elec_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("elec_aspect", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int cold_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("cold_aspect", self, target, params, "", "")) - { + + public int cold_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("cold_aspect", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int axkva_contagion_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("axkva_contagion_bomb", self, target, params, "", "")) - { + + public int axkva_contagion_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("axkva_contagion_bomb", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int axkva_contagion(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("axkva_contagion", self, target, params, "", "")) - { + + public int axkva_contagion(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("axkva_contagion", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int axkva_force_storm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("axkva_force_storm", self, target, params, "", "")) - { + + public int axkva_force_storm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("axkva_force_storm", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int axkva_whirl_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("axkva_whirl_blast", self, target, params, "", "")) - { + + public int axkva_whirl_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("axkva_whirl_blast", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int suin_rampage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("suin_rampage", self, target, params, "", "")) - { + + public int suin_rampage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("suin_rampage", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int suin_healing_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("suin_healing_debuff", self, target, params, "", "")) - { + + public int suin_healing_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("suin_healing_debuff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int axkva_warden_flame(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("axkva_warden_flame", self, target, params, "", "")) - { + + public int axkva_warden_flame(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("axkva_warden_flame", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int macy_ywing_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("macy_ywing_bomb", self, target, params, "", "")) - { + + public int macy_ywing_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("macy_ywing_bomb", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kav_tuken_killer(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kav_tuken_killer", self, target, params, "", "")) - { + + public int kav_tuken_killer(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kav_tuken_killer", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int king_rend(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("king_rend", self, target, params, "", "")) - { + + public int king_rend(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("king_rend", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int king_head_crack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("king_head_crack", self, target, params, "", "")) - { + + public int king_head_crack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("king_head_crack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int king_sandstorm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("king_sandstorm", self, target, params, "", "")) - { + + public int king_sandstorm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("king_sandstorm", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int axkva_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("axkva_drain", self, target, params, "", "")) - { + + public int axkva_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("axkva_drain", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int axkva_crystalize(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int axkva_crystalize(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id[] hateList = getHateList(self); obj_id topHate = getHateTarget(self); obj_id target1 = null; obj_id target2 = null; Vector targets = new Vector(); targets.setSize(0); - if (hateList == null || hateList.length == 0) - { + if (hateList == null || hateList.length == 0) { return SCRIPT_CONTINUE; } for (obj_id obj_id : hateList) { @@ -12485,289 +10676,251 @@ public class combat_actions extends script.systems.combat.combat_base targets.add(obj_id); } } - if (targets == null || targets.size() == 0) - { - if (!buff.hasBuff(topHate, "axkva_crystalize")) - { + if (targets == null || targets.size() == 0) { + if (!buff.hasBuff(topHate, "axkva_crystalize")) { target1 = topHate; } - } - else - { - target1 = ((obj_id)targets.get(rand(0, targets.size() - 1))); + } else { + target1 = ((obj_id) targets.get(rand(0, targets.size() - 1))); targets.remove(target1); - if (targets.size() > 0) - { - target2 = ((obj_id)targets.get(rand(0, targets.size() - 1))); + if (targets.size() > 0) { + target2 = ((obj_id) targets.get(rand(0, targets.size() - 1))); } } - if (isIdValid(target1)) - { + if (isIdValid(target1)) { utils.setScriptVar(target1, "axkva_min", self); buff.applyBuff(target1, self, "axkva_crystalize"); } - if (isIdValid(target2)) - { + if (isIdValid(target2)) { utils.setScriptVar(target2, "axkva_min", self); buff.applyBuff(target2, self, "axkva_crystalize"); } return SCRIPT_CONTINUE; } - public int stasis_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "stasis_recourse")) - { + + public int stasis_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "stasis_recourse")) { buff.applyBuff(self, self, "stasis_recourse"); } return SCRIPT_CONTINUE; } - public int grenadier_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int grenadier_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location loc = getLocation(target); String targetLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("grenadier_cold", self, target, targetLoc, "", "")) - { + if (!combatStandardAction("grenadier_cold", self, target, targetLoc, "", "")) { return SCRIPT_OVERRIDE; } clearOneShotAction(self); return SCRIPT_CONTINUE; } - public int grenadier_heat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int grenadier_heat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location loc = getLocation(target); String targetLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("grenadier_heat", self, target, targetLoc, "", "")) - { + if (!combatStandardAction("grenadier_heat", self, target, targetLoc, "", "")) { return SCRIPT_OVERRIDE; } clearOneShotAction(self); return SCRIPT_CONTINUE; } - public int grenadier_acid(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int grenadier_acid(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location loc = getLocation(target); String targetLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("grenadier_acid", self, target, targetLoc, "", "")) - { + if (!combatStandardAction("grenadier_acid", self, target, targetLoc, "", "")) { return SCRIPT_OVERRIDE; } clearOneShotAction(self); return SCRIPT_CONTINUE; } - public int grenadier_kinetic(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int grenadier_kinetic(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location loc = getLocation(target); String targetLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("grenadier_kinetic", self, target, targetLoc, "", "")) - { + if (!combatStandardAction("grenadier_kinetic", self, target, targetLoc, "", "")) { return SCRIPT_OVERRIDE; } clearOneShotAction(self); return SCRIPT_CONTINUE; } - public void clearOneShotAction(obj_id self) throws InterruptedException - { + + public void clearOneShotAction(obj_id self) throws InterruptedException { setObjVar(self, "ai.combat.oneShotAction", "non_attack"); } - public int krix_burn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("krix_burn", self, target, params, "", "")) - { + + public int krix_burn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("krix_burn", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ito_nerve_gas(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ito_nerve_gas", self, target, params, "", "")) - { + + public int ito_nerve_gas(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ito_nerve_gas", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } playClientEffectLoc(self, "appearance/pt_sd_ito_nerve_gas.prt", getLocation(self), 0); return SCRIPT_CONTINUE; } - public int kenkirk_droid_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int kenkirk_droid_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location loc = getLocation(target); String strLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("kenkirk_droid_blast", self, target, strLoc, "", "")) - { + if (!combatStandardAction("kenkirk_droid_blast", self, target, strLoc, "", "")) { return SCRIPT_OVERRIDE; } playClientEffectLoc(target, "appearance/pt_sd_kenkirk_hallway_strike.prt", getLocation(target), 0.0f); return SCRIPT_CONTINUE; } - public int sd_obliterate(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sd_obliterate", self, target, params, "", "")) - { + + public int sd_obliterate(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sd_obliterate", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int krix_megaburn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("krix_megaburn", self, target, params, "", "")) - { + + public int krix_megaburn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("krix_megaburn", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int krix_megapatch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("krix_megapatch", self, target, params, "", "")) - { + + public int krix_megapatch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("krix_megapatch", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int vicious_swing(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("vicious_swing", self, target, params, "", "")) - { + + public int vicious_swing(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("vicious_swing", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_action_regen(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_action_regen", self, target, params, "", "")) - { + + public int sp_action_regen(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_action_regen", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sm_modify_pistol_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int sm_modify_pistol_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id module = utils.getStaticItemInInventory(self, "item_reward_modify_pistol_01_01"); - if (!isIdValid(module) || getCount(module) <= 0) - { + if (!isIdValid(module) || getCount(module) <= 0) { sendSystemMessage(self, new string_id("spam", "pistol_module_missing")); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3")) - { + if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3")) { sendSystemMessage(self, new string_id("spam", "pistol_buff_exists")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_modify_pistol_1", self, target, params, "", "")) - { + if (!combatStandardAction("sm_modify_pistol_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doAnimationAction(self, "reload"); decrementCount(module); return SCRIPT_CONTINUE; } - public int sm_modify_pistol_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int sm_modify_pistol_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id module = utils.getStaticItemInInventory(self, "item_reward_modify_pistol_01_01"); - if (!isIdValid(module) || getCount(module) <= 0) - { + if (!isIdValid(module) || getCount(module) <= 0) { sendSystemMessage(self, new string_id("spam", "pistol_module_missing")); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3")) - { + if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3")) { sendSystemMessage(self, new string_id("spam", "pistol_buff_exists")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_modify_pistol_2", self, target, params, "", "")) - { + if (!combatStandardAction("sm_modify_pistol_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doAnimationAction(self, "reload"); decrementCount(module); return SCRIPT_CONTINUE; } - public int sm_modify_pistol_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int sm_modify_pistol_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id module = utils.getStaticItemInInventory(self, "item_reward_modify_pistol_01_01"); - if (!isIdValid(module) || getCount(module) <= 0) - { + if (!isIdValid(module) || getCount(module) <= 0) { sendSystemMessage(self, new string_id("spam", "pistol_module_missing")); return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3")) - { + if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3")) { sendSystemMessage(self, new string_id("spam", "pistol_buff_exists")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sm_modify_pistol_3", self, target, params, "", "")) - { + if (!combatStandardAction("sm_modify_pistol_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doAnimationAction(self, "reload"); decrementCount(module); return SCRIPT_CONTINUE; } - public int kun_one_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_one_sacrifice", self, target, params, "", "")) - { + + public int kun_one_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_one_sacrifice", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_two_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_two_sacrifice", self, target, params, "", "")) - { + + public int kun_two_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_two_sacrifice", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_three_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_three_sacrifice", self, target, params, "", "")) - { + + public int kun_three_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_three_sacrifice", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_four_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_four_sacrifice", self, target, params, "", "")) - { + + public int kun_four_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_four_sacrifice", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_five_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_five_sacrifice", self, target, params, "", "")) - { + + public int kun_five_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_five_sacrifice", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_six_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_six_sacrifice", self, target, params, "", "")) - { + + public int kun_six_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_six_sacrifice", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_seven_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_seven_sacrifice", self, target, params, "", "")) - { + + public int kun_seven_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_seven_sacrifice", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_eight_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_eight_sacrifice", self, target, params, "", "")) - { + + public int kun_eight_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_eight_sacrifice", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int open_cultist_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("open_cultist_drain", self, target, params, "", "")) - { + + public int open_cultist_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("open_cultist_drain", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } dictionary dict = new dictionary(); @@ -12775,579 +10928,502 @@ public class combat_actions extends script.systems.combat.combat_base messageTo(self, "handle_drain_anim", dict, 0.0f, false); return SCRIPT_CONTINUE; } - public int bm_siphon_master(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("bm_siphon_master", self, target, params, "", "", true)) - { + + public int bm_siphon_master(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("bm_siphon_master", self, target, params, "", "", true)) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int minder_luresh_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("minder_luresh_drain", self, target, params, "", "")) - { + + public int minder_luresh_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("minder_luresh_drain", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int closed_fist_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("closed_fist_cleave", self, target, params, "", "")) - { + + public int closed_fist_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("closed_fist_cleave", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int closed_fist_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("closed_fist_toss", self, target, params, "", "")) - { + + public int closed_fist_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("closed_fist_toss", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int closed_fist_burn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("closed_fist_burn", self, target, params, "", "")) - { + + public int closed_fist_burn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("closed_fist_burn", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int closed_fist_burn_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("closed_fist_burn_damage", self, target, params, "", "")) - { + + public int closed_fist_burn_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("closed_fist_burn_damage", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int lasher_increase_pain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("lasher_increase_pain", self, target, params, "", "")) - { + + public int lasher_increase_pain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("lasher_increase_pain", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int subduer_decrease_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("subduer_decrease_damage", self, target, params, "", "")) - { + + public int subduer_decrease_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("subduer_decrease_damage", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int lasher_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("lasher_strike", self, target, params, "", "")) - { + + public int lasher_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("lasher_strike", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int subduer_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("subduer_strike", self, target, params, "", "")) - { + + public int subduer_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("subduer_strike", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int tomb_guard_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("tomb_guard_cleave", self, target, params, "", "")) - { + + public int tomb_guard_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("tomb_guard_cleave", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int tomb_guard_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("tomb_guard_toss", self, target, params, "", "")) - { + + public int tomb_guard_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("tomb_guard_toss", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int caretaker_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("caretaker_blast", self, target, params, "", "")) - { + + public int caretaker_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("caretaker_blast", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int caretaker_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("caretaker_drain", self, target, params, "", "")) - { + + public int caretaker_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("caretaker_drain", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int caretaker_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("caretaker_shield", self, target, params, "", "")) - { + + public int caretaker_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("caretaker_shield", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int caretaker_shield_reflect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("caretaker_shield_reflect", self, target, params, "", "")) - { + + public int caretaker_shield_reflect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("caretaker_shield_reflect", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int caretaker_vapors(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("caretaker_vapors", self, target, params, "", "")) - { + + public int caretaker_vapors(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("caretaker_vapors", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int ct_guard_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("ct_guard_buff", self, target, params, "", "")) - { + + public int ct_guard_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("ct_guard_buff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_order_set(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_order_set", self, target, params, "", "")) - { + + public int kun_order_set(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_order_set", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_chaos_set(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_chaos_set", self, target, params, "", "")) - { + + public int kun_chaos_set(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_chaos_set", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_order_discipline(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_order_discipline", self, target, params, "", "")) - { + + public int kun_order_discipline(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_order_discipline", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_chaos_discord(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_chaos_discord", self, target, params, "", "")) - { + + public int kun_chaos_discord(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_chaos_discord", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int executioner_swipe(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("executioner_swipe", self, target, params, "", "")) - { + + public int executioner_swipe(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("executioner_swipe", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_wrath_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_wrath_cold", self, target, params, "", "")) - { + + public int kun_wrath_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_wrath_cold", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_wrath_heat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_wrath_heat", self, target, params, "", "")) - { + + public int kun_wrath_heat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_wrath_heat", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_wrath_electrical(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_wrath_electrical", self, target, params, "", "")) - { + + public int kun_wrath_electrical(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_wrath_electrical", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_wrath_acid(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_wrath_acid", self, target, params, "", "")) - { + + public int kun_wrath_acid(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_wrath_acid", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_wrath_ward(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_wrath_ward", self, target, params, "", "")) - { + + public int kun_wrath_ward(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_wrath_ward", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_veng_slam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_veng_slam", self, target, params, "", "")) - { + + public int kun_veng_slam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_veng_slam", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_veng_wave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_veng_wave", self, target, params, "", "")) - { + + public int kun_veng_wave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_veng_wave", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_open_coil(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_open_coil", self, target, params, "", "")) - { + + public int kun_open_coil(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_open_coil", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_word_coil(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_word_coil", self, target, params, "", "")) - { + + public int kun_word_coil(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_word_coil", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_word_flurry(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_word_flurry", self, target, params, "", "")) - { + + public int kun_word_flurry(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_word_flurry", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_word_shaken(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_word_shaken", self, target, params, "", "")) - { + + public int kun_word_shaken(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_word_shaken", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_sword_multi(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - String[] actions = - { - "kun_word_flurry", - "kun_sword_break", - "kun_sword_cleave", - "kun_sword_defensive" - }; + + public int kun_sword_multi(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + String[] actions + = { + "kun_word_flurry", + "kun_sword_break", + "kun_sword_cleave", + "kun_sword_defensive" + }; queueCommand(self, getStringCrc(actions[rand(0, actions.length - 1)].toLowerCase()), getHateTarget(self), "", COMMAND_PRIORITY_DEFAULT); return SCRIPT_CONTINUE; } - public int kun_sword_break(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_sword_break", self, target, params, "", "")) - { + + public int kun_sword_break(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_sword_break", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_sword_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_sword_cleave", self, target, params, "", "")) - { + + public int kun_sword_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_sword_cleave", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int kun_sword_defensive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("kun_sword_defensive", self, target, params, "", "")) - { + + public int kun_sword_defensive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("kun_sword_defensive", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int dire_root_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "dire_root_recourse")) - { + + public int dire_root_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "dire_root_recourse")) { buff.applyBuff(self, self, "dire_root_recourse"); } return SCRIPT_CONTINUE; } - public int dire_snare_recourse(obj_id self, dictionary params) throws InterruptedException - { - if (!buff.hasBuff(self, "dire_snare_recourse")) - { + + public int dire_snare_recourse(obj_id self, dictionary params) throws InterruptedException { + if (!buff.hasBuff(self, "dire_snare_recourse")) { buff.applyBuff(self, self, "dire_snare_recourse"); } return SCRIPT_CONTINUE; } - public int bountycheck(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int bountycheck(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id originalTarget = target; - if (bounty_hunter.canCheckForBounty(self, target)) - { + if (bounty_hunter.canCheckForBounty(self, target)) { doAnimationAction(self, "anims.PLAYER_DRAW_DATAPAD"); - if (bounty_hunter.checkForPresenceOfBounty(self, target)) - { + if (bounty_hunter.checkForPresenceOfBounty(self, target)) { location spawnLoc = getLocation(target); setHealth(target, -5000); trial.cleanupObject(target); bounty_hunter.spawnFugitive(self, spawnLoc); - } - else - { + } else { utils.setScriptVar(target, "bountyCheck", self); return SCRIPT_OVERRIDE; } - } - else - { + } else { return SCRIPT_OVERRIDE; } - if (isGod(self)) - { + if (isGod(self)) { return SCRIPT_OVERRIDE; } - if (!exists(originalTarget)) - { + if (!exists(originalTarget)) { return SCRIPT_CONTINUE; } return SCRIPT_OVERRIDE; } - public int fs_drain_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_drain_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_drain_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_drain_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_drain_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_drain_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_drain_2", self, target, params, "", "")) - { + if (!combatStandardAction("fs_drain_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_drain_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_drain_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_drain_3", self, target, params, "", "")) - { + if (!combatStandardAction("fs_drain_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_drain_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_drain_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_drain_4", self, target, params, "", "")) - { + if (!combatStandardAction("fs_drain_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_drain_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.isInFocus(self)) - { + + public int fs_drain_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.isInFocus(self)) { sendSystemMessage(self, new string_id("spam", "fs_command_no_focus")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_drain_5", self, target, params, "", "")) - { + if (!combatStandardAction("fs_drain_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int col_jedi_statue_light_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("col_jedi_statue_light_debuff", self, target, params, "", "")) - { + + public int col_jedi_statue_light_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("col_jedi_statue_light_debuff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int col_jedi_statue_dark_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("col_jedi_statue_dark_debuff", self, target, params, "", "")) - { + + public int col_jedi_statue_dark_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("col_jedi_statue_dark_debuff", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int co_hw_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id weapon = getCurrentWeapon(self); String finalAttackName = heavyweapons.getHeavyWeaponDotName(self, weapon, true); - if (finalAttackName == null || finalAttackName.equals("")) - { + if (finalAttackName == null || finalAttackName.equals("")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction(finalAttackName, self, target, params, "", "")) - { + if (!combatStandardAction(finalAttackName, self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_ae_hw_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int co_ae_hw_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id weapon = getCurrentWeapon(self); String finalAttackName = heavyweapons.getHeavyWeaponDotName(self, weapon, false); - if (finalAttackName == null || finalAttackName.equals("")) - { + if (finalAttackName == null || finalAttackName.equals("")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction(finalAttackName, self, target, params, "", "")) - { + if (!combatStandardAction(finalAttackName, self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_1", self, target, params, "", "")) - { + + public int co_hw_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_2", self, target, params, "", "")) - { + + public int co_hw_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_3", self, target, params, "", "")) - { + + public int co_hw_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_4", self, target, params, "", "")) - { + + public int co_hw_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_5", self, target, params, "", "")) - { + + public int co_hw_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_6", self, target, params, "", "")) - { + + public int co_hw_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_crit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_crit_1", self, target, params, "", "")) - { + + public int co_hw_dm_crit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_crit_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_crit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_crit_2", self, target, params, "", "")) - { + + public int co_hw_dm_crit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_crit_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_crit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_crit_3", self, target, params, "", "")) - { + + public int co_hw_dm_crit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_crit_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_crit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_crit_4", self, target, params, "", "")) - { + + public int co_hw_dm_crit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_crit_4", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_crit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_crit_5", self, target, params, "", "")) - { + + public int co_hw_dm_crit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_crit_5", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_hw_dm_crit_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_hw_dm_crit_6", self, target, params, "", "")) - { + + public int co_hw_dm_crit_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_hw_dm_crit_6", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_cluster_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_cluster_bomb", self, target, params, "", "")) - { + + public int co_cluster_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_cluster_bomb", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } location centerLoc = getLocation(target); int extraBomb = getEnhancedSkillStatisticModifierUncapped(self, "expertise_co_cluster_bomblet"); int bombCount = 4 + extraBomb; - for (int i = 0; i < bombCount; i++) - { + for (int i = 0; i < bombCount; i++) { float randx = rand(4.0f, 6.0f); float randz = rand(4.0f, 6.0f); randx = rand(0, 1) == 1 ? randx * -1 : randx; @@ -13359,68 +11435,59 @@ public class combat_actions extends script.systems.combat.combat_base } return SCRIPT_CONTINUE; } - public int co_cluster_bomblet(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_cluster_bomblet", self, target, params, "", "")) - { + + public int co_cluster_bomblet(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_cluster_bomblet", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_killing_spree(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_killing_spree", self, target, params, "", "")) - { + + public int co_killing_spree(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_killing_spree", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_empowered_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_empowered_attack", self, target, params, "", "")) - { + + public int co_empowered_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_empowered_attack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_first_aid_training(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_first_aid_training", self, target, params, "", "")) - { + + public int co_first_aid_training(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_first_aid_training", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int co_double_time(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_double_time", self, target, params, "", "")) - { + + public int co_double_time(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_double_time", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (buff.hasBuff(self, "co_position_secured")) - { + if (buff.hasBuff(self, "co_position_secured")) { buff.removeBuff(self, "co_position_secured"); } return SCRIPT_CONTINUE; } - public int co_killing_spree_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("co_killing_spree_attack", self, target, params, "", "")) - { + + public int co_killing_spree_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("co_killing_spree_attack", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int hoth_speeder_bolt(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_speeder_bolt(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { removeDefaultAttackOverride(self); return SCRIPT_CONTINUE; } obj_id speeder = getMountId(self); - if (utils.getIntScriptVar(speeder, "airborne") != 1) - { + if (utils.getIntScriptVar(speeder, "airborne") != 1) { return SCRIPT_CONTINUE; } float height = vehicle.getHoverHeight(speeder); @@ -13428,8 +11495,7 @@ public class combat_actions extends script.systems.combat.combat_base obj_id[] allTar = getObjectsInCone(speeder, farTarget, height * 25.0f, 2.0f); Vector validTargets = new Vector(); validTargets.setSize(0); - if (allTar == null || allTar.length == 0) - { + if (allTar == null || allTar.length == 0) { createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle", farTarget, 200.0f, 1.0f, false, 0, 0, 0, 0); createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle2", farTarget, 200.0f, 1.0f, false, 0, 0, 0, 0); play2dNonLoopingSound(self, "sound/hoth_snowspeeder_blaster_fire_01.snd"); @@ -13447,8 +11513,7 @@ public class combat_actions extends script.systems.combat.combat_base } validTargets.add(obj_id); } - if (validTargets == null || validTargets.size() == 0) - { + if (validTargets == null || validTargets.size() == 0) { createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle", farTarget, 200.0f, 1.0f, false, 0, 0, 0, 0); createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle2", farTarget, 200.0f, 1.0f, false, 0, 0, 0, 0); play2dNonLoopingSound(self, "sound/hoth_snowspeeder_blaster_fire_01.snd"); @@ -13461,12 +11526,10 @@ public class combat_actions extends script.systems.combat.combat_base break; } } - if (!isIdValid(target)) - { - target = ((obj_id)validTargets.get(rand(0, validTargets.size() - 1))); + if (!isIdValid(target)) { + target = ((obj_id) validTargets.get(rand(0, validTargets.size() - 1))); } - if (!isIdValid(target) || !exists(target)) - { + if (!isIdValid(target) || !exists(target)) { createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle", farTarget, 200.0f, 1.0f, false, 0, 0, 0, 0); createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle2", farTarget, 200.0f, 1.0f, false, 0, 0, 0, 0); play2dNonLoopingSound(self, "sound/hoth_snowspeeder_blaster_fire_01.snd"); @@ -13479,29 +11542,25 @@ public class combat_actions extends script.systems.combat.combat_base play2dNonLoopingSound(self, "sound/hoth_snowspeeder_blaster_fire_01.snd"); return SCRIPT_CONTINUE; } - public int hoth_speeder_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("hoth_speeder_shoot", self, target, params, "", "")) - { + + public int hoth_speeder_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("hoth_speeder_shoot", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int hoth_speeder_up(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_speeder_up(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { return SCRIPT_OVERRIDE; } obj_id mount = getMountId(self); float height = vehicle.getHoverHeight(mount); int active = utils.getIntScriptVar(mount, "airborne"); - if (active == 0) - { + if (active == 0) { return SCRIPT_OVERRIDE; } - if (height > 12.0f) - { + if (height > 12.0f) { return SCRIPT_OVERRIDE; } height = height + 2.0f; @@ -13512,28 +11571,25 @@ public class combat_actions extends script.systems.combat.combat_base messageTo(self, "hoth_speeder_up_reset", null, 1.0f, false); return SCRIPT_CONTINUE; } - public int hoth_speeder_up_reset(obj_id self, dictionary params) throws InterruptedException - { + + public int hoth_speeder_up_reset(obj_id self, dictionary params) throws InterruptedException { obj_id mount = getMountId(self); vehicle.setDampingHeight(mount, 0.1f); vehicle.setGlide(mount, 2.5f); return SCRIPT_CONTINUE; } - public int hoth_speeder_down(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_speeder_down(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { return SCRIPT_OVERRIDE; } obj_id mount = getMountId(self); float height = vehicle.getHoverHeight(mount); int active = utils.getIntScriptVar(mount, "airborne"); - if (active == 0) - { + if (active == 0) { return SCRIPT_OVERRIDE; } - if (height < 1.0f) - { + if (height < 1.0f) { return SCRIPT_OVERRIDE; } height = height - 2.0f; @@ -13544,21 +11600,20 @@ public class combat_actions extends script.systems.combat.combat_base messageTo(self, "hoth_speeder_down_reset", null, 1.0f, false); return SCRIPT_CONTINUE; } - public int hoth_speeder_down_reset(obj_id self, dictionary params) throws InterruptedException - { + + public int hoth_speeder_down_reset(obj_id self, dictionary params) throws InterruptedException { obj_id mount = getMountId(self); vehicle.setDampingHeight(mount, 0.1f); vehicle.setGlide(mount, 2.5f); return SCRIPT_CONTINUE; } - public int hoth_sapper_place(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int hoth_sapper_place(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { return SCRIPT_CONTINUE; } - public int hoth_sapper_detonate(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("hoth_sapper_detonate", self, target, params, "", "")) - { + + public int hoth_sapper_detonate(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("hoth_sapper_detonate", self, target, params, "", "")) { stopCombat(self); clearHateList(self); return SCRIPT_OVERRIDE; @@ -13566,42 +11621,36 @@ public class combat_actions extends script.systems.combat.combat_base kill(self); return SCRIPT_CONTINUE; } - public int hoth_commando_rocket(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int hoth_commando_rocket(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { return SCRIPT_CONTINUE; } - public int hoth_scout_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingBattlefieldVehicle(self)) - { + + public int hoth_scout_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingBattlefieldVehicle(self)) { removeDefaultAttackOverride(self); return SCRIPT_OVERRIDE; } obj_id vehicleId = getMountId(self); int stasisBuff = buff.getBuffOnTargetFromGroup(vehicleId, "stasis"); - if (stasisBuff != 0) - { + if (stasisBuff != 0) { return SCRIPT_OVERRIDE; } - if (!buff.canApplyBuff(vehicleId, "hoth_scout_shield")) - { + if (!buff.canApplyBuff(vehicleId, "hoth_scout_shield")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("hoth_scout_shield", vehicleId, self, params, "", "")) - { + if (!combatStandardAction("hoth_scout_shield", vehicleId, self, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int hoth_scout_cannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_scout_cannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { removeDefaultAttackOverride(self); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("hoth_scout_cannon", self, target, params, "", "")) - { + if (!combatStandardAction("hoth_scout_cannon", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } location eggLoc = combat.getCommandGroundTargetLocation(params); @@ -13613,15 +11662,13 @@ public class combat_actions extends script.systems.combat.combat_base createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", getMountId(self), "muzzle", eggLoc, 150.0f, 1.0f, false, 0, 0, 0, 0); return SCRIPT_CONTINUE; } - public int hoth_scout_ear_gun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_scout_ear_gun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { removeDefaultAttackOverride(self); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("hoth_scout_ear_gun", self, target, params, "", "")) - { + if (!combatStandardAction("hoth_scout_ear_gun", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float travelDistance = getDistance(target, self); @@ -13630,10 +11677,9 @@ public class combat_actions extends script.systems.combat.combat_base createClientProjectileObjectToObject(self, "object/weapon/ranged/rifle/shared_rifle_dlt20a.iff", getMountId(self), "muzzle2", target, "", 150.0f, 1.0f, false, 0, 0, 0, 0); return SCRIPT_CONTINUE; } - public int hoth_scout_ear_gun_switch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_scout_ear_gun_switch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { removeDefaultAttackOverride(self); return SCRIPT_OVERRIDE; } @@ -13641,10 +11687,9 @@ public class combat_actions extends script.systems.combat.combat_base overrideDefaultAttack(self, "hoth_scout_ear_gun"); return SCRIPT_CONTINUE; } - public int hoth_scout_rocket_switch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_scout_rocket_switch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { removeDefaultAttackOverride(self); return SCRIPT_OVERRIDE; } @@ -13652,15 +11697,13 @@ public class combat_actions extends script.systems.combat.combat_base overrideDefaultAttack(self, "hoth_scout_rocket"); return SCRIPT_CONTINUE; } - public int hoth_scout_rocket(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_scout_rocket(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { removeDefaultAttackOverride(self); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("hoth_scout_rocket", self, target, params, "", "")) - { + if (!combatStandardAction("hoth_scout_rocket", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } location eggLoc = combat.getCommandGroundTargetLocation(params); @@ -13668,13 +11711,11 @@ public class combat_actions extends script.systems.combat.combat_base createClientProjectileObjectToLocation(self, "object/weapon/ranged/rifle/shared_quest_rifle_flame_thrower.iff", getMountId(self), "muzzle4", eggLoc, 150.0f, 2.0f, false, 0, 0, 0, 0); return SCRIPT_CONTINUE; } - public int hoth_atat_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("hoth_atat_shoot", self, target, params, "", "")) - { + + public int hoth_atat_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("hoth_atat_shoot", self, target, params, "", "")) { String targetName = getCreatureName(target); - if (targetName == null) - { + if (targetName == null) { targetName = getPlayerName(target); } LOG("slapHappy", "ATAT has Damaged: " + target + " ( " + targetName + " )"); @@ -13682,29 +11723,25 @@ public class combat_actions extends script.systems.combat.combat_base } return SCRIPT_CONTINUE; } - public int hoth_atat_vehicle_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target)) - { + + public int hoth_atat_vehicle_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target)) { LOG("maggie", "hoth_atat_vehicle_shoot:::: TARGET is INVALID"); return SCRIPT_CONTINUE; } - if (!isIdValid(self)) - { + if (!isIdValid(self)) { LOG("maggie", "hoth_atat_vehicle_shoot:::: SELF is INVALID"); return SCRIPT_CONTINUE; } - if (!combatStandardAction("hoth_atat_vehicle_shoot", self, target, params, "", "")) - { + if (!combatStandardAction("hoth_atat_vehicle_shoot", self, target, params, "", "")) { LOG("maggie", "hoth_atat_vehicle_shoot:::: Hit Called"); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int hoth_speeder_takeoff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_speeder_takeoff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { return SCRIPT_OVERRIDE; } obj_id mount = getMountId(self); @@ -13726,10 +11763,9 @@ public class combat_actions extends script.systems.combat.combat_base utils.setScriptVar(mount, "airborne", 1); return SCRIPT_CONTINUE; } - public int hoth_speeder_land(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!vehicle.isRidingVehicle(self)) - { + + public int hoth_speeder_land(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!vehicle.isRidingVehicle(self)) { return SCRIPT_OVERRIDE; } obj_id mount = getMountId(self); @@ -13737,115 +11773,96 @@ public class combat_actions extends script.systems.combat.combat_base utils.setScriptVar(mount, "airborne", 0); return SCRIPT_CONTINUE; } - public int hoth_ai_speeder_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!isIdValid(target)) - { + + public int hoth_ai_speeder_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!isIdValid(target)) { LOG("maggie", "hoth_ai_speeder_shoot:::: TARGET is INVALID"); return SCRIPT_CONTINUE; } - if (!isIdValid(self)) - { + if (!isIdValid(self)) { LOG("maggie", "hoth_ai_speeder_shoot:::: SELF is INVALID"); return SCRIPT_CONTINUE; } - if (!combatStandardAction("hoth_ai_speeder_shoot", self, target, params, "", "")) - { + if (!combatStandardAction("hoth_ai_speeder_shoot", self, target, params, "", "")) { LOG("maggie", "hoth_ai_speeder_shoot:::: Hit Called"); return SCRIPT_CONTINUE; } return SCRIPT_CONTINUE; } - public int wampa_boss_ice_throw_prep(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("wampa_boss_ice_throw_prep", self, target, params, "", "")) - { + + public int wampa_boss_ice_throw_prep(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("wampa_boss_ice_throw_prep", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int wampa_boss_ice_throw(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("wampa_boss_ice_throw", self, target, params, "", "")) - { + + public int wampa_boss_ice_throw(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("wampa_boss_ice_throw", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int wampa_boss_tauntaun_throw_prep(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (combatStandardAction("wampa_boss_tauntaun_throw_prep", self, target, params, "", "")) - { + + public int wampa_boss_tauntaun_throw_prep(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (combatStandardAction("wampa_boss_tauntaun_throw_prep", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int wampa_boss_tauntaun_throw(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("wampa_boss_tauntaun_throw", self, target, params, "", "")) - { + + public int wampa_boss_tauntaun_throw(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("wampa_boss_tauntaun_throw", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int hoth_atat_mine(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int hoth_atat_mine(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { location loc = getLocation(self); String targetLoc = "" + loc.x + " " + loc.y + " " + loc.z + " " + loc.cell + " " + loc.x + " " + loc.y + " " + loc.z; - if (!combatStandardAction("hoth_atat_mine", self, target, targetLoc, "", "")) - { + if (!combatStandardAction("hoth_atat_mine", self, target, targetLoc, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int vader_force_choke(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (isPlayer(self)) - { + + public int vader_force_choke(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (isPlayer(self)) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("vader_force_choke", self, target, params, "", "")) - { + if (!combatStandardAction("vader_force_choke", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public boolean performMedicGroupBuff(obj_id medic, obj_id target, String buffName, String params) throws InterruptedException - { - if (!isIdValid(medic) || !exists(medic)) - { + + public boolean performMedicGroupBuff(obj_id medic, obj_id target, String buffName, String params) throws InterruptedException { + if (!isIdValid(medic) || !exists(medic)) { return false; } - if (!isIdValid(target) || !exists(target)) - { + if (!isIdValid(target) || !exists(target)) { return false; } - if (buffName == null || buffName.length() <= 0) - { + if (buffName == null || buffName.length() <= 0) { return false; } - if (params == null || params.length() <= 0) - { + if (params == null || params.length() <= 0) { return false; } obj_id tgId = getGroupObject(target); obj_id sgId = getGroupObject(medic); boolean performed_buff = false; - if (!isIdValid(tgId) || !isIdValid(sgId) || sgId != tgId) - { + if (!isIdValid(tgId) || !isIdValid(sgId) || sgId != tgId) { performed_buff |= combatStandardAction(buffName, medic, target, params, "", ""); obj_id beast = beast_lib.getBeastOnPlayer(target); - if (isIdValid(beast) && exists(beast) && !isDead(beast) && getDistance(medic, beast) < 72.0f) - { + if (isIdValid(beast) && exists(beast) && !isDead(beast) && getDistance(medic, beast) < 72.0f) { performed_buff |= combatStandardAction(buffName, medic, beast, params, "", ""); } - if (!performed_buff) - { + if (!performed_buff) { return false; } - } - else - { + } else { obj_id[] members = getGroupMemberIds(sgId); for (obj_id member : members) { if (isIdValid(member) && exists(member) && !isDead(member) && canSee(medic, member) && getDistance(medic, member) < 72.0f) { @@ -13859,538 +11876,465 @@ public class combat_actions extends script.systems.combat.combat_base } return performed_buff; } - public int sp_smoke_mirrors(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("sp_smoke_mirrors", self, target, params, "", "")) - { + + public int sp_smoke_mirrors(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("sp_smoke_mirrors", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int sp_shifty_setup(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) - { + + public int sp_shifty_setup(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("sp_shifty_setup", self, target, params, "", "")) - { + if (!combatStandardAction("sp_shifty_setup", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fireCr1BlastCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("fireCr1BlastCannon", self, target, params, "", "")) - { + + public int fireCr1BlastCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("fireCr1BlastCannon", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int droid_flame_jet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_flame_jet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.fire_potency"); - if (commandPotency <= 0) - { + if (commandPotency <= 0) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (1393995298), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_flame_jet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_flame_jet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.fire_potency"); - if (commandPotency < 50) - { + if (commandPotency < 50) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (1582663931), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_flame_jet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_flame_jet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.fire_potency"); - if (commandPotency < 100) - { + if (commandPotency < 100) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (1519686988), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int server_droid_flame_jet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_flame_jet_1", self, target, params, "", "")) - { + + public int server_droid_flame_jet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_flame_jet_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } String template = getTemplateName(self); - if (template.equals("object/mobile/magnaguard.iff")) - { + if (template.equals("object/mobile/magnaguard.iff")) { playClientEffectObj(self, "appearance/pt_droid_flame_jet_magnaguard.prt", self, "root", null, "flamejet"); - } - else - { + } else { playClientEffectObj(self, "appearance/pt_droid_flame_jet.prt", self, "root", null, "flamejet"); } return SCRIPT_CONTINUE; } - public int server_droid_flame_jet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_flame_jet_2", self, target, params, "", "")) - { + + public int server_droid_flame_jet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_flame_jet_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } String template = getTemplateName(self); - if (template.equals("object/mobile/magnaguard.iff")) - { + if (template.equals("object/mobile/magnaguard.iff")) { playClientEffectObj(self, "appearance/pt_droid_flame_jet_magnaguard.prt", self, "root", null, "flamejet"); - } - else - { + } else { playClientEffectObj(self, "appearance/pt_droid_flame_jet.prt", self, "root", null, "flamejet"); } return SCRIPT_CONTINUE; } - public int server_droid_flame_jet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_flame_jet_3", self, target, params, "", "")) - { + + public int server_droid_flame_jet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_flame_jet_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } String template = getTemplateName(self); - if (template.equals("object/mobile/magnaguard.iff")) - { + if (template.equals("object/mobile/magnaguard.iff")) { playClientEffectObj(self, "appearance/pt_droid_flame_jet_magnaguard.prt", self, "root", null, "flamejet"); - } - else - { + } else { playClientEffectObj(self, "appearance/pt_droid_flame_jet.prt", self, "root", null, "flamejet"); } return SCRIPT_CONTINUE; } - public int droid_droideka_shield_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_droideka_shield_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.shield_heatsink"); - if (commandPotency <= 0) - { + if (commandPotency <= 0) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("droid_droideka_shield_1", droid, target, params, "", "")) - { + if (!combatStandardAction("droid_droideka_shield_1", droid, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int droid_droideka_shield_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_droideka_shield_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.shield_heatsink"); - if (commandPotency < 50) - { + if (commandPotency < 50) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("droid_droideka_shield_2", droid, target, params, "", "")) - { + if (!combatStandardAction("droid_droideka_shield_2", droid, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int droid_droideka_shield_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_droideka_shield_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.shield_heatsink"); - if (commandPotency < 100) - { + if (commandPotency < 100) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("droid_droideka_shield_3", droid, target, params, "", "")) - { + if (!combatStandardAction("droid_droideka_shield_3", droid, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int droid_battery_dump_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_battery_dump_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.dump_capacitors"); - if (commandPotency <= 0) - { + if (commandPotency <= 0) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (1901658878), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_battery_dump_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_battery_dump_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.dump_capacitors"); - if (commandPotency < 50) - { + if (commandPotency < 50) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (2082087975), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_battery_dump_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_battery_dump_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.dump_capacitors"); - if (commandPotency < 100) - { + if (commandPotency < 100) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (2027633040), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int server_droid_battery_dump_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_battery_dump_1", self, target, params, "", "")) - { + + public int server_droid_battery_dump_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_battery_dump_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int server_droid_battery_dump_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_battery_dump_2", self, target, params, "", "")) - { + + public int server_droid_battery_dump_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_battery_dump_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int server_droid_battery_dump_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_battery_dump_3", self, target, params, "", "")) - { + + public int server_droid_battery_dump_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_battery_dump_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int droid_regenerative_plating_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_regenerative_plating_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.quickset_metal"); - if (commandPotency <= 0) - { + if (commandPotency <= 0) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (-1431788883), droid, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_regenerative_plating_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_regenerative_plating_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.quickset_metal"); - if (commandPotency < 50) - { + if (commandPotency < 50) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (-1477737356), droid, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_regenerative_plating_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_regenerative_plating_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.quickset_metal"); - if (commandPotency < 100) - { + if (commandPotency < 100) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (-1557489213), droid, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int server_droid_regenerative_plating_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_regenerative_plating_1", self, target, params, "", "")) - { + + public int server_droid_regenerative_plating_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_regenerative_plating_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int server_droid_regenerative_plating_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_regenerative_plating_2", self, target, params, "", "")) - { + + public int server_droid_regenerative_plating_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_regenerative_plating_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int server_droid_regenerative_plating_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_regenerative_plating_3", self, target, params, "", "")) - { + + public int server_droid_regenerative_plating_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_regenerative_plating_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int droid_electrical_shock_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_electrical_shock_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.arc_projector"); - if (commandPotency <= 0) - { + if (commandPotency <= 0) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (958746220), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_electrical_shock_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_electrical_shock_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.arc_projector"); - if (commandPotency < 50) - { + if (commandPotency < 50) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (879126709), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_electrical_shock_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_electrical_shock_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.arc_projector"); - if (commandPotency < 100) - { + if (commandPotency < 100) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (816280834), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int server_droid_electrical_shock_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_electrical_shock_1", self, target, params, "", "")) - { + + public int server_droid_electrical_shock_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_electrical_shock_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int server_droid_electrical_shock_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_electrical_shock_2", self, target, params, "", "")) - { + + public int server_droid_electrical_shock_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_electrical_shock_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int server_droid_electrical_shock_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_electrical_shock_3", self, target, params, "", "")) - { + + public int server_droid_electrical_shock_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_electrical_shock_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int droid_torturous_needle_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_torturous_needle_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.pain_inducer"); - if (commandPotency <= 0) - { + if (commandPotency <= 0) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (-1109390517), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_torturous_needle_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_torturous_needle_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.pain_inducer"); - if (commandPotency < 50) - { + if (commandPotency < 50) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (-1331483246), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int droid_torturous_needle_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int droid_torturous_needle_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { obj_id droid = pet_lib.validateDroidCommand(self); - if (!isIdValid(droid)) - { + if (!isIdValid(droid)) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } int commandPotency = getIntObjVar(droid, "module_data.pain_inducer"); - if (commandPotency < 100) - { + if (commandPotency < 100) { sendSystemMessage(self, new string_id("spam", "cant_use_droid_command")); return SCRIPT_OVERRIDE; } queueCommand(droid, (-1268633563), target, "", COMMAND_PRIORITY_IMMEDIATE); return SCRIPT_CONTINUE; } - public int server_droid_torturous_needle_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_torturous_needle_1", self, target, params, "", "")) - { + + public int server_droid_torturous_needle_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_torturous_needle_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int server_droid_torturous_needle_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_torturous_needle_2", self, target, params, "", "")) - { + + public int server_droid_torturous_needle_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_torturous_needle_2", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int server_droid_torturous_needle_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("server_droid_torturous_needle_3", self, target, params, "", "")) - { + + public int server_droid_torturous_needle_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("server_droid_torturous_needle_3", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int death_troopers_afflicted_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("death_troopers_afflicted_toss", self, target, params, "", "")) - { + + public int death_troopers_afflicted_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("death_troopers_afflicted_toss", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int death_troopers_death_wing_afflict(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("death_troopers_death_wing_afflict", self, target, params, "", "")) - { + + public int death_troopers_death_wing_afflict(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("death_troopers_death_wing_afflict", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } doAnimationAction(target, "heavy_cough_vomit"); return SCRIPT_CONTINUE; } - public int death_troopers_afflicted_splat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("death_troopers_afflicted_splat", self, target, params, "", "")) - { + + public int death_troopers_afflicted_splat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("death_troopers_afflicted_splat", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int death_troopers_afflicted_konk(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("death_troopers_afflicted_konk", self, target, params, "", "")) - { + + public int death_troopers_afflicted_konk(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("death_troopers_afflicted_konk", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int of_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_dm_boss", self, target, params, "", "")) - { + + public int of_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_dm_boss", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } float baseCooldownTime = getBaseCooldownTime("of_dm_boss"); - if (baseCooldownTime < 0) - { + if (baseCooldownTime < 0) { return SCRIPT_OVERRIDE; } float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure"); @@ -14398,158 +12342,136 @@ public class combat_actions extends script.systems.combat.combat_base doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_ae_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("of_ae_dm_boss", self, target, params, "", "")) - { + + public int of_ae_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("of_ae_dm_boss", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } doInspiredAction(self); return SCRIPT_CONTINUE; } - public int of_del_ae_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (getTopMostContainer(self) != self) - { + + public int of_del_ae_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (getTopMostContainer(self) != self) { sendSystemMessage(self, new string_id("spam", "cant_do_indoors")); return SCRIPT_OVERRIDE; } - if (!combatStandardAction("of_del_ae_dm_boss", self, target, params, "", "")) - { + if (!combatStandardAction("of_del_ae_dm_boss", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } playClientEffectLoc(self, "clienteffect/combat_pt_orbitalstrike_low_pt.cef", getLocation(target), 0); - if (successfulFastAttack(self, "of_aoe")) - { + if (successfulFastAttack(self, "of_aoe")) { setCommandTimerValue(self, TIMER_COOLDOWN, 0.0f); } doInspiredAction(self); return SCRIPT_CONTINUE; } - public boolean isInBlackwingInfectionedArea(obj_id self) throws InterruptedException - { - if (locations.isInRegion(self, "@dathomir_region_names:black_mesa")) - { + + public boolean isInBlackwingInfectionedArea(obj_id self) throws InterruptedException { + if (locations.isInRegion(self, "@dathomir_region_names:black_mesa")) { return true; } obj_id building = getTopMostContainer(self); - if (isIdValid(building) && (getTemplateName(building)).equals("object/building/dathomir/imperial_blackwing_facility.iff")) - { + if (isIdValid(building) && (getTemplateName(building)).equals("object/building/dathomir/imperial_blackwing_facility.iff")) { return true; } return false; } - public boolean hasVaharaCodyAntiVirus(obj_id self) throws InterruptedException - { - if (utils.hasScriptVar(self, "outbreak.innoculated") || buff.hasBuff(self, "death_troopers_inoculation")) - { + + public boolean hasVaharaCodyAntiVirus(obj_id self) throws InterruptedException { + if (utils.hasScriptVar(self, "outbreak.innoculated") || buff.hasBuff(self, "death_troopers_inoculation")) { return true; } return false; } - public int death_troopers_infection_1(obj_id self, dictionary params) throws InterruptedException - { + + public int death_troopers_infection_1(obj_id self, dictionary params) throws InterruptedException { messageTo(self, "death_troopers_infection_1_delay", null, 0.5f, false); return SCRIPT_CONTINUE; } - public int death_troopers_infection_1_delay(obj_id self, dictionary params) throws InterruptedException - { - if (isInBlackwingInfectionedArea(self)) - { - if (!hasVaharaCodyAntiVirus(self)) - { + + public int death_troopers_infection_1_delay(obj_id self, dictionary params) throws InterruptedException { + if (isInBlackwingInfectionedArea(self)) { + if (!hasVaharaCodyAntiVirus(self)) { buff.applyBuff(self, self, "death_troopers_infection_2"); } } return SCRIPT_CONTINUE; } - public int death_troopers_infection_2(obj_id self, dictionary params) throws InterruptedException - { + + public int death_troopers_infection_2(obj_id self, dictionary params) throws InterruptedException { messageTo(self, "death_troopers_infection_2_delay", null, 0.5f, false); return SCRIPT_CONTINUE; } - public int death_troopers_infection_2_delay(obj_id self, dictionary params) throws InterruptedException - { - if (isInBlackwingInfectionedArea(self)) - { - if (!hasVaharaCodyAntiVirus(self)) - { + + public int death_troopers_infection_2_delay(obj_id self, dictionary params) throws InterruptedException { + if (isInBlackwingInfectionedArea(self)) { + if (!hasVaharaCodyAntiVirus(self)) { trial.bumpSession(self, "outbreak_stacking_infection"); buff.applyBuff(self, self, "death_troopers_infection_3"); } } return SCRIPT_CONTINUE; } - public int death_troopers_infection_3(obj_id self, dictionary params) throws InterruptedException - { + + public int death_troopers_infection_3(obj_id self, dictionary params) throws InterruptedException { messageTo(self, "death_troopers_infection_3_delay", null, 0.5f, false); return SCRIPT_CONTINUE; } - public int death_troopers_infection_3_delay(obj_id self, dictionary params) throws InterruptedException - { - if (isInBlackwingInfectionedArea(self)) - { - if (!hasVaharaCodyAntiVirus(self)) - { + + public int death_troopers_infection_3_delay(obj_id self, dictionary params) throws InterruptedException { + if (isInBlackwingInfectionedArea(self)) { + if (!hasVaharaCodyAntiVirus(self)) { buff.applyBuff(self, self, "death_troopers_infection_3"); } } return SCRIPT_CONTINUE; } - public int death_troopers_inoculation(obj_id self, dictionary params) throws InterruptedException - { - if (isInBlackwingInfectionedArea(self)) - { - if (utils.hasScriptVar(self, "outbreak.innoculated")) - { + + public int death_troopers_inoculation(obj_id self, dictionary params) throws InterruptedException { + if (isInBlackwingInfectionedArea(self)) { + if (utils.hasScriptVar(self, "outbreak.innoculated")) { utils.removeScriptVar(self, "outbreak.innoculated"); } buff.applyBuff(self, self, "death_troopers_infection_1"); } return SCRIPT_CONTINUE; } - public int gcw_atst_attack_tower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { + + public int gcw_atst_attack_tower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { LOG("gcw_vehicle", "gcw_atst_attack_tower"); - if (!combatStandardAction("gcw_atst_attack_tower", self, target, params, "", "")) - { + if (!combatStandardAction("gcw_atst_attack_tower", self, target, params, "", "")) { LOG("gcw_vehicle", "gcw_atst_attack_tower 2"); return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int firePulseCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!combatStandardAction("firePulseCannon", self, target, params, "", "")) - { + + public int firePulseCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!combatStandardAction("firePulseCannon", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int fs_saber_intercept_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (self == target) - { + + public int fs_saber_intercept_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (self == target) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("fs_saber_intercept_1", self, target, params, "", "")) - { + if (!combatStandardAction("fs_saber_intercept_1", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE; } - public int trader_heal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException - { - if (!buff.hasBuff(self, "set_bonus_trader_3")) - { + + public int trader_heal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException { + if (!buff.hasBuff(self, "set_bonus_trader_3")) { return SCRIPT_OVERRIDE; } - if (!combatStandardAction("trader_heal", self, target, params, "", "")) - { + if (!combatStandardAction("trader_heal", self, target, params, "", "")) { return SCRIPT_OVERRIDE; } return SCRIPT_CONTINUE;