From 642a0a23394266fd2800ae63d357e4be6a03143c Mon Sep 17 00:00:00 2001 From: Ceikry Date: Sun, 21 Mar 2021 20:53:07 -0500 Subject: [PATCH] fix gwd ropes --- .../core/game/content/activity/gwd/GodwarsMapzone.java | 7 +++---- .../java/core/game/content/dialogue/GWDKnightDialogue.java | 2 +- .../kotlin/rs09/game/system/command/sets/MiscCommandSet.kt | 5 +++++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Server/src/main/java/core/game/content/activity/gwd/GodwarsMapzone.java b/Server/src/main/java/core/game/content/activity/gwd/GodwarsMapzone.java index 905e23102..f5e56c9c8 100644 --- a/Server/src/main/java/core/game/content/activity/gwd/GodwarsMapzone.java +++ b/Server/src/main/java/core/game/content/activity/gwd/GodwarsMapzone.java @@ -85,8 +85,7 @@ public final class GodwarsMapzone extends MapZone implements Plugin { * @param setting The setting. */ public void setRopeSetting(Player player, int setting) { - int value = player.getConfigManager().get(1048) | setting; - player.getConfigManager().set(1048, value, true); + player.varpManager.get(1048).setVarbit(setting,1).send(player); } /** @@ -167,7 +166,7 @@ public final class GodwarsMapzone extends MapZone implements Plugin { return true; } if (object.getId() == 26296) { - handleRopeTie((Player) e, 0x2); + handleRopeTie((Player) e, 1); return true; } if (object.getId() == 26297) { @@ -183,7 +182,7 @@ public final class GodwarsMapzone extends MapZone implements Plugin { return true; } if (object.getId() == 26300) { - handleRopeTie((Player) e, 0x4); + handleRopeTie((Player) e, 2); return true; } if (object.getId() == 26286) { diff --git a/Server/src/main/java/core/game/content/dialogue/GWDKnightDialogue.java b/Server/src/main/java/core/game/content/dialogue/GWDKnightDialogue.java index cfd65cca9..862fe1d43 100644 --- a/Server/src/main/java/core/game/content/dialogue/GWDKnightDialogue.java +++ b/Server/src/main/java/core/game/content/dialogue/GWDKnightDialogue.java @@ -109,6 +109,6 @@ public final class GWDKnightDialogue extends DialoguePlugin { @Override public int[] getIds() { - return new int[] { 6201 }; + return new int[] { 6202 }; } } diff --git a/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt b/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt index b9b1238f7..9587d90f6 100644 --- a/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt +++ b/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt @@ -464,5 +464,10 @@ class MiscCommandSet : CommandSet(Command.Privilege.ADMIN){ define("addcredits",Command.Privilege.ADMIN){player,_ -> player.details.credits += 100 } + + define("resetgwdropes",Command.Privilege.STANDARD){player,_ -> + player.varpManager.get(1048).clearBitRange(0,31) + player.varpManager.get(1048).send(player) + } } } \ No newline at end of file