ComputeTitle() public static method

public static ComputeTitle ( Mobile beholder, Mobile beheld ) : string
beholder Mobile
beheld Mobile
return string
Exemplo n.º 1
0
        public static void EventSink_PaperdollRequest(PaperdollRequestEventArgs e)
        {
            Mobile beholder = e.Beholder;
            Mobile beheld   = e.Beheld;

            beholder.Send(new DisplayPaperdoll(beheld, Titles.ComputeTitle(beholder, beheld), beheld.AllowEquipFrom(beholder)));
        }
Exemplo n.º 2
0
        public static void EventSink_PaperdollRequest(PaperdollRequestEventArgs e)
        {
            Mobile beholder = e.Beholder;
            Mobile beheld   = e.Beheld;

            beholder.Send(new DisplayPaperdoll(beheld, Titles.ComputeTitle(beholder, beheld), beheld.AllowEquipFrom(beholder)));

            foreach (Item item in beheld.Items)
            {
                beholder.Send(item.OPLPacket);
            }

            // NOTE: OSI sends MobileUpdate when opening your own paperdoll.
            // It has a very bad rubber-banding affect. What positive affects does it have?
        }
Exemplo n.º 3
0
        public static void EventSink_PaperdollRequest(Mobile beholder, Mobile beheld)
        {
            beholder.NetState.SendDisplayPaperdoll(
                beheld.Serial,
                Titles.ComputeTitle(beholder, beheld),
                beheld.Warmode,
                beheld.AllowEquipFrom(beholder)
                );

            for (var i = 0; i < beheld.Items.Count; ++i)
            {
                beheld.Items[i].SendOPLPacketTo(beholder.NetState);
            }

            // NOTE: OSI sends MobileUpdate when opening your own paperdoll.
            // It has a very bad rubber-banding affect. What positive affects does it have?
        }
Exemplo n.º 4
0
        public static void EventSink_PaperdollRequest(Mobile beholder, Mobile beheld)
        {
            beholder.Send(new DisplayPaperdoll(beheld, Titles.ComputeTitle(beholder, beheld), beheld.AllowEquipFrom(beholder)));

            if (ObjectPropertyList.Enabled)
            {
                List <Item> items = beheld.Items;

                for (int i = 0; i < items.Count; ++i)
                {
                    beholder.Send(items[i].OPLPacket);
                }

                // NOTE: OSI sends MobileUpdate when opening your own paperdoll.
                // It has a very bad rubber-banding affect. What positive affects does it have?
            }
        }
Exemplo n.º 5
0
        public static void EventSink_PaperdollRequest(PaperdollRequestEventArgs e)
        {
            Mobile beholder = e.Beholder;
            Mobile beheld   = e.Beheld;

            beholder.Send(new DisplayPaperdoll(beheld, Titles.ComputeTitle(beholder, beheld), beheld.AllowEquipFrom(beholder)));

            if (ObjectPropertyList.Enabled)
            {
                List <Item> items = beheld.Items;

                for (int i = 0; i < items.Count; ++i)
                {
                    beholder.Send(items[i].OPLPacket);
                }
            }
        }
Exemplo n.º 6
0
        public static void EventSink_ProfileRequest(ProfileRequestEventArgs e)
        {
            Mobile beholder = e.Beholder;
            Mobile beheld   = e.Beheld;

            if (!beheld.Player)
            {
                return;
            }

            if (beholder.Map != beheld.Map || !beholder.InRange(beheld, 12) || !beholder.CanSee(beheld))
            {
                return;
            }

            string header = Titles.ComputeTitle(beholder, beheld);

            string footer = "";

            if (beheld.ProfileLocked)
            {
                if (beholder == beheld)
                {
                    footer = "Your profile has been locked.";
                }
                else if (beholder.AccessLevel >= AccessLevel.Counselor)
                {
                    footer = "This profile has been locked.";
                }
            }

            if (footer.Length == 0 && beholder == beheld)
            {
                footer = GetAccountDuration(beheld);
            }

            string body = beheld.Profile;

            if (body == null || body.Length <= 0)
            {
                body = "";
            }

            beholder.Send(new DisplayProfile(beholder != beheld || !beheld.ProfileLocked, beheld, header, body, footer));
        }
Exemplo n.º 7
0
        public static void EventSink_PaperdollRequest(PaperdollRequestEventArgs e)
        {
            Mobile beholder = e.Beholder;
            Mobile beheld   = e.Beheld;

            beholder.Send(new DisplayPaperdoll(beheld, Titles.ComputeTitle(beholder, beheld), beheld.AllowEquipFrom(beholder)));

            if (!ObjectPropertyList.Enabled || !beholder.EraAOS)
            {
                return;
            }

            List <Item> items = beheld.Items;

            foreach (Item i in items)
            {
                beholder.Send(i.OPLPacket);
            }

            // NOTE: OSI sends MobileUpdate when opening your own paperdoll.
            // It has a very bad rubber-banding affect. What positive affects does it have?
        }
Exemplo n.º 8
0
        public static void EventSink_ProfileRequest(Mobile beholder, Mobile beheld)
        {
            if (!beheld.Player)
            {
                return;
            }

            if (beholder.Map != beheld.Map || !beholder.InRange(beheld, 12) || !beholder.CanSee(beheld))
            {
                return;
            }

            var header = Titles.ComputeTitle(beholder, beheld);

            var footer = "";

            if (beheld.ProfileLocked)
            {
                if (beholder == beheld)
                {
                    footer = "Your profile has been locked.";
                }
                else if (beholder.AccessLevel >= AccessLevel.Counselor)
                {
                    footer = "This profile has been locked.";
                }
            }

            if (footer.Length == 0 && beholder == beheld)
            {
                footer = GetAccountDuration(beheld);
            }

            var body   = beheld.Profile ?? "";
            var serial = beholder != beheld || !beheld.ProfileLocked ? beheld.Serial : Serial.Zero;

            beholder.NetState.SendDisplayProfile(serial, header, body, footer);
        }
Exemplo n.º 9
0
 public static void EventSink_PaperdollRequest(Mobile beholder, Mobile beheld)
 {
     beholder.NetState.SendDisplayPaperdoll(beheld.Serial, Titles.ComputeTitle(beholder, beheld), beheld.Warmode, beheld.AllowEquipFrom(beholder));
 }
Exemplo n.º 10
0
 public static void EventSink_PaperdollRequest(PaperdollRequestEventArgs e)
 {
     e.Beholder.Send(new DisplayPaperdoll(e.Beheld, Titles.ComputeTitle(e.Beholder, e.Beheld), e.Beheld.AllowEquipFrom(e.Beholder)));
 }