mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-28 05:45:10 -06:00
weak script not to hinder logout
This commit is contained in:
parent
70b4c7e638
commit
4242be44b2
1 changed files with 5 additions and 5 deletions
|
|
@ -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}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue