예제 #1
0
        protected void SendPartyMessage(int cliloc, int hue = 0x3B2)
        {
            if (HasBegun)
            {
                foreach (var pm in Region.GetEnumeratedMobiles().OfType <PlayerMobile>())
                {
                    pm.SendLocalizedMessage(cliloc, null, hue);
                }
            }
            else
            {
                if (PartyLeader == null)
                {
                    return;
                }

                Party p = Party.Get(PartyLeader);

                if (p != null)
                {
                    p.Members.ForEach(info => info.Mobile.SendLocalizedMessage(cliloc, null, hue));
                }
                else
                {
                    PartyLeader.SendLocalizedMessage(cliloc, null, hue);
                }
            }
        }
예제 #2
0
        protected void SendPartyMessage(int cliloc, int hue = 0x3B2)
        {
            if (PartyLeader == null)
            {
                return;
            }

            Party p = Party.Get(PartyLeader);

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