Players can no longer get stuck between stairs and door used in Shield of Arrav

This commit is contained in:
downthecrop
2023-01-19 00:26:42 +00:00
committed by Ryan
parent a88c98bc9a
commit 5adaf1a422
@@ -40,6 +40,7 @@ public final class VarrockNodePlugin extends OptionHandler {
@Override
public Plugin<Object> newInstance(Object arg) throws Throwable {
SceneryDefinition.forId(24357).getHandlers().put("option:climb-up", this);
SceneryDefinition.forId(24359).getHandlers().put("option:climb-down", this);
SceneryDefinition.forId(5581).getHandlers().put("option:take-axe", this);
SceneryDefinition.forId(36974).getHandlers().put("option:take-axe", this);
SceneryDefinition.forId(24427).getHandlers().put("option:walk-up", this);
@@ -106,6 +107,14 @@ public final class VarrockNodePlugin extends OptionHandler {
ClimbActionHandler.climbLadder(player, (Scenery) node, option);
return true;
case 24359:
if (player.getLocation().getDistance(Location.create(3231, 3382, 1)) < 3) {
ClimbActionHandler.climb(player, null, Location.create(3231, 3386, 0));
return true;
}
ClimbActionHandler.climbLadder(player, (Scenery) node, option);
return true;
case 24427: //varrock museum stairs that lead upstairs
if (player.getLocation().getDistance(Location.create(1758, 4959, 0)) < 3) {
ClimbActionHandler.climb(player, new Animation(-1), Location.create(3258, 3452, 0));