mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-28 05:45:10 -06:00
add an open listener to hatch
This commit is contained in:
parent
9300b98766
commit
a21577191c
1 changed files with 10 additions and 0 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue