add an open listener to hatch

This commit is contained in:
aidan 2026-05-27 20:41:26 -05:00
parent 9300b98766
commit a21577191c

View file

@ -377,6 +377,16 @@ class EW2Listeners : InteractionListener {
return@onUseWith true
}
// unlocking the hatch
on(Scenery.HATCH_18595, IntType.SCENERY, "open") { player, _ ->
if (inInventory(player, Items.KEY_9722)) {
sendItemDialogue(player, Items.KEY_9722, "The key fits the lock in the hatch perfectly.")
setVarbit(player, EW2HatchVarbit, 1, true)
} else sendMessage(player, "The hatch is locked.")
return@on true
}
// unlocked center hatch down to EW2
on(Scenery.HATCH_18596, IntType.SCENERY, "climb-down") { player, _ ->
sendMessage(player, "You climb down the stairs.")