misc stuff

This commit is contained in:
Beck 2026-06-04 21:18:15 -07:00
parent 6eb1174db8
commit 531699b124

View file

@ -19,9 +19,15 @@ import org.rs09.consts.NPCs
import org.rs09.consts.Scenery
import org.rs09.consts.Sounds
/**
* Authenticity source Aug 18 2009
* https://www.youtube.com/watch?v=ikbX12Xywxs
* * Author Beck, Vexia
**/
class RestlessGhostListeners : InteractionListener {
companion object {
//This is not in the Animations consts
private const val Animations_HUMAN_CLOSE_CHEST_535 = 535
private const val CLOSED_COFFIN = Scenery.COFFIN_2145
@ -39,10 +45,10 @@ class RestlessGhostListeners : InteractionListener {
return restlessGhostNPC
}
//client side only visual, removes the skeleton on ground, resets in ~2mins
//removes the skeleton on ground, resets in ~2mins
private fun animSkeleAlive(player: Player, skeleScenery: core.game.node.scenery.Scenery) {
//Missing: find animation and maybe sfx
//Missing: find animation and maybe sfx of the skeleton coming alive
queueScript(player, 4) {_ ->
SceneryBuilder.remove(skeleScenery, 200)
@ -178,7 +184,7 @@ class RestlessGhostListeners : InteractionListener {
sendMessage(player, "The skeleton in the corner suddenly comes to life!")
//skele comes to live from scenery 15057 with an animation,
//but idk how to query for it to at least remove it from the world briefly
//but idk how to select it to at least remove/hide it from the world briefly
//animSkeleAlive(player, node as core.game.node.scenery.Scenery)
//spawn in skeleton