コード例 #1
0
        private void GrantTitle(PlayerMobile pm, TitleProfile p)
        {
            if (Title == null || pm == null || p == null)
            {
                return;
            }

            if (p.Contains(Title))
            {
                pm.SendMessage(0x22, "YOU ALREADY OWN THIS TITLE.  THIS SHOULDN'T HAPPEN.  PLEASE PAGE IN.");
                return;
            }

            p.Add(Title);

            pm.PrivateOverheadMessage(
                MessageType.Label, 1287, true,
                "*You have gained the title: " + (!pm.Female ? Title.MaleTitle : Title.FemaleTitle) + "*", pm.NetState);

            Delete();
        }
コード例 #2
0
        private void GrantHue(PlayerMobile pm, TitleProfile p)
        {
            if (TitleHue == null || pm == null || p == null)
            {
                return;
            }

            if (p.Contains(TitleHue))
            {
                pm.SendMessage(0x22, "YOU ALREADY OWN THIS HUE.  THIS SHOULDN'T HAPPEN.  PLEASE PAGE IN.");
                return;
            }

            p.Add(TitleHue);

            pm.PrivateOverheadMessage(
                MessageType.Label, 1287, true,
                "*You have gained the title hue: " + TitleHue.Hue + "*", pm.NetState);

            Delete();
        }
コード例 #3
0
        private void GrantHue(PlayerMobile pm, TitleProfile p)
        {
            if (TitleHue == null || pm == null || p == null)
            {
                return;
            }

            if (p.Contains(TitleHue))
            {
                pm.SendMessage(0x22, "You already own this title hue.");
                return;
            }

            p.Add(TitleHue);

            pm.PrivateOverheadMessage(
                MessageType.Label, 1287, true, "*The scroll crumbles in your hands as you absorb its power*", pm.NetState);

            LoggingCustom.Log("HueScrollsUsed.txt", String.Format("{0} -> {1} ({2})", pm, this, TitleHue));

            Delete();
        }
コード例 #4
0
ファイル: HueScroll.cs プロジェクト: greeduomacro/UO-Forever
		private void GrantHue(PlayerMobile pm, TitleProfile p)
		{
			if (TitleHue == null || pm == null || p == null)
			{
				return;
			}

			if (p.Contains(TitleHue))
			{
				pm.SendMessage(0x22, "You already own this title hue.");
				return;
			}

			p.Add(TitleHue);

			pm.PrivateOverheadMessage(
				MessageType.Label, 1287, true, "*The scroll crumbles in your hands as you absorb its power*", pm.NetState);

			LoggingCustom.Log("HueScrollsUsed.txt", String.Format("{0} -> {1} ({2})", pm, this, TitleHue));

			Delete();
		}