mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-21 18:35:11 -06:00
fix dest override for the other damn pin
This commit is contained in:
parent
c4445920f1
commit
04fffd5668
1 changed files with 19 additions and 5 deletions
|
|
@ -75,9 +75,6 @@ class EW2Listeners : InteractionListener {
|
|||
// interface
|
||||
const val LEVER_SCHEM = 466
|
||||
|
||||
// scenery
|
||||
const val EXTRACTOR_WRAPPER = 18725
|
||||
|
||||
// graphics
|
||||
const val EXTRACTOR_GOOD_GFX = Graphics.EXTRACTOR_HAT_CHAIR_807
|
||||
const val EXTRACTOR_BAD_GFX = Graphics.IMPROPERLY_EXTRACTOR_HAT_CHAIR_808
|
||||
|
|
@ -940,7 +937,14 @@ class EW2Listeners : InteractionListener {
|
|||
if (removeItem(player, used)) {
|
||||
sendItemDialogue(player, used, "You replace the broken claw.")
|
||||
setVarbit(player, EW2CraneStateVarbit, 1, true)
|
||||
syncCrane(player)
|
||||
playAudio(player, Sounds.EW2_PLACE_PIPE_3179) // this sound was confirmed via youtube source
|
||||
|
||||
// update the crane state
|
||||
val craneLoc = toInstance(player, Location.create(1952, 5143, 2))
|
||||
val currentObject = getScenery(craneLoc)
|
||||
if (currentObject != null) {
|
||||
replaceScenery(currentObject, Scenery.OLD_CRANE_18624, -1)
|
||||
}
|
||||
}
|
||||
return@onUseWith true
|
||||
}
|
||||
|
|
@ -1415,7 +1419,7 @@ class EW2Listeners : InteractionListener {
|
|||
return@setDest toInstance(entity as Player, Location.create(1953, 5167, 3))
|
||||
}
|
||||
|
||||
// the double stacked pins and the cogs on them.
|
||||
// the double stacked pins and the cogs on them
|
||||
setDest(
|
||||
IntType.SCENERY, intArrayOf(
|
||||
Scenery.PIN_18664, Scenery.PIN_18665,
|
||||
|
|
@ -1425,5 +1429,15 @@ class EW2Listeners : InteractionListener {
|
|||
) { entity, _ ->
|
||||
return@setDest toInstance(entity as Player, Location.create(1958, 5157, 2))
|
||||
}
|
||||
|
||||
// the single pin and its cogs
|
||||
setDest(
|
||||
IntType.SCENERY, intArrayOf(
|
||||
Scenery.PIN_18666,
|
||||
Scenery.COG_18670, Scenery.COG_18671, Scenery.COG_18672,
|
||||
), "use", "take"
|
||||
) { entity, _ ->
|
||||
return@setDest toInstance(entity as Player, Location.create(1958, 5156, 2))
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue