Exemplo n.º 1
0
 public void SCRem(CSClient session, SCRem message)
 {
     foreach (var c in Program.server.Clients)
     {
         foreach (var p in message.List)
         {
             c.Player.Character.Friends.DisconnectFriend(p.btName.MakeString());
         }
     }
 }
Exemplo n.º 2
0
        public void RemClient(SCRem message)
        {
            if (!_serverClientList.ContainsKey(message.Server))
            {
                return;
            }

            var name = message.List.First().btName.MakeString();

            var client = _serverClientList[message.Server].First(x => x.btName.MakeString() == name);

            ServerManager.Instance.BroadCast(message);
            _serverClientList[message.Server].Remove(client);
        }
Exemplo n.º 3
0
 public void SCRem(CSClient session, SCRem message)
 {
     foreach (var c in Program.server.Clients.Where(x => x.Player != null && x.Player.Status == MU.Resources.LoginStatus.Playing))
     {
         foreach (var p in message.List)
         {
             var name = p.btName.MakeString();
             c.Player.Character?.Friends.DisconnectFriend(name);
             var m = c.Player.Character.Guild?.Find(name) ?? null;
             if (m != null && message.Server != Program.ServerCode)
             {
                 m.Server = 0xff;
             }
         }
     }
 }
Exemplo n.º 4
0
 public void SCRem(CSSession session, SCRem message)
 {
     Program.Clients.RemClient(message);
 }