From 04fffd56684c7e806629935263e93b4089c5c92c Mon Sep 17 00:00:00 2001 From: aidan Date: Sun, 12 Jul 2026 19:17:52 -0500 Subject: [PATCH] fix dest override for the other damn pin --- .../quest/elementalworkshop2/EW2Listeners.kt | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/Server/src/main/content/region/kandarin/seers/quest/elementalworkshop2/EW2Listeners.kt b/Server/src/main/content/region/kandarin/seers/quest/elementalworkshop2/EW2Listeners.kt index 8f64df01f..3ae7324c0 100644 --- a/Server/src/main/content/region/kandarin/seers/quest/elementalworkshop2/EW2Listeners.kt +++ b/Server/src/main/content/region/kandarin/seers/quest/elementalworkshop2/EW2Listeners.kt @@ -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)) + } } } \ No newline at end of file