mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed some incorrect replacement doors in Rellekka
Disabled the unimplemented TzHaar door Fixed some doors causing buggy player movement
This commit is contained in:
parent
3d7e93b6c2
commit
fcbea5acdc
3 changed files with 21 additions and 19 deletions
|
|
@ -943,7 +943,7 @@
|
|||
},
|
||||
{
|
||||
"id": "4148",
|
||||
"replaceId": "4248",
|
||||
"replaceId": "4246",
|
||||
"fence": "false",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
@ -1759,7 +1759,7 @@
|
|||
},
|
||||
{
|
||||
"id": "14245",
|
||||
"replaceId": "14248",
|
||||
"replaceId": "14246",
|
||||
"fence": "true",
|
||||
"metal": "false"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -24,22 +24,19 @@ class DeathPlateauInteractionListener : InteractionListener {
|
|||
)
|
||||
}
|
||||
override fun defineListeners() {
|
||||
on(Scenery.DOOR_3747, SCENERY, "open") { player, _ ->
|
||||
// Harold's Door
|
||||
if (player.location == location(2906, 3543, 1)) {
|
||||
openDialogue(player, DeathPlateauDoorDialogueFile(1))
|
||||
} else {
|
||||
DoorActionHandler.handleAutowalkDoor(player, getScenery(2906, 3543, 1))
|
||||
on(Scenery.DOOR_3747, SCENERY, "open") { player, node ->
|
||||
// Harold's door
|
||||
when (player.location) {
|
||||
location(2906, 3543, 1), location(2905, 3543, 1), location(2907, 3543, 1) -> openDialogue(player, DeathPlateauDoorDialogueFile(1))
|
||||
else -> DoorActionHandler.handleAutowalkDoor(player, node.asScenery())
|
||||
}
|
||||
return@on true
|
||||
}
|
||||
on(Scenery.DOOR_3745, SCENERY, "open") { player, node ->
|
||||
if (node.location == location(2823, 3555, 0)) {
|
||||
// 1st Door to Tenzing
|
||||
openDialogue(player, DeathPlateauDoorDialogueFile(2))
|
||||
} else if (node.location == location(2820, 3558, 0)) {
|
||||
// 2nd Door to chicken pen
|
||||
openDialogue(player, DeathPlateauDoorDialogueFile(3))
|
||||
when (node.location) {
|
||||
location(2823, 3555, 0) -> openDialogue(player, DeathPlateauDoorDialogueFile(2)) //1st door to Tenzing
|
||||
location(2820, 3558, 0) -> openDialogue(player, DeathPlateauDoorDialogueFile(3)) //2nd door to chicken pen
|
||||
else -> DoorActionHandler.handleAutowalkDoor(player, node.asScenery())
|
||||
}
|
||||
return@on true
|
||||
}
|
||||
|
|
@ -94,4 +91,4 @@ class DeathPlateauInteractionListener : InteractionListener {
|
|||
return@on true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,12 +27,11 @@ public final class TzhaarCityPlugin extends OptionHandler {
|
|||
|
||||
@Override
|
||||
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
||||
SceneryDefinition.forId(31284).getHandlers().put("option:enter", this);// karamja
|
||||
// cave.
|
||||
SceneryDefinition.forId(9359).getHandlers().put("option:enter", this);// tzhaar
|
||||
// exit
|
||||
SceneryDefinition.forId(31284).getHandlers().put("option:enter", this); //karamja cave.
|
||||
SceneryDefinition.forId(9359).getHandlers().put("option:enter", this); //tzhaar exit
|
||||
SceneryDefinition.forId(9356).getHandlers().put("option:enter", this);
|
||||
SceneryDefinition.forId(9369).getHandlers().put("option:pass", this);
|
||||
SceneryDefinition.forId(31292).getHandlers().put("option:go-through", this); //unimplemented door near fairy ring
|
||||
new TzhaarDialogue().init();
|
||||
return this;
|
||||
}
|
||||
|
|
@ -65,6 +64,12 @@ public final class TzhaarCityPlugin extends OptionHandler {
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case "go-through":
|
||||
switch (id) {
|
||||
case 31292:
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue