public override void GetProperties( ObjectPropertyList list ) { base.GetProperties( list ); // NOTE: OSI does not list uses remaining; intentional difference list.Add( 1060584, m_Charges.ToString() ); // uses remaining: ~1_val~ }
public override void GetProperties( ObjectPropertyList list ) { base.GetProperties( list ); if ( Core.ML && m_IsRewardItem ) list.Add( 1076218 ); // 2nd Year Veteran Reward }
public override void AddNameProperty( ObjectPropertyList list ) { base.AddNameProperty( list ); if ( IsSigned ) list.Add( 1152273, String.Format( "{0}\t{1}", m_From, m_To ) ); // ~1_val~ is madly in love with ~2_val~ }
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~ }
public override void GetProperties( ObjectPropertyList list ) { base.GetProperties( list ); // as if the name wasn't enough.. list.Add( 1017410 ); // Special Fishing Net }
public override void GetProperties( ObjectPropertyList list ) { base.GetProperties( list ); if ( m_Exceptional && m_Crafter != null ) list.Add( 1050043, m_Crafter.Name ); // crafted by ~1_NAME~ }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); if (m_QuestType != null) list.Add(String.Format("Required quest: {0}", m_QuestType.Name)); }
public override void AddNameProperty( ObjectPropertyList list ) { if ( m_Boat != null && m_Boat.ShipName != null ) list.Add( 1042884, m_Boat.ShipName ); // the tiller man of the ~1_SHIP_NAME~ else base.AddNameProperty( list ); }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); if (Lifespan > 0) { if (UseSeconds) list.Add(1072517, m_Lifespan.ToString()); // Lifespan: ~1_val~ seconds else { TimeSpan t = TimeSpan.FromSeconds(TimeLeft); int weeks = (int)t.Days / 7; int days = t.Days; int hours = t.Hours; int minutes = t.Minutes; if (weeks > 1) list.Add(1153092, (t.Days / 7).ToString()); // Lifespan: ~1_val~ weeks else if (days > 1) list.Add(1153091, t.Days.ToString()); // Lifespan: ~1_val~ days else if (hours > 1) list.Add(1153090, t.Hours.ToString()); // Lifespan: ~1_val~ hours else if (minutes > 1) list.Add(1153089, t.Minutes.ToString()); // Lifespan: ~1_val~ minutes else list.Add(1072517, t.Seconds.ToString()); // Lifespan: ~1_val~ seconds } } }
public override void GetProperties( ObjectPropertyList list ) { base.GetProperties( list ); if ( !CraftResources.IsStandard( m_Resource ) ) list.Add( CraftResources.GetLocalizationNumber( m_Resource ) ); }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); int condition = GetCondition(m_Uses); list.Add(1149847, String.Format("#{0}", condition)); //Condition: ~1_val~ }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); list.Add(1060741, m_Charges.ToString()); // charges: ~1_val~ list.Add(1150598); // auto recharge }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); if (m_Quest == null) return; int loc = 1116453; //~1_val~: ~2_val~/~3_val~ FishQuestObjective obj = m_Quest.GetObjective(); if (obj == null) Delete(); foreach (KeyValuePair<Type, int[]> kvp in obj.Line) { int idx = FishQuestHelper.GetIndexForType(kvp.Key); list.Add(loc, "#{0}\t{1}\t{2}", FishQuestHelper.Labels[idx], kvp.Value[0].ToString(), kvp.Value[1].ToString()); loc++; } object delivery = GetDeliveryInfo(); if (delivery is string) list.Add((string)delivery); else list.Add((int)delivery); list.Add(1076255); //NO-TRADE }
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"); }
public override void AddNameProperties(ObjectPropertyList list) { base.AddNameProperties(list); if (!String.IsNullOrEmpty(m_Subtext)) list.Add(m_Subtext); }
public override void AddNameProperties( ObjectPropertyList list ) { base.AddNameProperties( list ); if ( m_Subtext != null ) list.Add( m_Subtext ); }
public override void AddNameProperties( ObjectPropertyList list ) { base.AddNameProperties( list ); if ( m_IsShipwreckedItem ) list.Add( 1041645 ); // recovered from a shipwreck }
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 AddNameProperties( ObjectPropertyList list ) { base.AddNameProperties( list ); if ( m_Charges >= 0 ) list.Add( 1060658, "Charges\t{0}", m_Charges.ToString() ); }
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 ); int number; if ( m_Held <= 0 ) number = 502246; // The keg is empty. else if ( m_Held < 5 ) number = 502248; // The keg is nearly empty. else if ( m_Held < 20 ) number = 502249; // The keg is not very full. else if ( m_Held < 30 ) number = 502250; // The keg is about one quarter full. else if ( m_Held < 40 ) number = 502251; // The keg is about one third full. else if ( m_Held < 47 ) number = 502252; // The keg is almost half full. else if ( m_Held < 54 ) number = 502254; // The keg is approximately half full. else if ( m_Held < 70 ) number = 502253; // The keg is more than half full. else if ( m_Held < 80 ) number = 502255; // The keg is about three quarters full. else if ( m_Held < 96 ) number = 502256; // The keg is very full. else if ( m_Held < 100 ) number = 502257; // The liquid is almost to the top of the keg. else number = 502258; // The keg is completely full. list.Add( number ); }
public override void GetProperties( ObjectPropertyList list ) { base.GetProperties( list ); if ( Movable && IsInsideHouse() ) list.Add( 1113267 ); // (Double Click to Lockdown) }
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 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); }
public override void GetProperties( ObjectPropertyList list ) { base.GetProperties( list ); if( Target != null && Target.Map != null ) list.Add( 1049644, Target.Map.ToString() ); // [~stuff~] }
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( 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~ } } }
public override void GetProperties( ObjectPropertyList list ) { base.GetProperties( list ); if ( m_IsRewardItem ) list.Add( 1076219 ); // 3rd Year Veteran Reward }
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 }
public override void AddNameProperty( ObjectPropertyList list ) { if ( m_ShipName != null ) list.Add( m_ShipName ); else base.AddNameProperty( list ); }
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) } }
/*public OPLInfo( ObjectPropertyList list ) : base( 0xBF ) * { * EnsureCapacity( 13 ); * * m_Stream.Write( (short) 0x10 ); * m_Stream.Write( (int) list.Entity.Serial ); * m_Stream.Write( (int) list.Hash ); * }*/ public OPLInfo(ObjectPropertyList list) : base(0xDC, 9) { m_Stream.Write((int)list.Entity.Serial); m_Stream.Write((int)list.Hash); }
public static void GetSetProperties(ObjectPropertyList list, ISetItem setItem) { int prop; if ((prop = setItem.SetAttributes.RegenHits) != 0) { list.Add(1080244, prop.ToString()); // hit point regeneration ~1_val~ (total) } /*if ( (prop = setItem.SetAttributes.RegenStam) != 0 ) * list.Add( , prop.ToString() ); // stamina regeneration ~1_val~ (total)*/ if ((prop = setItem.SetAttributes.RegenMana) != 0) { list.Add(1080245, prop.ToString()); // mana regeneration ~1_val~ (total) } if ((prop = setItem.SetAttributes.DefendChance) != 0) { list.Add(1073493, prop.ToString()); // defense chance increase ~1_val~% (total) } if ((prop = setItem.SetAttributes.AttackChance) != 0) { list.Add(1073490, prop.ToString()); // hit chance increase ~1_val~% (total) } if ((prop = setItem.SetAttributes.BonusStr) != 0) { list.Add(1072514, prop.ToString()); // strength bonus ~1_val~ (total) } if ((prop = setItem.SetAttributes.BonusDex) != 0) { list.Add(1072503, prop.ToString()); // dexterity bonus ~1_val~ (total) } if ((prop = setItem.SetAttributes.BonusInt) != 0) { list.Add(1072381, prop.ToString()); // intelligence bonus ~1_val~ (total) } if ((prop = setItem.SetAttributes.BonusHits) != 0) { list.Add(1080360, prop.ToString()); // hit point increase ~1_val~ (total) } /*if ( (prop = setItem.SetAttributes.BonusStam) != 0 ) * list.Add( , prop.ToString() ); // stamina increase ~1_val~ (total) * * if ( (prop = setItem.SetAttributes.BonusMana) != 0 ) * list.Add( , prop.ToString() ); // mana increase ~1_val~ (total) * * if ( (prop = setItem.SetAttributes.WeaponDamage ) != 0 ) * list.Add( , prop.ToString() ); // damage increase ~1_val~% (total)*/ if ((prop = setItem.SetAttributes.WeaponSpeed) != 0) { list.Add(1074323, prop.ToString()); // swing speed increase ~1_val~% (total) } if ((prop = setItem.SetAttributes.SpellDamage) != 0) { list.Add(1072380, prop.ToString()); // spell damage increase ~1_val~% (total) } if ((prop = setItem.SetAttributes.CastRecovery) != 0) { list.Add(1080242, prop.ToString()); // faster cast recovery ~1_val~ (total) } if ((prop = setItem.SetAttributes.CastSpeed) != 0) { list.Add(1080243, prop.ToString()); // faster casting ~1_val~ (total) } if ((prop = setItem.SetAttributes.LowerManaCost) != 0) { list.Add(1073488, prop.ToString()); // lower mana cost ~1_val~% (total) } if ((prop = setItem.SetAttributes.LowerRegCost) != 0) { list.Add(1080441, prop.ToString()); // lower reagent cost ~1_val~% (total) } if ((prop = setItem.SetAttributes.ReflectPhysical) != 0) { list.Add(1072513, prop.ToString()); // reflect physical damage ~1_val~% (total) } /*if ( (prop = setItem.SetAttributes.EnhancePotions) != 0 ) * list.Add( , prop.ToString() ); enhance potions ~1_val~% (total)*/ if ((prop = setItem.SetAttributes.Luck) != 0) { list.Add(1073489, 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) } }