Fixed getting kidnapped by a random event mid-animation

This commit is contained in:
Player Name
2026-02-08 12:44:57 +00:00
committed by Ryan
parent 3199974f59
commit b6b27190be
@@ -11,6 +11,7 @@ import core.game.world.update.flag.context.Graphics
import org.rs09.consts.Sounds import org.rs09.consts.Sounds
fun kidnapPlayer(npc: NPC, player: Player, dest: Location, playerLine: String? = null, callback: (player: Player, npc: NPC) -> Unit) { fun kidnapPlayer(npc: NPC, player: Player, dest: Location, playerLine: String? = null, callback: (player: Player, npc: NPC) -> Unit) {
clearScripts(player)
val lockDuration = if (playerLine != null) 4 else 6 val lockDuration = if (playerLine != null) 4 else 6
lock(player, lockDuration) lock(player, lockDuration)
queueScript(player, 1, QueueStrength.SOFT) { stage: Int -> queueScript(player, 1, QueueStrength.SOFT) { stage: Int ->