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.Graphics;
|
||||
import core.plugin.Plugin;
|
||||
import org.rs09.consts.Items;
|
||||
|
||||
import static core.api.ContentAPIKt.isEquipped;
|
||||
|
||||
/**
|
||||
* 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);
|
||||
break;
|
||||
case 2337: // Guard Door - only check for uniform from outside
|
||||
switch (player.getLocation().getY()) {
|
||||
case 3514: // Outside constant Y location, block the player for checks
|
||||
if(!player.getEquipment().containsAtLeastOneItem(1139) || !player.getEquipment().containsAtLeastOneItem(1101)){
|
||||
player.getDialogueInterpreter().open(4605, Repository.findNPC(4604), true);
|
||||
}
|
||||
break;
|
||||
case 3515: //Inside constant Y location, let the player through
|
||||
DoorActionHandler.handleAutowalkDoor(player, (Scenery) node);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 2337: // Guard Door - only check for uniform from outside
|
||||
switch (player.getLocation().getY()) {
|
||||
case 3514: // Outside constant Y location, block the player for checks
|
||||
if(isEquipped(player, Items.BRONZE_MED_HELM_1139) && isEquipped(player, Items.IRON_CHAINBODY_1101)){
|
||||
DoorActionHandler.handleAutowalkDoor(player, (Scenery) node);
|
||||
}
|
||||
else player.getDialogueInterpreter().open(4605, Repository.findNPC(4604), true);
|
||||
break;
|
||||
case 3515: //Inside constant Y location, let the player through
|
||||
DoorActionHandler.handleAutowalkDoor(player, (Scenery) node);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 74:
|
||||
case 73:// large door scenery id 73
|
||||
if (player.getLocation().getX() == 3008) { // only opened from inside
|
||||
|
||||
Reference in New Issue
Block a user