Ejemplo n.º 1
0
        private void ReleaseControl(NpcInfo npc)
        {
            if (null != npc.ControllerObject)
            {
                int controller = npc.ControllerObject.GetId();
                int controlled = npc.GetId();
                CharacterInfo.ReleaseControlObject(npc.ControllerObject, npc);

                Msg_RC_ControlObject builder = DataSyncUtility.BuildControlObjectMessage(controller, controlled, false);
                NotifyAllUser(builder);
            }
        }
Ejemplo n.º 2
0
        private void ReleaseControl(UserInfo user)
        {
            if (null != user.ControlledObject)
            {
                int controller = user.GetId();
                int controlled = user.ControlledObject.GetId();
                CharacterInfo.ReleaseControlObject(user, user.ControlledObject);

                Msg_RC_ControlObject builder = DataSyncUtility.BuildControlObjectMessage(controller, controlled, false);
                NotifyAllUser(builder);
            }
        }