예제 #1
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1070881, Dipper); // Hand Dipped by ~1_name~
            list.Add(1070880);         // Winter 2004
        }
예제 #2
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1074502); // It looks explosive.
            list.Add(1075085); // Requirement: Mondain's Legacy
        }
예제 #3
0
        public override void AddNameProperties(IPropertyList list)
        {
            base.AddNameProperties(list);

            var index = CraftResources.GetIndex(Resource);

            if (index >= 1 && index <= 8)
            {
                return;
            }

            if (!CraftResources.IsStandard(Resource))
            {
                var num = CraftResources.GetLocalizationNumber(Resource);

                if (num > 0)
                {
                    list.Add(num);
                }
                else
                {
                    list.Add(CraftResources.GetName(Resource));
                }
            }
        }
예제 #4
0
    public override void GetProperties(IPropertyList list)
    {
        base.GetProperties(list);

        if (_guild?.Disbanded == false)
        {
            string name;
            string abbr;

            if ((name = _guild.Name) == null || (name = name.Trim()).Length <= 0)
            {
                name = "(unnamed)";
            }

            if ((abbr = _guild.Abbreviation) == null || (abbr = abbr.Trim()).Length <= 0)
            {
                abbr = "";
            }

            // list.Add( 1060802, Utility.FixHtml( name ) ); // Guild name: ~1_val~
            list.Add(1060802, $"{Utility.FixHtml(name)} [{Utility.FixHtml(abbr)}]");
        }
        else if (_guildName != null && _guildAbbrev != null)
        {
            list.Add(1060802, $"{Utility.FixHtml(_guildName)} [{Utility.FixHtml(_guildAbbrev)}]");
        }
    }
예제 #5
0
파일: Hides.cs 프로젝트: AsYlum-/ModernUO
 public override void AddNameProperty(IPropertyList list)
 {
     if (Amount > 1)
     {
         list.Add(1050039, $"{Amount}\t{1024216:#}"); // ~1_NUMBER~ ~2_ITEMNAME~
     }
     else
     {
         list.Add(1024216); // pile of hides
     }
 }
예제 #6
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            list.Add(GetDescription());

            if (!Dead && _timerToken.Running)
            {
                list.Add(1074507); // Gasping for air
            }
        }
예제 #7
0
파일: Ingots.cs 프로젝트: AsYlum-/ModernUO
 public override void AddNameProperty(IPropertyList list)
 {
     if (Amount > 1)
     {
         list.Add(1050039, $"{Amount}\t{1027154:#}"); // ~1_NUMBER~ ~2_ITEMNAME~
     }
     else
     {
         list.Add(1027154); // ingots
     }
 }
예제 #8
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (Amount > 1)
     {
         list.Add(1050039, $"{Amount}\t{1024199:#}"); // ~1_NUMBER~ ~2_ITEMNAME~
     }
     else
     {
         list.Add(1024199); // cut leather
     }
 }
예제 #9
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (ItemID == 0x2006) // Corpse form
     {
         list.Add("a human corpse");
         list.Add(1049318, Name); // the remains of ~1_NAME~ the militia fighter
     }
     else
     {
         list.Add(1049319); // the remains of a militia fighter
     }
 }
예제 #10
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (ItemID == 0x2006) // Corpse form
     {
         list.Add("a human corpse");
         list.Add(1049144, Name); // the remains of ~1_NAME~ the apprentice
     }
     else
     {
         list.Add(1049145); // the remains of a wizard's apprentice
     }
 }
예제 #11
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (Weight >= 20)
            {
                if (_fisher != null)
                {
                    list.Add(1070857, _fisher.Name); // Caught by ~1_fisherman~
                }

                list.Add(1070858, $"{(int)Weight}"); // ~1_weight~ stones
            }
        }
예제 #12
0
        public override void AddNameProperty(IPropertyList list)
        {
            if (_owner != null)
            {
                list.Add(1150295, _owner); // ~1_NAME~'s St. Valentine Bear
            }
            else
            {
                list.Add(1150294); // St. Valentine Bear
            }

            AddLine(list, 1150301, _line1); // [ ~1_LINE0~ ]
            AddLine(list, 1150302, _line2); // [ ~1_LINE1~ ]
            AddLine(list, 1150303, _line3); // [ ~1_LINE2~ ]
        }
예제 #13
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            // NOTE: OSI does not list uses remaining; intentional difference
            list.Add(1060584, $"{Charges}"); // uses remaining: ~1_val~
        }
예제 #14
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (ItemName != null)
            {
                if (ItemName.Number > 0)
                {
                    list.Add(1070998, ItemName.Number); // Use this to redeem<br>your ~1_PROMO~
                }
                else
                {
                    list.Add(1070998, ItemName.String); // Use this to redeem<br>your ~1_PROMO~
                }
            }
        }
예제 #15
0
    public override void GetProperties(IPropertyList list)
    {
        base.GetProperties(list);

        // This is half a prize ticket! Double-click this ticket and target any other ticket marked NEW PLAYER and get a prize! This ticket will only work for YOU, so don't give it away!
        list.Add(1041492);
    }
예제 #16
0
 private static void AddLine(IPropertyList list, int cliloc, string line)
 {
     if (line != null)
     {
         list.Add(cliloc, line);
     }
 }
예제 #17
0
    public override void GetProperties(IPropertyList list)
    {
        base.GetProperties(list);

        if (Commodity != null)
        {
            var args = Commodity.Name == null
                ? $"#{(Commodity as ICommodity)?.DescriptionNumber ?? Commodity.LabelNumber}\t{Commodity.Amount}"
                : $"{Commodity.Name}\t{Commodity.Amount}";

            list.Add(1060658, args); // ~1_val~: ~2_val~
        }
        else
        {
            list.Add(1060748); // unfilled
        }
    }
예제 #18
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            var remaining = CreationTime + LifeSpan - Core.Now;

            list.Add(1072517, $"{(int)remaining.TotalSeconds}"); // Lifespan: ~1_val~ seconds
        }
예제 #19
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (!CraftResources.IsStandard(_resource))
            {
                var num = CraftResources.GetLocalizationNumber(_resource);

                if (num > 0)
                {
                    list.Add(num);
                }
                else
                {
                    list.Add(CraftResources.GetName(_resource));
                }
            }
        }
예제 #20
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (Core.ML && _isRewardItem)
            {
                list.Add(1076217); // 1st Year Veteran Reward
            }
        }
예제 #21
0
        public override void AddNameProperties(IPropertyList list)
        {
            base.AddNameProperties(list);

            if (IsShipwreckedItem)
            {
                list.Add(1041645); // recovered from a shipwreck
            }
        }
예제 #22
0
        public override void AddNameProperties(IPropertyList list)
        {
            base.AddNameProperties(list);

            AddQuestItemProperty(list);

            if (CanGiveMLQuest)
            {
                list.Add(1072269); // Quest Giver
            }
        }
예제 #23
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (!string.IsNullOrEmpty(_title))
     {
         list.Add(_title);
     }
     else
     {
         base.AddNameProperty(list);
     }
 }
예제 #24
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (Name != null)
     {
         list.Add(1075257, Name); // Contents of ~1_PETNAME~'s pack.
     }
     else
     {
         base.AddNameProperty(list);
     }
 }
예제 #25
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (m_Boat?.ShipName != null)
     {
         list.Add(1042884, m_Boat.ShipName); // the tiller man of the ~1_SHIP_NAME~
     }
     else
     {
         base.AddNameProperty(list);
     }
 }
예제 #26
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (_owner != null)
     {
         list.Add(1042887, _owner.Name); // a strong box owned by ~1_OWNER_NAME~
     }
     else
     {
         base.AddNameProperty(list);
     }
 }
예제 #27
0
        public override void AddNameProperty(IPropertyList list)
        {
            if (CraftResources.IsStandard(Resource))
            {
                list.Add(1061119, " "); // ~1_LEATHER_TYPE~ runic sewing kit
                return;
            }

            var num = CraftResources.GetLocalizationNumber(Resource);

            if (num > 0)
            {
                // ~1_LEATHER_TYPE~ runic sewing kit
                list.Add(1061119, $"#{num}");
            }
            else
            {
                // ~1_LEATHER_TYPE~ runic sewing kit
                list.Add(1061119, CraftResources.GetName(Resource));
            }
        }
예제 #28
0
        public override void AddNameProperties(IPropertyList list)
        {
            base.AddNameProperties(list);

            if (!Empty)
            {
                var fish = Fish;

                if (fish != null)
                {
                    list.Add(1074494, $"#{fish.LabelNumber}"); // Contains: ~1_CREATURE~
                }
            }
        }
예제 #29
0
    public override void GetProperties(IPropertyList list)
    {
        base.GetProperties(list);

        if (Commodity is ICommodity ic)
        {
            list.Add(1060658, $"{ic.DescriptionNumber:#}\t{Commodity.Amount}"); // ~1_val~: ~2_val~
        }
        else if (Commodity != null)
        {
            if (Commodity.Name == null)
            {
                list.Add(1060658, $"{Commodity.LabelNumber:#}\t{Commodity.Amount}"); // ~1_val~: ~2_val~
            }
            else
            {
                list.Add(1060658, $"{Commodity.Name}\t{Commodity.Amount}"); // ~1_val~: ~2_val~
            }
        }
        else
        {
            list.Add(1060748); // unfilled
        }
    }
예제 #30
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (_isRewardItem)
            {
                // X Year Veteran Reward
                list.Add(
                    RewardSystem.GetRewardYearLabel(
                        this,
                        new object[] { Hue, _number }
                        )
                    );
            }
        }