Ejemplo n.º 1
0
        public static void GameMapNoMovementMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            GameMapNoMovementMessage msg = (GameMapNoMovementMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            //if (account.Fight != null && account.FightData.IsFollowingGroup)
            //{
            //    account.Fight.LaunchFight(account.FightData.followingGroup.m_contextualId);
            //    return;
            //}
            //if (account.Path != null)
            //{
            //    account.SetStatus(Status.None);
            //    account.Log(new DebugTextInformation("[Path] NoMovement : Continue the path..."), 0);
            //    account.Path.PerformActionsStack();
            //}
            //account.Map.Moving = false;
            //account.Map.ConfirmMove();
            if (account.Path != null)
            {
                account.Path.PerformActionsStack();
            }

            //else if (account.Map.Moving)
            //{
            //    account.SetStatus(Status.None);
            //    if (account.Path != null)
            //        account.Path.ParsePath();
            //}
        }
Ejemplo n.º 2
0
        public static void GameMapNoMovementMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            GameMapNoMovementMessage msg = (GameMapNoMovementMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }

            if (account.Fight != null && account.Fight.IsFollowingGroup())
            {
                account.Fight.LaunchFight(account.Fight.followinggroup.m_contextualId);
            }
        }