Fixed wilderness zoning near KBD lever

This commit is contained in:
Jedediah Orne 2023-10-20 06:56:52 +00:00 committed by Ryan
parent 0779a550a3
commit e2a13465b6
2 changed files with 5 additions and 8 deletions

View file

@ -6,6 +6,7 @@ import core.game.global.action.ClimbActionHandler;
import core.game.interaction.OptionHandler;
import core.game.node.Node;
import core.game.node.entity.player.Player;
import core.game.node.entity.player.link.TeleportManager;
import core.game.node.entity.player.link.TeleportManager.TeleportType;
import core.game.node.scenery.Scenery;
import core.game.world.map.Location;
@ -124,13 +125,9 @@ public final class WildernessPlugin extends OptionHandler {
if (player.getLocation().withinDistance(LOCATIONS[5])) {
animate(player, 2140, false);
playAudio(player, Sounds.LEVER_2400);
if (player.isTeleBlocked()) {
player.getPacketDispatch().sendMessage("A magical force has stopped you from teleporting.");
} else {
player.getPacketDispatch().sendMessage("You pull the lever...");
player.getTeleporter().send(LOCATIONS[4], TeleportType.NORMAL);
player.getPacketDispatch().sendMessage("... and teleport into the lair of the King Black Dragon!", 5);
}
player.getPacketDispatch().sendMessage("You pull the lever...");
player.getTeleporter().send(LOCATIONS[4], TeleportType.NORMAL, TeleportManager.WILDY_TELEPORT);
player.getPacketDispatch().sendMessage("... and teleport into the lair of the King Black Dragon!", 5);
}
break;
case 1817:

View file

@ -39,7 +39,7 @@ public final class WildernessZone extends MapZone {
/**
* The wilderness zone.
*/
private static final WildernessZone INSTANCE = new WildernessZone(new ZoneBorders(2944, 3525, 3400, 3975), new ZoneBorders(3070, 9924, 3135, 10002), ZoneBorders.forRegion(12193), ZoneBorders.forRegion(11937));
private static final WildernessZone INSTANCE = new WildernessZone(new ZoneBorders(2944, 3525, 3400, 3975), new ZoneBorders(3070, 9924, 3135, 10002), ZoneBorders.forRegion(12192), ZoneBorders.forRegion(12193), ZoneBorders.forRegion(11937));
public static final String WILDERNESS_PROT_ATTR = "/save:wilderness-protection-active";
public static final String WILDERNESS_HIGHER_NEXTFEE = "/save:wilderness-higher-next-fee";