Fixed some incorrect replacement doors in Rellekka
Disabled the unimplemented TzHaar door Fixed some doors causing buggy player movement
This commit is contained in:
@@ -943,7 +943,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "4148",
|
"id": "4148",
|
||||||
"replaceId": "4248",
|
"replaceId": "4246",
|
||||||
"fence": "false",
|
"fence": "false",
|
||||||
"metal": "false"
|
"metal": "false"
|
||||||
},
|
},
|
||||||
@@ -1759,7 +1759,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "14245",
|
"id": "14245",
|
||||||
"replaceId": "14248",
|
"replaceId": "14246",
|
||||||
"fence": "true",
|
"fence": "true",
|
||||||
"metal": "false"
|
"metal": "false"
|
||||||
},
|
},
|
||||||
|
|||||||
+10
-13
@@ -24,22 +24,19 @@ class DeathPlateauInteractionListener : InteractionListener {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
override fun defineListeners() {
|
override fun defineListeners() {
|
||||||
on(Scenery.DOOR_3747, SCENERY, "open") { player, _ ->
|
on(Scenery.DOOR_3747, SCENERY, "open") { player, node ->
|
||||||
// Harold's Door
|
// Harold's door
|
||||||
if (player.location == location(2906, 3543, 1)) {
|
when (player.location) {
|
||||||
openDialogue(player, DeathPlateauDoorDialogueFile(1))
|
location(2906, 3543, 1), location(2905, 3543, 1), location(2907, 3543, 1) -> openDialogue(player, DeathPlateauDoorDialogueFile(1))
|
||||||
} else {
|
else -> DoorActionHandler.handleAutowalkDoor(player, node.asScenery())
|
||||||
DoorActionHandler.handleAutowalkDoor(player, getScenery(2906, 3543, 1))
|
|
||||||
}
|
}
|
||||||
return@on true
|
return@on true
|
||||||
}
|
}
|
||||||
on(Scenery.DOOR_3745, SCENERY, "open") { player, node ->
|
on(Scenery.DOOR_3745, SCENERY, "open") { player, node ->
|
||||||
if (node.location == location(2823, 3555, 0)) {
|
when (node.location) {
|
||||||
// 1st Door to Tenzing
|
location(2823, 3555, 0) -> openDialogue(player, DeathPlateauDoorDialogueFile(2)) //1st door to Tenzing
|
||||||
openDialogue(player, DeathPlateauDoorDialogueFile(2))
|
location(2820, 3558, 0) -> openDialogue(player, DeathPlateauDoorDialogueFile(3)) //2nd door to chicken pen
|
||||||
} else if (node.location == location(2820, 3558, 0)) {
|
else -> DoorActionHandler.handleAutowalkDoor(player, node.asScenery())
|
||||||
// 2nd Door to chicken pen
|
|
||||||
openDialogue(player, DeathPlateauDoorDialogueFile(3))
|
|
||||||
}
|
}
|
||||||
return@on true
|
return@on true
|
||||||
}
|
}
|
||||||
@@ -94,4 +91,4 @@ class DeathPlateauInteractionListener : InteractionListener {
|
|||||||
return@on true
|
return@on true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,12 +27,11 @@ public final class TzhaarCityPlugin extends OptionHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
||||||
SceneryDefinition.forId(31284).getHandlers().put("option:enter", this);// karamja
|
SceneryDefinition.forId(31284).getHandlers().put("option:enter", this); //karamja cave.
|
||||||
// cave.
|
SceneryDefinition.forId(9359).getHandlers().put("option:enter", this); //tzhaar exit
|
||||||
SceneryDefinition.forId(9359).getHandlers().put("option:enter", this);// tzhaar
|
|
||||||
// exit
|
|
||||||
SceneryDefinition.forId(9356).getHandlers().put("option:enter", this);
|
SceneryDefinition.forId(9356).getHandlers().put("option:enter", this);
|
||||||
SceneryDefinition.forId(9369).getHandlers().put("option:pass", 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();
|
new TzhaarDialogue().init();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -65,6 +64,12 @@ public final class TzhaarCityPlugin extends OptionHandler {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "go-through":
|
||||||
|
switch (id) {
|
||||||
|
case 31292:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user