Fixed bug blocking entry to Black Knights' Fortress
This commit is contained in:
+17
-13
@@ -16,6 +16,9 @@ import core.game.world.repository.Repository;
|
|||||||
import core.game.world.update.flag.context.Animation;
|
import core.game.world.update.flag.context.Animation;
|
||||||
import core.game.world.update.flag.context.Graphics;
|
import core.game.world.update.flag.context.Graphics;
|
||||||
import core.plugin.Plugin;
|
import core.plugin.Plugin;
|
||||||
|
import org.rs09.consts.Items;
|
||||||
|
|
||||||
|
import static core.api.ContentAPIKt.isEquipped;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the black knights fortress node option plugin.
|
* Represents the black knights fortress node option plugin.
|
||||||
@@ -134,19 +137,20 @@ public final class BKFortressPlugin extends OptionHandler {
|
|||||||
}
|
}
|
||||||
player.getDialogueInterpreter().open(4605, Repository.findNPC(4605), true, true);
|
player.getDialogueInterpreter().open(4605, Repository.findNPC(4605), true, true);
|
||||||
break;
|
break;
|
||||||
case 2337: // Guard Door - only check for uniform from outside
|
case 2337: // Guard Door - only check for uniform from outside
|
||||||
switch (player.getLocation().getY()) {
|
switch (player.getLocation().getY()) {
|
||||||
case 3514: // Outside constant Y location, block the player for checks
|
case 3514: // Outside constant Y location, block the player for checks
|
||||||
if(!player.getEquipment().containsAtLeastOneItem(1139) || !player.getEquipment().containsAtLeastOneItem(1101)){
|
if(isEquipped(player, Items.BRONZE_MED_HELM_1139) && isEquipped(player, Items.IRON_CHAINBODY_1101)){
|
||||||
player.getDialogueInterpreter().open(4605, Repository.findNPC(4604), true);
|
DoorActionHandler.handleAutowalkDoor(player, (Scenery) node);
|
||||||
}
|
}
|
||||||
break;
|
else player.getDialogueInterpreter().open(4605, Repository.findNPC(4604), true);
|
||||||
case 3515: //Inside constant Y location, let the player through
|
break;
|
||||||
DoorActionHandler.handleAutowalkDoor(player, (Scenery) node);
|
case 3515: //Inside constant Y location, let the player through
|
||||||
default:
|
DoorActionHandler.handleAutowalkDoor(player, (Scenery) node);
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
break;
|
}
|
||||||
|
break;
|
||||||
case 74:
|
case 74:
|
||||||
case 73:// large door scenery id 73
|
case 73:// large door scenery id 73
|
||||||
if (player.getLocation().getX() == 3008) { // only opened from inside
|
if (player.getLocation().getX() == 3008) { // only opened from inside
|
||||||
|
|||||||
Reference in New Issue
Block a user