示例#1
0
        protected void SendPartyMessage(string message, int hue = 0x3B2)
        {
            if (HasBegun)
            {
                foreach (var pm in Region.GetEnumeratedMobiles().OfType <PlayerMobile>())
                {
                    pm.SendMessage(hue, message);
                }
            }
            else
            {
                if (PartyLeader == null)
                {
                    return;
                }

                Party p = Party.Get(PartyLeader);

                if (p != null)
                {
                    p.Members.ForEach(info => info.Mobile.SendMessage(hue, message));
                }
                else
                {
                    PartyLeader.SendMessage(hue, message);
                }
            }
        }