Add() public method

public Add ( int number ) : void
number int
return void
示例#1
0
		public override void GetProperties(ObjectPropertyList list)
		{
			base.GetProperties(list);

			int color = Color.FromKnownColor(UsageColor).ToArgb();

			switch (Command)
			{
				case AutoPvPStoneCommand.ViewBattles:
					{
						list.Add("<basefont color=#{0:X6}>Opens the PvP battles menu<basefont color=#ffffff>", color);
					}
					break;
				case AutoPvPStoneCommand.ViewProfiles:
					{
						list.Add("<basefont color=#{0:X6}>Opens the PvP profiles menu<basefont color=#ffffff>", color);
					}
					break;
				case AutoPvPStoneCommand.GlobalConfig:
					{
						list.Add("<basefont color=#{0:X6}>Use: Opens the PvP control panel<basefont color=#ffffff>", color);
					}
					break;
			}
		}
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1060584, m_UsesRemaining.ToString()); // uses remaining: ~1_val~
            list.Add("skill required: healing");
        }
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( 1074502 ); // It looks explosive.
			list.Add( 1075085 ); // Requirement: Mondain's Legacy
		}
示例#4
0
 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (m_Plot == null)
         list.Add(1150530, "unknown"); // Stall ~1_NAME~
     else
         list.Add(1150530, m_Plot.PlotDef != null ? m_Plot.PlotDef.ID : "unknown"); // Stall ~1_NAME~
 }
示例#5
0
 public override void AddNameProperties( ObjectPropertyList list )
 {
     if ( IsUsable() )
         list.Add( 1112130 ); // a lever
     else
         list.Add( 1112129 ); // a lever (unusable)
 }
示例#6
0
		public override void AddNameProperty(ObjectPropertyList list)
		{
			if(m_Label != null && m_Label.Length > 0)
				list.Add(1049519, m_Label); // a bottle of ~1_DRINK_NAME~
			else
				list.Add(1049519, String.Format("#{0}", DistillationSystem.GetLabel(m_Liquor, m_IsStrong))); // a bottle of ~1_DRINK_NAME~
		}
示例#7
0
		public override void AddNameProperty( ObjectPropertyList list )
		{
			if ( Amount != 1 )
				list.Add( String.Format( "{0} bloody bandages", this.Amount ) );
			else
				list.Add( "a bloody bandage" );
		}
示例#8
0
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            if (m_KillEntry == null || m_KillEntry.KillIndex < 0 || m_KillEntry.KillIndex >= HuntingTrophyInfo.Infos.Count)
                return;

            HuntingTrophyInfo info = HuntingTrophyInfo.Infos[m_KillEntry.KillIndex];

            if (m_Owner != null)
                list.Add(1155708, m_Owner.Name); // Hunter: ~1_NAME~

            if (m_KillEntry.DateKilled != DateTime.MinValue)
                list.Add(1155709, m_KillEntry.DateKilled.ToShortDateString()); // Date of Kill: ~1_DATE~

            if (m_KillEntry.Location != null)
                list.Add(1061114, m_KillEntry.Location); // Location: ~1_val~

            list.Add(1155718, info.Species.ToString());

            if (info.MeasuredBy == MeasuredBy.Length)
                list.Add(1155711, m_KillEntry.Measurement.ToString()); // Length: ~1_VAL~
            else if (info.MeasuredBy == MeasuredBy.Wingspan)
                list.Add(1155710, m_KillEntry.Measurement.ToString());	// Wingspan: ~1_VAL~
            else
                list.Add(1072789, m_KillEntry.Measurement.ToString()); // Weight: ~1_WEIGHT~
        }
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( 1070881, m_Dipper ); // Hand Dipped by ~1_name~
			list.Add( 1070880  ); // Winter 2004
		}
示例#10
0
        public override void AddNameProperties( ObjectPropertyList list )
        {
            base.AddNameProperties( list );

            list.Add( 1041350 ); // faction item
            list.Add( 1060584, m_UsesRemaining.ToString() ); // uses remaining: ~1_val~
        }
示例#11
0
 public override void GetProperties( ObjectPropertyList list )
 {
     if ( c_Owner != null )
         list.Add( "a renter's license belonging to " + c_Owner.Name );
     else
         list.Add( "a renter's license" );
 }
示例#12
0
        public override void AddNameProperty(ObjectPropertyList list)
        {
            string oreType;
            string complete = "Une forge achevée";

            switch (m_Resource)
            {
                case CraftResource.MShadow: oreType = "Une forge d'ombre"; break; 
                case CraftResource.MBloodrock: oreType = "Une Forge de sang"; break; 
                case CraftResource.MBlackrock: oreType = "Une forge de désespoir"; break; 
                case CraftResource.MVulcan: oreType = "Une forge volcanique"; break; 
                case CraftResource.MAcid: oreType = "Une forge toxique"; break;
                case CraftResource.MAqua: oreType = "Une forge aquatique"; break; 
                case CraftResource.MGlowing: oreType = "Une forge céleste"; break; 
                default: oreType = null; break;
            }

            if (oreType != null)
                list.Add(oreType); 
            else if (m_Resource != CraftResource.None)
                list.Add(complete);
            else
                list.Add(Name);

        }
