protected override void Parse() { var x = Enum.GetValues(typeof(WeaponDamageAttribute)); foreach (var e in x) { _data.Add((WeaponDamageAttribute)e, 0); } this[WeaponDamageAttribute.PhysicalDamage] = (ClilocHelper.Contains(_lastmetatable, 1060403)) ? ClilocHelper.GetParams(_lastmetatable, 1060403)[0] : 0; this[WeaponDamageAttribute.FireDamage] = (ClilocHelper.Contains(_lastmetatable, 1060405)) ? ClilocHelper.GetParams(_lastmetatable, 1060405)[0] : 0; this[WeaponDamageAttribute.ColdDamage] = (ClilocHelper.Contains(_lastmetatable, 1060404)) ? ClilocHelper.GetParams(_lastmetatable, 1060404)[0] : 0; this[WeaponDamageAttribute.PoisonDamage] = (ClilocHelper.Contains(_lastmetatable, 1060406)) ? ClilocHelper.GetParams(_lastmetatable, 1060406)[0] : 0; this[WeaponDamageAttribute.EnergyDamage] = (ClilocHelper.Contains(_lastmetatable, 1060407)) ? ClilocHelper.GetParams(_lastmetatable, 1060407)[0] : 0; this[WeaponDamageAttribute.ChaosDamage] = (ClilocHelper.Contains(_lastmetatable, 1072846)) ? ClilocHelper.GetParams(_lastmetatable, 1072846)[0] : 0; base.Parse(); }
protected override void Parse() { var x = Enum.GetValues(typeof(ElementAttribute)); foreach (var e in x) { _data.Add((ElementAttribute)e, 0); } this[ElementAttribute.Physical] = (ClilocHelper.GetIndex(_lastmetatable, 1060448) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1060448)[0] : 0; this[ElementAttribute.Fire] = (ClilocHelper.GetIndex(_lastmetatable, 1060447) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1060447)[0] : 0; this[ElementAttribute.Cold] = (ClilocHelper.GetIndex(_lastmetatable, 1060445) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1060445)[0] : 0; this[ElementAttribute.Poison] = (ClilocHelper.GetIndex(_lastmetatable, 1060449) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1060449)[0] : 0; this[ElementAttribute.Energy] = (ClilocHelper.GetIndex(_lastmetatable, 1060446) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1060446)[0] : 0; base.Parse(); }
public static CraftResource ReadCraftResource(this ICraftable obj, List <ClilocItemRec> reader) { if (ClilocHelper.Contains(reader, 1053099)) { var Value = ClilocHelper.GetParams(reader, 1053099)[0]; return ((from object e in Enum.GetValues(typeof(CraftResource)) where Value.Equals(e) select e) .Cast <CraftResource>().FirstOrDefault()); } return(CraftResource.Default); }
public static int ReadWandCharges(this BaseWand obj, List <ClilocItemRec> properties) { foreach ( var w in from object w in Enum.GetValues(typeof(WandEffect)) where ClilocHelper.Contains(properties, (uint)w) select w) { return(ClilocHelper.GetParams(properties, (uint)w)[0]); } return(0); }
public static int[] ReadDurability(this IDurability obj, List <ClilocItemRec> properties) { if (!ClilocHelper.Contains(properties, 1060639)) { return new[] { 0, 0 } } ; var Params = ClilocHelper.GetParams(properties, 1060639); var dura = new int[] { Params[0], Params[1] }; return(dura); }
public static int[] ReadArcaneCharges(this IArcaneEquip obj, List <ClilocItemRec> reader) { if (!ClilocHelper.Contains(reader, 1061837)) { return new[] { 0, 0 } } ; var Params = ClilocHelper.GetParams(reader, 1061837); var charges = new int[] { Params[0], Params[1] }; return(charges); }
public static int[] ReadWeaponDamage(this IWeapon ic, List <ClilocItemRec> properties) { if (!ClilocHelper.Contains(properties, 1061168)) { return new[] { 0, 0 } } ; var Params = ClilocHelper.GetParams(properties, 1061168); var damages = new int[] { Params[0], Params[1] }; return(damages); }
public static string ReadDescription(this Runebook rb, List <ClilocItemRec> attrib) { uint ClilocID = 0; switch (XConfig.Engine) { case ShardEngine.Broadsword: ClilocID = 1070722; break; case ShardEngine.RebirthUO: ClilocID = 1042971; break; } return(!ClilocHelper.Contains(attrib, ClilocID) ? String.Empty : ClilocHelper.GetParams(attrib, ClilocID)[0]); }
public static dynamic[] ReadSkillBonus(this SkillBonuses attrib, uint ClilocID, List <ClilocItemRec> properties) { var result = new dynamic[2]; if ((ClilocHelper.GetIndex(properties, ClilocID) > -1)) { var p = ClilocHelper.GetParams(properties, ClilocID); result[0] = (SkillName)p[0]; result[1] = p[1]; } else { result[0] = SkillName.Invalid; result[1] = 0.0; } return(result); }
protected override void Parse() { var x = Enum.GetValues(typeof(AbsorptionAttribute)); foreach (var e in x) { _data.Add((AbsorptionAttribute)e, 0); } this[AbsorptionAttribute.KineticEater] = (ClilocHelper.GetIndex(_lastmetatable, 1113597) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113597)[0] : 0; this[AbsorptionAttribute.FireEater] = (ClilocHelper.GetIndex(_lastmetatable, 1113593) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113593)[0] : 0; this[AbsorptionAttribute.ColdEater] = (ClilocHelper.GetIndex(_lastmetatable, 1113594) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113594)[0] : 0; this[AbsorptionAttribute.PoisonEater] = (ClilocHelper.GetIndex(_lastmetatable, 1113595) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113595)[0] : 0; this[AbsorptionAttribute.EnergyEater] = (ClilocHelper.GetIndex(_lastmetatable, 1113596) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113596)[0] : 0; this[AbsorptionAttribute.DamageEater] = (ClilocHelper.GetIndex(_lastmetatable, 1113598) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113598)[0] : 0; this[AbsorptionAttribute.KineticResonance] = (ClilocHelper.GetIndex(_lastmetatable, 1113695) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113695)[0] : 0; this[AbsorptionAttribute.FireResonance] = (ClilocHelper.GetIndex(_lastmetatable, 1113691) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113691)[0] : 0; this[AbsorptionAttribute.ColdResonance] = (ClilocHelper.GetIndex(_lastmetatable, 1113692) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113692)[0] : 0; this[AbsorptionAttribute.PoisonResonance] = (ClilocHelper.GetIndex(_lastmetatable, 1113693) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113693)[0] : 0; this[AbsorptionAttribute.EnergyResonance] = (ClilocHelper.GetIndex(_lastmetatable, 1113694) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113694)[0] : 0; base.Parse(); }
protected override void Parse() { var x = Enum.GetValues(typeof(ArmorAttribute)); foreach (var e in x) { _data.Add((ArmorAttribute)e, 0); } this[ArmorAttribute.MageArmor] = (ClilocHelper.Contains(_lastmetatable, 1060437)); this[ArmorAttribute.SelfRepair] = (ClilocHelper.GetIndex(_lastmetatable, 1060450) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1060450)[0] : 0; this[ArmorAttribute.SoulCharge] = (ClilocHelper.GetIndex(_lastmetatable, 1113630) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1113630)[0] : 0; this[ArmorAttribute.ReactiveParalyze] = (ClilocHelper.Contains(_lastmetatable, 1112364)); this[ArmorAttribute.LowerStatReq] = (ClilocHelper.GetIndex(_lastmetatable, 1061170) > -1) ? ClilocHelper.GetParams(_lastmetatable, 1061170)[0] : 0; base.Parse(); }
public static int GetSpellCount(this Spellbook sb) { return(ClilocHelper.Contains(sb.Properties, 1042886) ? ClilocHelper.GetParams(sb.Properties, 1042886)[0] : 0); }
public Weapon(BaseWeapon Item, uint ContainerID) { Item.UpdateLocalizedProperties(); Item.UpdateTextProperties(); //General ID = Item.Serial.Value; this.ContainerID = ContainerID; ItemName = Item.Tooltip.Split('|')[0]; Splintering = (sbyte)Item.WeaponAttributes.SplinteringWeapon; HLA = (sbyte)Item.WeaponAttributes.HitLowerAttack; HLD = (sbyte)Item.WeaponAttributes.HitLowerDefend; SC = Item.Attributes.SpellChanneling; Balanced = Item.WeaponAttributes.Balanced; UBWS = Item.WeaponAttributes.UseBestSkill; MageWeapon = Item.WeaponAttributes.MageWeapon * -1; BloodDrinker = Item.WeaponAttributes.BloodDrinker; Velocity = (sbyte)Item.WeaponAttributes.Velocity; BattleLust = Item.WeaponAttributes.BattleLust; DI = (sbyte)Item.Attributes.WeaponDamage; SSI = (sbyte)Item.Attributes.WeaponSpeed; FC = (sbyte)Item.Attributes.CastSpeed; FCR = (sbyte)Item.Attributes.CastRecovery; SDI = (sbyte)Item.Attributes.SpellDamage; RPD = (sbyte)Item.Attributes.ReflectPhysical; DCI = (sbyte)Item.Attributes.DefendChance; HCI = (sbyte)Item.Attributes.AttackChance; STR = (sbyte)Item.Attributes.BonusStr; DEX = (sbyte)Item.Attributes.BonusDex; INTEL = (sbyte)Item.Attributes.BonusInt; HP = (sbyte)Item.Attributes.BonusHits; Stam = (sbyte)Item.Attributes.BonusStam; Mana = (sbyte)Item.Attributes.BonusMana; HPRegen = (sbyte)Item.Attributes.RegenHits; StamRegen = (sbyte)Item.Attributes.RegenStam; ManaRegen = (sbyte)Item.Attributes.RegenMana; EnhancePotions = (sbyte)Item.Attributes.EnhancePotions; Luck = (short)Item.Attributes.Luck; Brittle = Item.Brittle; SkillType = Item.RequiredSkill.ToString(); WeaponTypeNum = Item.ObjectType; HitSpell = "none"; HitArea = "none"; Handed = ""; if (Item.ReadHandingType(Item.Properties).Equals(Layer.TwoHanded)) { Handed = "Two"; } else { Handed = "One"; } Added = DateTime.Now; //abiliites GetTypes(typeof(BaseWeapon)); var _testObj = (BaseWeapon)Activator.CreateInstance(FinalType, new Serial(ID)); var _tempType = _testObj.ToString(); var _tempString = _tempType.Substring(_tempType.IndexOf("\"", 1)); WeaponType = _tempString.Trim('\"', '\\'); PrimaryAbility = _testObj.PrimaryAbility.ToString(); SecondaryAbility = _testObj.SecondaryAbility.ToString(); Abilities = PrimaryAbility + " " + SecondaryAbility; //elemental damage ElementalDamage = ""; var _itemRec = Stealth.Client.GetClilocRec(Item.Serial.Value); if (ClilocHelper.Contains(_itemRec, 1060403)) { ElementalDamage += "Physical Damage " + ClilocHelper.GetParams(_itemRec, 1060403)[0] + " "; } if (ClilocHelper.Contains(_itemRec, 1060404)) { ElementalDamage += "Fire Damage " + ClilocHelper.GetParams(_itemRec, 1060404)[0] + " "; } if (ClilocHelper.Contains(_itemRec, 1060405)) { ElementalDamage += "Cold Damage " + ClilocHelper.GetParams(_itemRec, 1060405)[0] + " "; } if (ClilocHelper.Contains(_itemRec, 1060406)) { ElementalDamage += "Poison Damage " + ClilocHelper.GetParams(_itemRec, 1060406)[0] + " "; } if (ClilocHelper.Contains(_itemRec, 1060407)) { ElementalDamage += "Energy Damage " + ClilocHelper.GetParams(_itemRec, 1060407)[0]; } //hit spell HitSpell = ""; if (Item.WeaponAttributes.HitFatigue > 0) { HitSpell += Item.WeaponAttributes.HitFatigue + " Hit Fatigue "; } if (Item.WeaponAttributes.HitHarm > 0) { HitSpell += Item.WeaponAttributes.HitHarm + " Hit Harm "; } if (Item.WeaponAttributes.HitDispel > 0) { HitSpell += Item.WeaponAttributes.HitDispel + " Hit Dispel "; } if (Item.WeaponAttributes.HitLightning > 0) { HitSpell += Item.WeaponAttributes.HitLightning + " Hit Lightning "; } if (Item.WeaponAttributes.HitFireball > 0) { HitSpell += Item.WeaponAttributes.HitFireball + " Hit Fireball "; } if (Item.WeaponAttributes.HitMagicArrow > 0) { HitSpell += Item.WeaponAttributes.HitMagicArrow + " Hit Magic Arrow "; } //hit area HitArea = ""; if (Item.WeaponAttributes.HitFireArea > 0) { HitArea = Item.WeaponAttributes.HitFireArea + " Hit Fire Area"; } if (Item.WeaponAttributes.HitColdArea > 0) { HitArea = Item.WeaponAttributes.HitColdArea + " Hit Cold Area"; } if (Item.WeaponAttributes.HitPoisonArea > 0) { HitArea = Item.WeaponAttributes.HitPoisonArea + " Hit Poison Area"; } if (Item.WeaponAttributes.HitEnergyArea > 0) { HitArea = Item.WeaponAttributes.HitEnergyArea + " Hit Energy Area"; } //item rating if (RPD > 0) { Rating += (RPD / 5); } if (DI >= 0) { Rating += (DI / 5) + (DI / 10); } if (HCI > 0) { Rating += (HCI / 2) + (HCI / 3); } if (DCI > 0) { Rating += (DCI / 2) + (DCI / 3); } if (HPRegen > 0) { Rating += (HPRegen * 4); } if (ManaRegen > 0) { Rating += (ManaRegen * 4); } if (StamRegen > 0) { Rating += (StamRegen * 3); } if (INTEL > 0) { Rating += (INTEL / 2) + (INTEL / 3); } if (DEX > 0) { Rating += (DEX / 2) + (DEX / 3); } if (STR > 0) { Rating += (STR / 2) + (STR / 3); } if (HP > 0) { Rating += (HP / 2) + (HP / 3); } if (Stam > 0) { Rating += (Stam / 2) + (Stam / 3); } if (Mana > 0) { Rating += (Mana / 2) + (Mana / 3); } if (FC > 0) { Rating += (FC * 6); } if (FCR > 0) { Rating += (FCR * 6); } if (SSI > 0) { Rating += (SSI / 3) + (SSI / 10); } if (SDI > 0) { Rating += (SDI / 2); } if (Luck > 0) { Rating += (Luck / 11) + (Luck / 15); } if (EnhancePotions > 0) { Rating += (EnhancePotions / 6); } }
protected override void Parse() { var x = Enum.GetValues(typeof(WeaponAttribute)); foreach (var e in x) { _data.Add((WeaponAttribute)e, 0); } this[WeaponAttribute.BloodDrinker] = (ClilocHelper.Contains(_lastmetatable, 1113591)); this[WeaponAttribute.BattleLust] = (ClilocHelper.Contains(_lastmetatable, 1113710)); this[WeaponAttribute.Balanced] = (ClilocHelper.Contains(_lastmetatable, 1072792)); this[WeaponAttribute.Velocity] = (ClilocHelper.Contains(_lastmetatable, 1072793)) ? ClilocHelper.GetParams(_lastmetatable, 1072793)[0] : 0; this[WeaponAttribute.UseBestSkill] = (ClilocHelper.Contains(_lastmetatable, 1060400)); this[WeaponAttribute.HitColdArea] = (ClilocHelper.Contains(_lastmetatable, 1060416)) ? ClilocHelper.GetParams(_lastmetatable, 1060416)[0] : 0; this[WeaponAttribute.HitDispel] = (ClilocHelper.Contains(_lastmetatable, 1060417)) ? ClilocHelper.GetParams(_lastmetatable, 1060417)[0] : 0; this[WeaponAttribute.HitEnergyArea] = (ClilocHelper.Contains(_lastmetatable, 1060418)) ? ClilocHelper.GetParams(_lastmetatable, 1060418)[0] : 0; this[WeaponAttribute.HitFireArea] = (ClilocHelper.Contains(_lastmetatable, 1060419)) ? ClilocHelper.GetParams(_lastmetatable, 1060419)[0] : 0; this[WeaponAttribute.HitFireball] = (ClilocHelper.Contains(_lastmetatable, 1060420)) ? ClilocHelper.GetParams(_lastmetatable, 1060420)[0] : 0; this[WeaponAttribute.HitHarm] = (ClilocHelper.Contains(_lastmetatable, 1060421)) ? ClilocHelper.GetParams(_lastmetatable, 1060421)[0] : 0; this[WeaponAttribute.HitCurse] = (ClilocHelper.Contains(_lastmetatable, 1113712)) ? ClilocHelper.GetParams(_lastmetatable, 1113712)[0] : 0; this[WeaponAttribute.HitFatigue] = (ClilocHelper.Contains(_lastmetatable, 1113700)) ? ClilocHelper.GetParams(_lastmetatable, 1113700)[0] : 0; this[WeaponAttribute.HitManaDrain] = (ClilocHelper.Contains(_lastmetatable, 1113699)) ? ClilocHelper.GetParams(_lastmetatable, 1113699)[0] : 0; this[WeaponAttribute.SplinteringWeapon] = (ClilocHelper.Contains(_lastmetatable, 1112857)) ? ClilocHelper.GetParams(_lastmetatable, 1112857)[0] : 0; this[WeaponAttribute.HitLeechHits] = (ClilocHelper.Contains(_lastmetatable, 1060422)) ? ClilocHelper.GetParams(_lastmetatable, 1060422)[0] : 0; this[WeaponAttribute.HitLightning] = (ClilocHelper.Contains(_lastmetatable, 1060423)) ? ClilocHelper.GetParams(_lastmetatable, 1060423)[0] : 0; this[WeaponAttribute.HitLowerAttack] = (ClilocHelper.Contains(_lastmetatable, 1060424)) ? ClilocHelper.GetParams(_lastmetatable, 1060424)[0] : 0; this[WeaponAttribute.HitLowerDefend] = (ClilocHelper.Contains(_lastmetatable, 1060425)) ? ClilocHelper.GetParams(_lastmetatable, 1060425)[0] : 0; this[WeaponAttribute.HitMagicArrow] = (ClilocHelper.Contains(_lastmetatable, 1060426)) ? ClilocHelper.GetParams(_lastmetatable, 1060426)[0] : 0; this[WeaponAttribute.HitLeechMana] = (ClilocHelper.Contains(_lastmetatable, 1060427)) ? ClilocHelper.GetParams(_lastmetatable, 1060427)[0] : 0; this[WeaponAttribute.HitPhysicalArea] = (ClilocHelper.Contains(_lastmetatable, 1060428)) ? ClilocHelper.GetParams(_lastmetatable, 1060428)[0] : 0; this[WeaponAttribute.HitPoisonArea] = (ClilocHelper.Contains(_lastmetatable, 1060429)) ? ClilocHelper.GetParams(_lastmetatable, 1060429)[0] : 0; this[WeaponAttribute.HitLeechStam] = (ClilocHelper.Contains(_lastmetatable, 1060430)) ? ClilocHelper.GetParams(_lastmetatable, 1060430)[0] : 0; this[WeaponAttribute.MageWeapon] = (ClilocHelper.Contains(_lastmetatable, 1060438)) ? ClilocHelper.GetParams(_lastmetatable, 1060438)[0] : 0; this[WeaponAttribute.SelfRepair] = (ClilocHelper.Contains(_lastmetatable, 1060450)) ? ClilocHelper.GetParams(_lastmetatable, 1060450)[0] : 0; //this[ArmorAttribute.SelfRepair] = (ClilocHelper.GetIndex(_lastmetatable, 1060450) > -1)? ClilocHelper.GetParams(_lastmetatable, 1060450)[0]: 0; base.Parse(); }
public static int ReadGorgonCharges(this IGorgonCharges obj, List <ClilocItemRec> properties) { return(!ClilocHelper.Contains(properties, 1112590) ? 0 : ClilocHelper.GetParams(properties, 1112590)[0]); }
public static string ReadEngraveable(this IEngraveable obj, List <ClilocItemRec> properties) { return(!ClilocHelper.Contains(properties, 1062613) ? string.Empty : ClilocHelper.GetParams(properties, 1062613)[0]); }
public static ItemValue GetItemValue(this Item item) { if (!XConfig.Engine.Equals(ShardEngine.RebirthUO)) { return(ItemValue.None); } if (!item.Valid) { return(ItemValue.None); } var props = item.Properties; if (ClilocHelper.GetIndex(props, 1150541) > -1) { var value = ClilocHelper.GetParams(props, 1150541)[0]; if (value.Equals("[ <BASEFONT COLOR=#FFFAFA>Common<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Common); } if (value.Equals("[ <BASEFONT COLOR=#1EFF00>Uncommon<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Uncommon); } if (value.Equals("[ <BASEFONT COLOR=#0070FF>Rare<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Rare); } if (value.Equals("[ <BASEFONT COLOR=#A335EE>Epic<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Epic); } if (value.Equals("[ <BASEFONT COLOR=#FF8000>Legendary<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Legendary); } if (value.Equals("[ <BASEFONT COLOR=#FF0000>Event<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Event); } if (value.Equals("[ <BASEFONT COLOR=#B0E0E6>One Of A Kind<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.OOAK); } if (value.Equals("[ <BASEFONT COLOR=#FFFF00>Artifact<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Artifact); } if (value.Equals("[ <BASEFONT COLOR=#580b1c>ITS - Artifact<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.ITSArtifact); } if (value.Equals("[ <BASEFONT COLOR=#7CFC00>Newbie<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Newbie); } if (value.Equals("[ <BASEFONT COLOR=#D8BFD8>Set Item<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.SetItem); } if (value.Equals("[ <BASEFONT COLOR=#FF69B4>Donation<BASEFONT COLOR=#FFFFFF> ]")) { return(ItemValue.Donation); } } return(ItemValue.None); }
public static int ReadArtifactRarity(this IArtifactRarity obj, List <ClilocItemRec> reader) { return(ClilocHelper.Contains(reader, 1061078) ? 0 : ClilocHelper.GetParams(reader, 1061078)[0]); }
public static string ReadDecorationMessage(this IDecorateable ic, List <ClilocItemRec> properties) { return(!ClilocHelper.Contains(properties, 1073183) ? string.Empty : ClilocHelper.GetParams(properties, 1073183)[0]); }
protected override void Parse() { var x = Enum.GetValues(typeof(MagicalAttribute)); foreach (var e in x) { _data.Add((MagicalAttribute)e, 0); } this[MagicalAttribute.RegenHits] = (ClilocHelper.Contains(_lastmetatable, 1060444)) ? ClilocHelper.GetParams(_lastmetatable, 1060444)[0] : 0; this[MagicalAttribute.RegenStam] = (ClilocHelper.Contains(_lastmetatable, 1060443)) ? ClilocHelper.GetParams(_lastmetatable, 1060443)[0] : 0; this[MagicalAttribute.RegenMana] = (ClilocHelper.Contains(_lastmetatable, 1060440)) ? ClilocHelper.GetParams(_lastmetatable, 1060440)[0] : 0; this[MagicalAttribute.DefendChance] = (ClilocHelper.Contains(_lastmetatable, 1060408)) ? ClilocHelper.GetParams(_lastmetatable, 1060408)[0] : 0; this[MagicalAttribute.AttackChance] = (ClilocHelper.Contains(_lastmetatable, 1060415)) ? ClilocHelper.GetParams(_lastmetatable, 1060415)[0] : 0; this[MagicalAttribute.BonusStr] = (ClilocHelper.Contains(_lastmetatable, 1060485)) ? ClilocHelper.GetParams(_lastmetatable, 1060485)[0] : 0; this[MagicalAttribute.BonusDex] = (ClilocHelper.Contains(_lastmetatable, 1060409)) ? ClilocHelper.GetParams(_lastmetatable, 1060409)[0] : 0; this[MagicalAttribute.BonusInt] = (ClilocHelper.Contains(_lastmetatable, 1060432)) ? ClilocHelper.GetParams(_lastmetatable, 1060432)[0] : 0; this[MagicalAttribute.BonusHits] = (ClilocHelper.Contains(_lastmetatable, 1060431)) ? ClilocHelper.GetParams(_lastmetatable, 1060431)[0] : 0; this[MagicalAttribute.BonusStam] = (ClilocHelper.Contains(_lastmetatable, 1060484)) ? ClilocHelper.GetParams(_lastmetatable, 1060484)[0] : 0; this[MagicalAttribute.BonusMana] = (ClilocHelper.Contains(_lastmetatable, 1060439)) ? ClilocHelper.GetParams(_lastmetatable, 1060439)[0] : 0; uint ClilocID = 0; switch (XConfig.Engine) { case ShardEngine.Broadsword: ClilocID = 1060402; break; case ShardEngine.RebirthUO: ClilocID = 1060401; break; } this[MagicalAttribute.WeaponDamage] = (ClilocHelper.Contains(_lastmetatable, ClilocID)) ? ClilocHelper.GetParams(_lastmetatable, ClilocID)[0] : 0; this[MagicalAttribute.WeaponSpeed] = (ClilocHelper.Contains(_lastmetatable, 1060486)) ? ClilocHelper.GetParams(_lastmetatable, 1060486)[0] : 0; this[MagicalAttribute.SpellDamage] = (ClilocHelper.Contains(_lastmetatable, 1060483)) ? ClilocHelper.GetParams(_lastmetatable, 1060483)[0] : 0; this[MagicalAttribute.CastRecovery] = (ClilocHelper.Contains(_lastmetatable, 1060412)) ? ClilocHelper.GetParams(_lastmetatable, 1060412)[0] : 0; this[MagicalAttribute.CastSpeed] = (ClilocHelper.Contains(_lastmetatable, 1060413)) ? ClilocHelper.GetParams(_lastmetatable, 1060413)[0] : 0; this[MagicalAttribute.LowerManaCost] = (ClilocHelper.Contains(_lastmetatable, 1060433)) ? ClilocHelper.GetParams(_lastmetatable, 1060433)[0] : 0; this[MagicalAttribute.LowerRegCost] = (ClilocHelper.Contains(_lastmetatable, 1060434)) ? ClilocHelper.GetParams(_lastmetatable, 1060434)[0] : 0; this[MagicalAttribute.ReflectPhysical] = (ClilocHelper.Contains(_lastmetatable, 1060442)) ? ClilocHelper.GetParams(_lastmetatable, 1060442)[0] : 0; this[MagicalAttribute.EnhancePotions] = (ClilocHelper.Contains(_lastmetatable, 1060411)) ? ClilocHelper.GetParams(_lastmetatable, 1060411)[0] : 0; this[MagicalAttribute.Luck] = (ClilocHelper.Contains(_lastmetatable, 1060436)) ? ClilocHelper.GetParams(_lastmetatable, 1060436)[0] : 0; this[MagicalAttribute.SpellChanneling] = (ClilocHelper.Contains(_lastmetatable, 1060482)); this[MagicalAttribute.NightSight] = (ClilocHelper.Contains(_lastmetatable, 1060441)); this[MagicalAttribute.IncreasedKarmaLoss] = (ClilocHelper.Contains(_lastmetatable, 1075210)) ? ClilocHelper.GetParams(_lastmetatable, 1075210)[0] : 0; this[MagicalAttribute.CastingFocus] = (ClilocHelper.Contains(_lastmetatable, 1113696)) ? ClilocHelper.GetParams(_lastmetatable, 1113696)[0] : 0; this[MagicalAttribute.LowerAmmoCost] = (ClilocHelper.Contains(_lastmetatable, 1075208)) ? ClilocHelper.GetParams(_lastmetatable, 1075208)[0] : 0; base.Parse(); }
public static double ReadWeaponSpeed(this IWeapon ic, List <ClilocItemRec> properties) { return(!ClilocHelper.Contains(properties, 1061167) ? 1.0 : ClilocHelper.GetParams(properties, 1061167)[0]); }
public static int ReadLowerStrRequirement(this IWeapon ic, List <ClilocItemRec> properties) { return(!ClilocHelper.Contains(properties, 1061170) ? 0 : ClilocHelper.GetParams(properties, 1061170)[0]); }
public static string ReadCrafterName(this ICraftable ic, List <ClilocItemRec> properties) { return(!ClilocHelper.Contains(properties, 1050043) ? string.Empty : ClilocHelper.GetParams(properties, 1050043)[0]); }
public static int ReadWeaponRange(this IRangeWeapon ic, List <ClilocItemRec> properties) { return(!ClilocHelper.Contains(properties, 1061169) ? 1 : ClilocHelper.GetParams(properties, 1061169)[0]); }