From d44612bd0886fddc01bc663392639ab71a3a266d Mon Sep 17 00:00:00 2001 From: Snipzil Date: Wed, 21 Oct 2026 22:25:26 -0400 Subject: [PATCH] feat(client): any animation the client has, sent as "sja:," An action message "sja:," plays animation (1 to 255) on the sender's avatar for everyone else, and holds it as their idle (AvatarWorldView.holdIdleAnim) until they walk or do another action, so the game's idle refreshes don't stand them back up. Not in minigames. A client without this finds no action by that name and ignores it. Co-Authored-By: Claude Opus 5.5 --- swf-src/AvatarWorldView.as | 10 ++++++++++ swf-src/UserCommXtCommManager.as | 14 ++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/swf-src/AvatarWorldView.as b/swf-src/AvatarWorldView.as index 0f5020c..f3db3b9 100644 --- a/swf-src/AvatarWorldView.as +++ b/swf-src/AvatarWorldView.as @@ -805,6 +805,16 @@ package avatar return false; } + // plays an animation and keeps it as this avatar's idle, so the client's + // own idle refreshes don't put the avatar back to standing. Walking or + // an action replaces it, as with any idle. + public function holdIdleAnim(param1:int, param2:Boolean) : void + { + _lastIdleAnim = param1; + _lastIdleFlip = param2; + playAnim(param1,param2); + } + public function getBaseIdle() : int { return _roomType == 1 ? 32 : 14; diff --git a/swf-src/UserCommXtCommManager.as b/swf-src/UserCommXtCommManager.as index 3897be7..340a28a 100644 --- a/swf-src/UserCommXtCommManager.as +++ b/swf-src/UserCommXtCommManager.as @@ -777,6 +777,20 @@ package avatar _loc2_ = EmoticonUtility.stringForId(int(_loc2_)); break; case 3: + // "sja:,": an animation that is not one of + // the emote-bar actions (any id the client has, 1-255), + // sent as an action message by modded clients. The + // normal client finds no action for it and drops it. + if(_loc2_.indexOf("sja:") == 0) + { + _loc10_ = _loc2_.substr(4).split(","); + _loc12_ = int(_loc10_[0]); + if(_loc19_ != gMainFrame.server.userId && _loc12_ > 0 && _loc12_ <= 255 && !MinigameManager.inMinigame() && AvatarManager.avatarViewList[_loc19_]) + { + AvatarManager.avatarViewList[_loc19_].holdIdleAnim(_loc12_,_loc10_[1] == "1"); + } + return; + } _loc5_ = _actionMgr.matchActionString(_loc2_); if(_loc5_) {