示例#13
0
		public static void AddTo( ObjectPropertyList list, TextDefinition def )
		{
			if ( def != null && def.m_Number > 0 )
				list.Add( def.m_Number );
			else if ( def != null && def.m_String != null )
				list.Add( def.m_String );
		}
示例#14
0
		public override void AddNameProperty( ObjectPropertyList list )
		{
			if ( Amount > 1 )
				list.Add( 1050039, "{0}\t#{1}", Amount, 1027128 ); // ~1_NUMBER~ ~2_ITEMNAME~
			else
				list.Add( 1027127 ); // boards
		}
		public override void GetProperties( ObjectPropertyList list )
		{
			list.Add( 1114057, this.Name ); // ~1_VAL~
			list.Add( 1038021 ); // blessed
			list.Add( 1070722, "(Enchants Blue Mage Clothing)" ); // ~1_NOTHING~
			list.Add( 1042971, "<ALIGN='CENTER'><BASEFONT COLOR='#007FFF'>*{0}*</BASEFONT></ALIGN>", Enum.GetName( typeof( BlueEnhance ), m_Enhance ) ); // ~1_NOTHING~
		}
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add(1060658,"{0}\t{1}","Toll Type",m_TollItem);
			list.Add(1060659,"{0}\t{1}","Toll Amount",m_TollAmount);
		}
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( 1060655 ); // large bulk order
			
			//string subString = "amount to tame";

			list.Add( "amount to tame: {0}", m_AmountMax.ToString() );

			for ( int i = 0; i < m_Entries.Length; ++i )
			{
				string s = m_Entries[i].Details.AnimalName;

				int capsbreak = s.IndexOfAny("ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray(),1);

				if( capsbreak > -1 )
				{
					string secondhalf = s.Substring( capsbreak );
 					string firsthalf = s.Substring(0, capsbreak );

					list.Add( 1060658 + i, "{0} {1}\t{2}", firsthalf, secondhalf, m_Entries[i].Amount ); // ~1_val~: ~2_val~
				}
				else
				{
					list.Add( 1060658 + i, "{0}\t{1}", m_Entries[i].Details.AnimalName, m_Entries[i].Amount ); // ~1_val~: ~2_val~
				}
			}
		}
示例#18
0
 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (m_Quest != null && m_Quest.Owner != null)
         list.Add(1116515, m_Quest.Owner.Name);
     else
         list.Add("a shipping crate");
 }
示例#19
0
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1060741, m_Charges.ToString()); // charges: ~1_val~
            list.Add(1150598); // auto recharge
        }
示例#20
0
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( 1061639, Utility.FixHtml( GetName() ) ); // Name: ~1_NAME~
			list.Add( 1061640, (m_Owner == null || m_Owner.Owner == null) ? "nobody" : m_Owner.Owner.Name ); // Owner: ~1_OWNER~

			if ( m_Owner != null )
			{
				list.Add( m_Owner.Public ? 1061641 : 1061642 ); // This House is Open to the Public : This is a Private Home

				m_GettingProperties = true;
				DecayLevel level = m_Owner.DecayLevel;
				m_GettingProperties = false;

				if ( level == DecayLevel.DemolitionPending )
				{
					list.Add( 1062497 ); // Demolition Pending
				}
				else if ( level != DecayLevel.Ageless )
				{
					if ( level == DecayLevel.Collapsed )
						level = DecayLevel.IDOC;

					list.Add( 1062028, String.Format( "#{0}", 1043009 + (int)level ) ); // Condition: This structure is ...
				}
			}
		}
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );
			
			list.Add( 1074841 ); // Double click to transport out of the Prism of Light dungeon
			list.Add( 1075269 ); // Destroyed when dropped
		}
示例#22
0
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            if (m_Plot == null)
                return;

            if (m_Plot.ShopName != null)
                list.Add(1062449, m_Plot.ShopName); // Shop Name: ~1_NAME~

            if (m_Plot.Merchant != null)
                list.Add(1150529, m_Plot.Merchant.Name); // Proprietor: ~1_NAME~

            if (m_Plot.Auction != null)
            {
                int left = 1;
                if (m_Plot.Auction.AuctionEnd > DateTime.UtcNow)
                {
                    TimeSpan ts = m_Plot.Auction.AuctionEnd - DateTime.UtcNow;
                    left = (int)(ts.TotalHours + 1);
                }

                list.Add(1150533, left.ToString()); // Auction for Lease Ends Within ~1_HOURS~ Hours
            }

            if (!m_Plot.Active)
                list.Add(1153036); // Inactive
        }
