mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 05:20:22 -07:00
fix gwd ropes
This commit is contained in:
parent
0d9e416f66
commit
642a0a2339
3 changed files with 9 additions and 5 deletions
|
|
@ -85,8 +85,7 @@ public final class GodwarsMapzone extends MapZone implements Plugin<Object> {
|
|||
* @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<Object> {
|
|||
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<Object> {
|
|||
return true;
|
||||
}
|
||||
if (object.getId() == 26300) {
|
||||
handleRopeTie((Player) e, 0x4);
|
||||
handleRopeTie((Player) e, 2);
|
||||
return true;
|
||||
}
|
||||
if (object.getId() == 26286) {
|
||||
|
|
|
|||
|
|
@ -109,6 +109,6 @@ public final class GWDKnightDialogue extends DialoguePlugin {
|
|||
|
||||
@Override
|
||||
public int[] getIds() {
|
||||
return new int[] { 6201 };
|
||||
return new int[] { 6202 };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue