From 4242be44b214d55fe92b51f94be8aca328e45254 Mon Sep 17 00:00:00 2001 From: psyopcutie Date: Tue, 21 Jul 2026 07:13:36 +0200 Subject: [PATCH] weak script not to hinder logout --- .../game/system/command/sets/AnimationCommandSet.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Server/src/main/core/game/system/command/sets/AnimationCommandSet.kt b/Server/src/main/core/game/system/command/sets/AnimationCommandSet.kt index 4ecf47951..8034d1d5f 100644 --- a/Server/src/main/core/game/system/command/sets/AnimationCommandSet.kt +++ b/Server/src/main/core/game/system/command/sets/AnimationCommandSet.kt @@ -40,7 +40,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) { val animationTo = args[2].toInt() val animationDelay = (args.getOrNull(3) ?: "3").toInt() - queueScript(player, 1, QueueStrength.STRONG) { stage: Int -> + queueScript(player, 1, QueueStrength.WEAK) { stage: Int -> val animationId = animationFrom + stage animate(player, animationId, true) notify(player, "Playing animation $animationId") @@ -64,7 +64,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) { val animationDelay = (args.getOrNull(3) ?: "3").toInt() var animationId = animationFrom - queueScript(player, 1, QueueStrength.STRONG) { + queueScript(player, 1, QueueStrength.WEAK) { while (animationId <= animationTo && !HumanoidAnimationIds.contains(animationId)) { animationId++ } @@ -95,7 +95,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) { var graphicsId = graphicsFrom - queueScript(player, 1, QueueStrength.SOFT) { + queueScript(player, 1, QueueStrength.WEAK) { visualize(player, -1, Graphics(graphicsId, graphicsHeight)) notify(player, "Playing graphics $graphicsId") @@ -123,7 +123,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) { openInterface(player, interfaceId) - queueScript(player, 1, QueueStrength.SOFT) { + queueScript(player, 1, QueueStrength.WEAK) { animateInterface(player, interfaceId, childId, animationId) notify(player, "Playing interface animation $animationId on $interfaceId:$childId") @@ -153,7 +153,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) { var animationId = animationFrom - queueScript(player, 1, QueueStrength.SOFT) { + queueScript(player, 1, QueueStrength.WEAK) { animateScenery(player, sceneryObject, animationId) notify(player, "Playing scenery animation $animationId on scenery ${sceneryObject.id}")