mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed wilderness zoning near KBD lever
This commit is contained in:
parent
0779a550a3
commit
e2a13465b6
2 changed files with 5 additions and 8 deletions
|
|
@ -6,6 +6,7 @@ import core.game.global.action.ClimbActionHandler;
|
||||||
import core.game.interaction.OptionHandler;
|
import core.game.interaction.OptionHandler;
|
||||||
import core.game.node.Node;
|
import core.game.node.Node;
|
||||||
import core.game.node.entity.player.Player;
|
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.entity.player.link.TeleportManager.TeleportType;
|
||||||
import core.game.node.scenery.Scenery;
|
import core.game.node.scenery.Scenery;
|
||||||
import core.game.world.map.Location;
|
import core.game.world.map.Location;
|
||||||
|
|
@ -124,13 +125,9 @@ public final class WildernessPlugin extends OptionHandler {
|
||||||
if (player.getLocation().withinDistance(LOCATIONS[5])) {
|
if (player.getLocation().withinDistance(LOCATIONS[5])) {
|
||||||
animate(player, 2140, false);
|
animate(player, 2140, false);
|
||||||
playAudio(player, Sounds.LEVER_2400);
|
playAudio(player, Sounds.LEVER_2400);
|
||||||
if (player.isTeleBlocked()) {
|
player.getPacketDispatch().sendMessage("You pull the lever...");
|
||||||
player.getPacketDispatch().sendMessage("A magical force has stopped you from teleporting.");
|
player.getTeleporter().send(LOCATIONS[4], TeleportType.NORMAL, TeleportManager.WILDY_TELEPORT);
|
||||||
} else {
|
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);
|
|
||||||
player.getPacketDispatch().sendMessage("... and teleport into the lair of the King Black Dragon!", 5);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1817:
|
case 1817:
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ public final class WildernessZone extends MapZone {
|
||||||
/**
|
/**
|
||||||
* The wilderness zone.
|
* 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_PROT_ATTR = "/save:wilderness-protection-active";
|
||||||
public static final String WILDERNESS_HIGHER_NEXTFEE = "/save:wilderness-higher-next-fee";
|
public static final String WILDERNESS_HIGHER_NEXTFEE = "/save:wilderness-higher-next-fee";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue