push this to go work on hazeel

This commit is contained in:
aidan 2026-01-25 08:04:45 -06:00
parent 39e6a72e8a
commit b388428d54
2 changed files with 14 additions and 0 deletions

View file

@ -123,6 +123,12 @@ class EW2Listeners : InteractionListener {
val mat = getVarbit(player, EW2CraneStateVarbit)
val pos = getVarbit(player, EW2CranePosVarbit)
// crane location [1952, 5143, 2]
//removeScenery(scenery)
//addScenery(scenery)
//getScenery(scenery)
//replaceScenery(scenery)
val index = (mat * 4) + pos
val newId = craneStates[index]
val center = Location.create(1954, 5145, 2)
@ -133,6 +139,9 @@ class EW2Listeners : InteractionListener {
// look for the object at this specific tile
val currentObject = RegionManager.getObject(checkLoc.z, checkLoc.x, checkLoc.y) ?: continue
//val currentObject = getScenery(checkLoc.z, checkLoc.x, checkLoc.y) ?: continue
// crane is an object not a scenery to get
// check if the object at this tile is a crane
if (craneStates.contains(currentObject.id)) {
@ -604,6 +613,9 @@ class EW2Listeners : InteractionListener {
// Increment from 0-7, or reset to 0 if at 8
val nextState = if (currentState < 8) currentState + 1 else 0
val trackscen = getScenery(1953, 5162, 2)!!
addScenery(18751, Location.create(1951, 5159, 2))
removeScenery(trackscen)
setVarbit(player, EW2TankDoorVarbit, nextState, true)
syncTankDoor(player)

View file

@ -4,11 +4,13 @@ import content.region.kandarin.seers.quest.elementalworkshop2.EW2Listeners.Compa
import content.region.kandarin.seers.quest.elementalworkshop2.EW2Listeners.Companion.syncCrane
import core.game.node.entity.Entity
import core.game.node.entity.player.Player
import core.game.world.map.RegionManager
import core.plugin.Initializable
import core.game.world.map.zone.MapZone
import core.game.world.map.zone.ZoneBorders
import core.game.world.map.zone.ZoneBuilder
import core.plugin.Plugin
import org.rs09.consts.Scenery
/**
* This updates the Elemental Workshop II state whenever the player enters