Esempio n. 1
0
        internal void SyncPlayerStopSkill(CharacterInfo entity, int skillId)
        {
            if (entity.IsHaveStateFlag(CharacterState_Type.CST_Sleep))
            {
                return;
            }
            //LogSystem.Debug("SyncStopSkill {0}, entity {1}", skillId, entity.GetId());
            int id = entity.GetId();
            MovementStateInfo msi = entity.GetMovementStateInfo();

            if (id == WorldSystem.Instance.PlayerSelfId)
            {
                ArkCrossEngineMessage.Msg_CRC_StopSkill msg = new ArkCrossEngineMessage.Msg_CRC_StopSkill();
                msg.skill_id = skillId;
                SendMessage(msg);
            }
            else if (entity.OwnerId == WorldSystem.Instance.PlayerSelfId)
            {
                ArkCrossEngineMessage.Msg_CRC_NpcStopSkill msg = new ArkCrossEngineMessage.Msg_CRC_NpcStopSkill();
                msg.npc_id   = entity.GetId();
                msg.skill_id = skillId;
                SendMessage(msg);
            }
        }
Esempio n. 2
0
 internal void SyncPlayerStopSkill(int skillId)
 {
     ArkCrossEngineMessage.Msg_CRC_StopSkill msg = new ArkCrossEngineMessage.Msg_CRC_StopSkill();
     msg.skill_id = skillId;
     SendMessage(msg);
 }