示例#23
0
 public override void GetProperties( ObjectPropertyList list )
 {
     base.GetProperties( list );
     list.Add( 1042971, "Bank hive." );
     list.Add( 1054132, Charges.ToString() );
     list.Add( 1070722, "Recharges remaining: " + ( MaxRecharges - Recharges ).ToString() );
 }
示例#24
0
		public override void GetProperties(ObjectPropertyList list)
		{
			base.GetProperties(list);

			list.Add(1060658, "Range\t{0}", m_Range);
			list.Add(1060659, "Active\t{0}", m_Active);
		}
示例#25
0
        public override void AddNameProperties( ObjectPropertyList list )
        {
            base.AddNameProperties( list );
            list.Add( 1060662, "{0}\t{1} of {2}", "Crafts", Count, SpellCraftConfig.LastAosCraftID + 1 );

            if ( SpellCraftConfig.UseCharges )
                list.Add( 1060741, Charges.ToString() ); // charges: ~1_val~
        }
 public override void GetProperties(ObjectPropertyList list)
 {
     if (this.Name == null)
         list.Add(this.LabelNumber);
     else
         list.Add(this.Name);
     list.Add(1060584, this.Amount.ToString()); // uses remaining:
 }
示例#27
0
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			if ( m_Points > 0 )
				list.Add( "  {0} Points!", m_Points.ToString() );
			else list.Add( " *Empty* " );
		}
示例#28
0
		public override void GetProperties(ObjectPropertyList list)
		{
			base.AddNameProperties(list);

			list.Add(1060584, m_UsesRemaining.ToString());

			list.Add(1071215, m_Charges.ToString());
		}
示例#29
0
        public override void AddNameProperties(ObjectPropertyList list)
        {
            base.AddNameProperties(list);

            if (Turning) list.Add("Song Playing:");
            else list.Add("Active Song:");
            list.Add(m_Locals[GetSong()]);
        }
示例#30
0
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1060526, m_Blunt.ToString());
            list.Add(1060527, m_Slash.ToString());
            list.Add(1060528, m_Pierce.ToString());
        }
