From e2af78279dc04269ec7c3d32f8bea701b537792e Mon Sep 17 00:00:00 2001 From: OnlyHereToPlayOsrs <37775694+xperiaclash@users.noreply.github.com> Date: Thu, 27 Jun 2019 21:16:42 +0200 Subject: [PATCH] coxhelper: add olm cripple chat msg for timer to work (#770) --- .../client/plugins/coxhelper/CoxOverlay.java | 2 +- .../client/plugins/coxhelper/CoxPlugin.java | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/coxhelper/CoxOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/coxhelper/CoxOverlay.java index 893b44ff94..4218f092c6 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/coxhelper/CoxOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/coxhelper/CoxOverlay.java @@ -206,7 +206,7 @@ public class CoxOverlay extends Overlay if (plugin.isHandCripple()) { - int tick = plugin.getTimer(); + int tick = plugin.getCrippleTimer(); NPC olmHand = plugin.getHand(); final String tickStr = String.valueOf(tick); Point canvasPoint = olmHand.getCanvasTextLocation(graphics, tickStr, 50); diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/coxhelper/CoxPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/coxhelper/CoxPlugin.java index 975638265e..f5f08b1199 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/coxhelper/CoxPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/coxhelper/CoxPlugin.java @@ -132,7 +132,7 @@ public class CoxPlugin extends Plugin @Getter(AccessLevel.PACKAGE) private Actor acidTarget; @Getter(AccessLevel.PACKAGE) - private int timer = 45; + private int crippleTimer = 45; @Getter(AccessLevel.PACKAGE) private int burnTicks = 41; @Getter(AccessLevel.PACKAGE) @@ -172,7 +172,7 @@ public class CoxPlugin extends Plugin Olm_TP.clear(); prayAgainstOlm = null; burnTarget.clear(); - timer = 45; + crippleTimer = 45; burnTicks = 40; acidTicks = 25; teleportTicks = 10; @@ -225,6 +225,7 @@ public class CoxPlugin extends Plugin OlmPhase = 0; runOlm = true; needOlm = true; + crippleTimer = 45; Olm_NextSpec = -1; break; case "the great olm fires a sphere of aggression your way. your prayers have been sapped.": @@ -251,6 +252,8 @@ public class CoxPlugin extends Plugin prayAgainstOlm = PrayAgainst.RANGED; lastPrayTime = System.currentTimeMillis(); break; + case "the great olm's left claw clenches to protect itself temporarily.": + HandCripple = true; } } @@ -450,11 +453,11 @@ public class CoxPlugin extends Plugin if (HandCripple) { - timer--; - if (timer <= 0) + crippleTimer--; + if (crippleTimer <= 0) { HandCripple = false; - timer = 45; + crippleTimer = 45; } }