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_) {