public static List <PowerDefinition> LoadPowers(string xmlfile) { List <PowerDefinition> powers = new List <PowerDefinition>(); XPathDocument doc = new XPathDocument(xmlfile); XPathNavigator nav = doc.CreateNavigator(); foreach (XPathNavigator n in nav.Select("/battle/powers/power")) { PowerDefinition p = new PowerDefinition(); string name = n.GetAttribute("name", ""); string descr = n.GetAttribute("description", ""); p.Name = name; p.Description = descr; foreach (XPathNavigator n2 in n.Select("provides")) { p.Provide(n2.GetAttribute("value", "")); } foreach (XPathNavigator n3 in n.Select("requires")) { p.Require(n3.GetAttribute("value", "")); } powers.Add(p); } return(powers); }
public HolyShield() { m_Definition = new PowerDefinition( 20, "Holy Shield", "Erstok K'blac", ""); }
public HolyWord() { m_Definition = new PowerDefinition( 100, "Holy Word", "Erstok Oostrac", ""); }
public UnholyWord() { m_Definition = new PowerDefinition( 100, "Unholy Word", "Velgo Oostrac", ""); }
public UnholySense() { m_Definition = new PowerDefinition( 0, "Unholy Sense", "Drewrok Velgo", ""); }
public HolySense() { m_Definition = new PowerDefinition( 0, "Holy Sense", "Drewrok Erstok", ""); }
public HolyItem() { m_Definition = new PowerDefinition( 5, "Holy Item", "Vidda K'balc", ""); }
public VileBlade() { m_Definition = new PowerDefinition( 10, "Vile Blade", "Velgo Reyam", ""); }
public Bless() { m_Definition = new PowerDefinition( 15, "Bless", "Erstok Ontawl", ""); }
public UnholyShield() { m_Definition = new PowerDefinition( 20, "Unholy Shield", "Velgo K'blac", ""); }
public BlightPower() { m_Definition = new PowerDefinition( 15, "Blight", "Velgo Ontawl", ""); }
public SummonFamiliar() { m_Definition = new PowerDefinition( 5, "Summon Familiar", "Trubechs Vingir", ""); }
public HolyBlade() { m_Definition = new PowerDefinition( 10, "Holy Blade", "Erstok Reyam", ""); }
public UnholySteed() { m_Definition = new PowerDefinition( 30, "Unholy Steed", "Trubechs Yeliab", ""); }
public HolySteed() { m_Definition = new PowerDefinition( 30, "Holy Steed", "Trubechs Yeliab", "" ); }
public UnholySense() { m_Definition = new PowerDefinition( 0, "Unholy Sense", "Drewrok Velgo", "" ); }
public Bless() { m_Definition = new PowerDefinition( 15, "Bless", "Erstok Ontawl", "" ); }
public UnholyWord() { m_Definition = new PowerDefinition( 100, "Unholy Word", "Velgo Oostrac", "" ); }
public UnholyItem() { m_Definition = new PowerDefinition( 10, "Unholy Item", "Vidda K'balc", "" ); }
public UnholyShield() { m_Definition = new PowerDefinition( 20, "Unholy Shield", "Velgo K'blac", "" ); }
public HolySteedPower() { m_Definition = new PowerDefinition( 30, "Holy Steed", "Trebuchs Yeliab", "" ); }
public UnholyItem() { m_Definition = new PowerDefinition( 5, "Unholy Item", "Vidda K'balc", "" ); }
public HolySense() { m_Definition = new PowerDefinition( 0, "Holy Sense", "Drewrok Erstok", "" ); }
public HolyWord() { m_Definition = new PowerDefinition( 100, "Holy Word", "Erstok Oostrac", "" ); }
public HolyBlade() { m_Definition = new PowerDefinition( 10, "Holy Blade", "Erstok Reyam", "" ); }
public Blight() { m_Definition = new PowerDefinition( 15, "Blight", "Velgo Ontawl", "" ); }
public HolyShield() { m_Definition = new PowerDefinition( 20, "Holy Shield", "Erstok K'blac", "" ); }
public SummonFamiliar() { m_Definition = new PowerDefinition( 5, "Summon Familiar", "Trubechs Vingir", "" ); }
public VileBlade() { m_Definition = new PowerDefinition( 10, "Vile Blade", "Velgo Reyam", "" ); }
public HolySteed() { m_Definition = new PowerDefinition( 30, 5, "Holy Steed", "Trubechs Yeliab", "" ); }
public HolySense() { m_Definition = new PowerDefinition( 0, 2, "Holy Sense", "Drewrok Velgo", // powerwords swapped in RunUO with ("Drewrok Erstok") "" ); }
public HolyUnion() : base(null, m_Info) { m_Definition = new PowerDefinition( 50, "Holy Union", "Vingir Yeliab", "Expend a moderate amount of life force to resurrect an ally or pet", 23001 ); }
public HolySteedPower() : base(null, m_Info) { m_Definition = new PowerDefinition( 50, "Holy Steed", "Xen Yeliab", "Summon a holy steed.", 20997 ); }
public UnholySense() : base(null, m_Info) { m_Definition = new PowerDefinition( 0, "Unholy Sense", "Drewrok Velgo", "Sense the presence of good near you. Strength is based off your current life force.", 20486 ); }
public VileBlade() : base(null, m_Info) { m_Definition = new PowerDefinition( 15, "Defile Armament", "Velgo Reyam", "Defile a weapon or piece of armor, strengthening it against the opposing ethic.", 24003 ); }
public HolyBlade() : base(null, m_Info) { m_Definition = new PowerDefinition( 15, "Sanctify Armament", "Erst Reyam", "Sanctify a weapon or piece of armor, strengthening it against the opposing ethic.", 20741 ); }
public HolySense() : base(null, m_Info) { m_Definition = new PowerDefinition( 0, "Holy Sense", "Drewrok Erst", "Sense the presence of evil near you. Strength is based off your current life force.", 20736 ); }
public UnholyWord() : base(null, m_Info) { m_Definition = new PowerDefinition( 100, "Unholy Word", "Velgo Oostrac", "Expend all of your life force to resurrect yourself. Works once per day.", 20494 ); }
public HolyWord() : base(null, m_Info) { m_Definition = new PowerDefinition( 100, "Holy Word", "Erst Oostrac", "Expend all of your life force to resurrect yourself. Works once per day.", 20742 ); }
public UnholyItem() : base(null, m_Info) { m_Definition = new PowerDefinition( 100, "Desecrate Item", "Vidda K'balc", "Desecrate an item, turning it your ethic color. This will also bless clothing.", 21015 ); }
public SummonFamiliar() : base(null, m_Info) { m_Definition = new PowerDefinition( 25, "Unholy Beast", "Xen Vingir", "Summon an unholy beast to aid you in combat.", 20491 ); }
public SummonFamiliar() : base(null, m_Info) { m_Definition = new PowerDefinition( 25, "Holy Beast", "Xen Vingir", "Summon a holy beast to aid you in combat.", 20491 ); }
public UnholySteedPower() : base(null, m_Info) { m_Definition = new PowerDefinition( 50, "Unholy Steed", "Xen Yeliab", "Summon an unholy steed.", 20997 ); }
public SummonFamiliar(Player Caster) : base(Caster.Mobile, m_Info) { m_Definition = new PowerDefinition( 25, "Unholy Beast", "Xen Vingir", "Summon an unholy beast to aid you in combat.", 20491 ); EthicCaster = Caster; }
public UnholyItem(Player Caster) : base(Caster.Mobile, m_Info) { m_Definition = new PowerDefinition( 100, "Desecrate Item", "Vidda K'balc", "Desecrate an item, turning it your ethic color. This will also bless clothing.", 21015 ); EthicCaster = Caster; }
public HolyBlade(Player Caster) : base(Caster.Mobile, m_Info) { m_Definition = new PowerDefinition( 15, "Sanctify Armament", "Erst Reyam", "Sanctify a weapon or piece of armor, strengthening it against the opposing ethic.", 20741 ); EthicCaster = Caster; }
public HolySense(Player Caster) : base(Caster.Mobile, m_Info) { m_Definition = new PowerDefinition( 0, "Holy Sense", "Drewrok Erst", "Sense the presence of evil near you. Strength is based off your current life force.", 20736 ); EthicCaster = Caster; }
public VileBlade(Player Caster) : base(Caster.Mobile, m_Info) { m_Definition = new PowerDefinition( 15, "Defile Armament", "Velgo Reyam", "Defile a weapon or piece of armor, strengthening it against the opposing ethic.", 24003 ); EthicCaster = Caster; }
public UnholySteedPower(Player Caster) : base(Caster.Mobile, m_Info) { m_Definition = new PowerDefinition( 50, "Unholy Steed", "Xen Yeliab", "Summon an unholy steed.", 20997 ); EthicCaster = Caster; }
public SummonFamiliar(Player Caster) : base(Caster.Mobile, m_Info) { m_Definition = new PowerDefinition( 25, "Holy Beast", "Xen Vingir", "Summon a holy beast to aid you in combat.", 20491 ); EthicCaster = Caster; }
public HolyUnion(Player Caster) : base(Caster.Mobile, m_Info) { m_Definition = new PowerDefinition( 100, "Holy Union", "Vingir Yeliab", "Expend a moderate amount of life force to resurrect an ally or pet", 23001 ); EthicCaster = Caster; }