示例#31
0
        public static void GetSetProperties(ObjectPropertyList list, ISetItem setItem)
        {
            AosAttributes attrs;

            if (setItem is BaseWeapon)
            {
                attrs = ((BaseWeapon)setItem).Attributes;
            }
            else if (setItem is BaseArmor)
            {
                attrs = ((BaseArmor)setItem).Attributes;
            }
            else if (setItem is BaseClothing)
            {
                attrs = ((BaseClothing)setItem).Attributes;
            }
            else if (setItem is BaseQuiver)
            {
                attrs = ((BaseQuiver)setItem).Attributes;
            }
            else if (setItem is BaseJewel)
            {
                attrs = ((BaseJewel)setItem).Attributes;
            }
            else
            {
                attrs = new AosAttributes(setItem as Item);
            }

            bool full             = setItem.SetEquipped;
            int  pieces           = setItem.Pieces;
            bool beserk           = setItem.SetID == SetItem.Bestial;
            bool bardmasterybonus = setItem.BardMasteryBonus;

            int prop;

            if (setItem is IFishingAttire)
            {
                IFishingAttire attire = (IFishingAttire)setItem;

                if (setItem.SetEquipped && attire.SetBonus > 0)
                {
                    list.Add(1151573, attire.SetBonus.ToString()); //Fish Bait Strength +~1_VAL~% (total)
                }
                else if (((IFishingAttire)setItem).BaitBonus > 0)
                {
                    list.Add(1151572, attire.BaitBonus.ToString()); //Fish Bait Strength +~1_VAL~%
                }
            }

            if (beserk)
            {
                list.Add(1151542, "5");// Berserk ~1_VAL~ (total)
            }
            if (setItem.BardMasteryBonus)
            {
                list.Add(1151571); //Mastery Bonus Cooldown: 15 min.
            }
            if ((prop = setItem.SetAttributes.RegenHits) != 0)
            {
                list.Add(full ? 1080244 : 1154369, (full ? prop + (attrs.RegenHits * pieces) : prop).ToString()); // hit point regeneration ~1_val~ (total)
            }

            /*if ( (prop = setItem.SetAttributes.RegenStam) != 0 )
             * list.Add(full ? 1154365 : 1154370, (full ? prop + (attrs.ReganStam * pieces) : prop).ToString()); // stamina regeneration ~1_val~ (total)*/

            if ((prop = setItem.SetAttributes.RegenMana) != 0)
            {
                list.Add(full ? 1080245 : 1080250, (full ? prop + (attrs.RegenMana * pieces) : prop).ToString()); // mana regeneration ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.DefendChance) != 0)
            {
                list.Add(full ? 1073493 : 1060408, (full ? prop + (attrs.DefendChance * pieces) : prop).ToString()); // defense chance increase ~1_val~% (total)
            }
            if ((prop = setItem.SetAttributes.AttackChance) != 0)
            {
                list.Add(full ? 1073490 : 1154366, (full ? prop + (attrs.AttackChance * pieces) : prop).ToString()); // hit chance increase ~1_val~% (total)
            }
            if ((prop = setItem.SetAttributes.BonusStr) != 0)
            {
                list.Add(full ? 1072514 : 1060485, (full ? prop + (attrs.BonusStr * pieces) : prop).ToString()); // strength bonus ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.BonusDex) != 0)
            {
                list.Add(full ? 1072503 : 1080447, (full ? prop + (attrs.BonusDex * pieces) : prop).ToString());// dexterity bonus ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.BonusInt) != 0)
            {
                list.Add(full ? 1072381 : 1080439, (full ? prop + (attrs.BonusInt * pieces) : prop).ToString());// intelligence bonus ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.BonusHits) != 0)
            {
                list.Add(full ? 1080360 : 1080358, (full ? prop + (attrs.BonusHits * pieces) : prop).ToString());// hit point increase ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.BonusStam) != 0)
            {
                list.Add(full ? 1060484 : 1060484, (full ? prop + (attrs.BonusStam * pieces) : prop).ToString()); // stamina increase ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.BonusMana) != 0)
            {
                list.Add(full ? 1060439 : 1060439, (full ? prop + (attrs.BonusMana * pieces) : prop).ToString()); // mana increase ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.WeaponDamage) != 0)
            {
                list.Add(full ? 1151216 : 1154367, (full ? prop + (attrs.WeaponDamage * pieces) : prop).ToString()); // damage increase ~1_val~% (total)
            }
            if ((prop = setItem.SetAttributes.WeaponSpeed) != 0)
            {
                list.Add(full ? 1074323 : 1154368, (full ? prop + (attrs.WeaponSpeed * pieces) : prop).ToString()); // swing speed increase ~1_val~% (total)
            }
            if ((prop = setItem.SetAttributes.SpellDamage) != 0)
            {
                list.Add(full ? 1072380 : 1060483, (full ? prop + (attrs.SpellDamage * pieces) : prop).ToString()); // spell damage increase ~1_val~% (total)
            }
            if ((prop = setItem.SetAttributes.CastRecovery) != 0)
            {
                list.Add(full ? 1080242 : 1080248, (full ? prop + (attrs.CastRecovery * pieces) : prop).ToString()); // faster cast recovery ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.CastSpeed) != 0)
            {
                list.Add(full ? 1080243 : 1080247, (full ? prop + (attrs.CastSpeed * pieces) : prop).ToString()); // faster casting ~1_val~ (total)
            }
            if ((prop = setItem.SetAttributes.LowerManaCost) != 0)
            {
                list.Add(full ? 1073488 : 1060433, (full ? prop + (attrs.LowerManaCost * pieces) : prop).ToString());// lower mana cost ~1_val~% (total)
            }
            if ((prop = setItem.SetAttributes.LowerRegCost) != 0)
            {
                list.Add(full ? 1080441 : 1080440, (full ? prop + (attrs.LowerRegCost * pieces) : prop).ToString()); // lower reagent cost ~1_val~% (total)
            }
            if ((prop = setItem.SetAttributes.ReflectPhysical) != 0)
            {
                list.Add(full ? 1072513 : 1060442, (prop + attrs.ReflectPhysical).ToString()); // reflect physical damage ~1_val~% (total)
            }

            /*if ( (prop = setItem.SetAttributes.EnhancePotions) != 0 )
             * list.Add( , (full ? prop + (attrs.EnhancePotions * pieces) : prop).ToString()); enhance potions ~1_val~% (total)*/

            if ((prop = setItem.SetAttributes.Luck) != 0)
            {
                list.Add(full ? 1073489 : 1080246, (full ? prop + (attrs.Luck * pieces) : prop).ToString()); // luck ~1_val~% (total)
            }
            if (!setItem.SetEquipped && setItem.SetAttributes.NightSight != 0)
            {
                list.Add(1060441); // night sight
            }
            if (setItem.SetSkillBonuses.Skill_1_Value != 0)
            {
                list.Add(1072502, "{0}\t{1}", "#" + (1044060 + (int)setItem.SetSkillBonuses.Skill_1_Name), setItem.SetSkillBonuses.Skill_1_Value); // ~1_skill~ ~2_val~ (total)
            }
        }