Esempio n. 1
0
        public static void broadcast_need(ClientManager.Client client, string msg)
        {
            string char_name = client.get_char_name();
            string area_name = client.area.name;
            int    area_id   = client.area.id;

            //self.send_all_cmd_pred('CT', '{}'.format(self.config['hostname']),
            //                       '=== Advert ===\r\n{} in {} [{}] needs {}\r\n==============='
            //                       .format(char_name, area_name, area_id, msg), pred=lambda x: not x.muted_adverts)
            //if self.config['use_district']:
            //    self.district_client.send_raw_message('NEED#{}#{}#{}#{}'.format(char_name, area_name, area_id, msg))
        }
Esempio n. 2
0
        public static void broadcast_globalmod(ClientManager.Client client, string msg, bool as_mod = false)
        {
            string username = client.name;
            string ooc_name = $"{"Global"}[{username}]";

            if (as_mod)
            {
                ooc_name += "[MOD]";
            }
            //self.send_all_cmd_pred('CT', ooc_name, msg, pred=lambda x: not x.muted_global)

            //if self.config['use_district']:
            //	self.district_client.send_raw_message(
            //	'GLOBAL#{}#{}#{}#{}'.format(int(as_mod), client.area.id, username, msg))
        }
Esempio n. 3
0
 public ClientError(ClientManager.Client c, string message)
     : base(message)
 {
     c.send_host_message(message);
 }
Esempio n. 4
0
 public static void broadcast_globalooc(ClientManager.Client client, string msg, bool as_mod = false)
 {
 }