public DruidOffHealSettings(HealingContext ctx) : base("DruidOffheal", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { Rejuvenation = 95; HealingTouch = 0; CenarionWard = 80; NaturesVigil = 60; } else if (ctx == Singular.HealingContext.Instances) { Rejuvenation = 95; HealingTouch = 70; CenarionWard = 80; NaturesVigil = 70; } else if (ctx == Singular.HealingContext.Raids) { Rejuvenation = 94; HealingTouch = 60; CenarionWard = 85; NaturesVigil = 80; } // omit case for WoWContext.Normal and let it use DefaultValue() values } SavedToFile = true; }
public ShamanOffHealSettings(HealingContext ctx) : base("ShamanOffheal", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { HealingRain = 93; HealingSurge = 85; AncestralSwiftness = 40; HealingStreamTotem = 90; MinHealingRainCount = 3; MinHealingTideCount = 2; } else // use group/companion healing { HealingRain = 93; HealingSurge = 80; AncestralSwiftness = 35; HealingStreamTotem = 90; MinHealingRainCount = 4; MinHealingTideCount = 2; } } SavedToFile = true; }
public MistweaverHealSettings(HealingContext ctx) : base("Mistweaver", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { HealFromMelee = false; } else if (ctx == Singular.HealingContext.Instances) { HealFromMelee = true; } else if (ctx == Singular.HealingContext.Raids) { HealFromMelee = true; } // omit case for WoWContext.Normal and let it use DefaultValue() values } SavedToFile = true; }
public static HealingContext getHealingContext(Mobile m) { HealingContext hc = null; contextTable.TryGetValue(m, out hc); return(hc); }
public static void DetermineCurrentWoWContext() { using (StyxWoW.Memory.AcquireFrame()) { CurrentWoWContext = _DetermineCurrentWoWContext(); CurrentHealContext = (CurrentWoWContext == WoWContext.Instances && Me.GroupInfo.IsInRaid) ? HealingContext.Raids : (HealingContext)CurrentWoWContext; } }
public MonkOffHealSettings(HealingContext ctx) : base("MonkOffheal", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { } else // use group/companion healing { } } SavedToFile = true; }
public static bool tryToHeal(Mobile healer, Mobile patient, Bandage bandage) { if (patient.Alive && (patient.Hits < patient.HitsMax || patient.Poisoned)) { if (healer == patient) { patient.SendLocalizedMessage(1008078, false, healer.Name); // : Attempting to heal you. } healer.SendLocalizedMessage(500956); // You begin applying the bandages. double finalDelay = new Random().NextDouble() * (Bandage.delayMax - Bandage.delayMin) + Bandage.delayMin; contextTable[healer] = new HealingContext(healer, patient, finalDelay); bandage.Consume(); return(true); } return(false); }
public ShamanOffHealSettings(HealingContext ctx) : base("ShamanOffheal", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { HealingRain = 93; GiftoftheQueen = 90; HealingSurge = 85; AncestralSwiftness = 40; HealingStreamTotem = 90; MinHealingRainCount = 3; MinGiftoftheQueenCount = 2; MinHealingTideCount = 2; } else // use group/companion healing { HealingRain = 93; GiftoftheQueen = 90; HealingSurge = 80; AncestralSwiftness = 35; HealingStreamTotem = 90; MinHealingRainCount = 4; MinGiftoftheQueenCount = 2; MinHealingTideCount = 2; } } SavedToFile = true; }
protected override void OnTarget(Mobile from, object targeted) { if (m_Bandage.Deleted) { return; } if (targeted is Mobile) { //Se comprueba de nuevo si la venda seleccionada y el mobile están "cerca". if (from.InRange(m_Bandage.GetWorldLocation(), Bandage.range)) { HealingContext.tryToHeal(from, (Mobile)targeted, m_Bandage); } else { from.SendLocalizedMessage(500295); // You are too far away to do that. } } else { from.SendLocalizedMessage(500970); // Bandages can not be used on that. } }
public DiscPriestHealSettings(HealingContext ctx) : base("Priest-Discipline", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { Renew = 0; Penance = 80; Heal = 0; PrayerOfMending = 80; GreaterHeal = 0; FlashHeal = 80; BindingHeal = 79; PrayerOfHealing = 90; VoidShift = 35; PainSuppression = 0; DiscLevel90Talent = 85; PowerWordBarrier = 40; CountLevel90Talent = 3; CountPrayerOfHealing = 3; CountPrayerOfMending = 3; CountPowerWordBarrier = 3; AtonementAbovePercent = 90; AtonementAboveCount = 1; AtonementWhenIdle = true; } else if (ctx == Singular.HealingContext.Instances) { Renew = 0; Penance = 80; Heal = 95; PrayerOfMending = 80; GreaterHeal = 60; FlashHeal = 30; BindingHeal = 75; PrayerOfHealing = 90; VoidShift = 29; PainSuppression = 0; DiscLevel90Talent = 85; PowerWordBarrier = 0; CountLevel90Talent = 3; CountPrayerOfHealing = 3; CountPrayerOfMending = 3; CountPowerWordBarrier = 3; AtonementAbovePercent = 90; AtonementAboveCount = 1; AtonementWhenIdle = true; } else if (ctx == Singular.HealingContext.Raids) { Renew = 0; Penance = 80; Heal = 0; PrayerOfMending = 90; GreaterHeal = 50; FlashHeal = 30; BindingHeal = 70; PrayerOfHealing = 89; VoidShift = 20; PainSuppression = 49; DiscLevel90Talent = 89; PowerWordBarrier = 80; CountLevel90Talent = 3; CountPrayerOfHealing = 3; CountPrayerOfMending = 3; CountPowerWordBarrier = 3; AtonementAbovePercent = 90; AtonementAboveCount = 1; AtonementWhenIdle = true; } // omit case for WoWContext.Normal and let it use DefaultValue() values } SavedToFile = true; }
public HolyPriestHealSettings(HealingContext ctx) : base("Priest-Holy", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { Renew = 95; PrayerOfMending = 94; Heal = 0; GreaterHeal = 0; FlashHeal = 80; BindingHeal = 55; HolyLevel90Talent = 85; HolyWordSanctuary = 95; HolyWordSerenity = 85; CircleOfHealing = 90; PrayerOfHealing = 85; DivineHymn = 75; GuardianSpirit = 35; VoidShift = 15; CountHolyWordSanctuary = 3; CountLevel90Talent = 3; CountCircleOfHealing = 3; CountPrayerOfHealing = 3; CountDivineHymn = 4; } else if (ctx == Singular.HealingContext.Instances) { Renew = 95; PrayerOfMending = 85; Heal = 90; GreaterHeal = 65; FlashHeal = 65; BindingHeal = 35; HolyLevel90Talent = 80; HolyWordSanctuary = 0; HolyWordSerenity = 85; CircleOfHealing = 93; PrayerOfHealing = 85; DivineHymn = 75; GuardianSpirit = 20; VoidShift = 19; CountHolyWordSanctuary = 3; CountLevel90Talent = 3; CountCircleOfHealing = 3; CountPrayerOfHealing = 3; CountDivineHymn = 4; } else if (ctx == Singular.HealingContext.Raids) { PowerWordShield = 100; Renew = 95; PrayerOfMending = 94; Heal = 0; GreaterHeal = 40; FlashHeal = 20; BindingHeal = 30; HolyLevel90Talent = 80; HolyWordSanctuary = 92; HolyWordSerenity = 0; CircleOfHealing = 93; PrayerOfHealing = 85; DivineHymn = 75; GuardianSpirit = 20; VoidShift = 19; CountHolyWordSanctuary = 3; CountLevel90Talent = 4; CountCircleOfHealing = 4; CountPrayerOfHealing = 3; CountDivineHymn = 5; } // omit case for WoWContext.Normal and let it use DefaultValue() values } // adjust Flash Heal if we have not previously if (!FlashHealAdjusted && StyxWoW.Me.Level >= 34 && (ctx == HealingContext.Instances || ctx == HealingContext.Raids)) { if (SavedToFile) Logger.Write(Color.White, "Flash Heal % changed from {0} to {1} for {2}. Visit Class Config and Save to make permanent.", FlashHeal, GuardianSpirit + 1, ctx.ToString()); FlashHeal = GuardianSpirit + 1; FlashHealAdjusted = true; } SavedToFile = true; }
// ctor for list item public HealContextItem(HealingContext context, WoWSpec spec, HealerSettings stgs) { Context = context; Spec = spec; Settings = stgs; }
// ctor for lookup only public HealContextItem(HealingContext context, WoWSpec spec) { Context = context; Spec = spec; }
public ShamanRestoHealSettings(HealingContext ctx) : base("ShamanResto", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { ChainHeal = 90; HealingRain = 93; HealingWave = 0; Ascendance = 49; SpiritLinkTotem = 50; HealingSurge = 85; AncestralSwiftness = 35; HealingStreamTotem = 100; CloudburstTotem = 100; HealingTideTotem = 55; RollRiptideCount = 0; MinHealingRainCount = 4; MinChainHealCount = 3; MinHealingTideCount = 2; } else if (ctx == Singular.HealingContext.Instances) { ChainHeal = 92; HealingRain = 91; HealingWave = 90; Ascendance = 50; SpiritLinkTotem = 49; HealingSurge = 70; AncestralSwiftness = 30; HealingStreamTotem = 100; CloudburstTotem = 100; HealingTideTotem = 65; RollRiptideCount = 1; MinHealingRainCount = 2; MinChainHealCount = 3; MinHealingTideCount = 2; } else if (ctx == Singular.HealingContext.Raids) { ChainHeal = 90; HealingRain = 95; HealingWave = 50; Ascendance = 50; SpiritLinkTotem = 48; HealingSurge = 21; AncestralSwiftness = 20; HealingStreamTotem = 100; CloudburstTotem = 100; HealingTideTotem = 70; RollRiptideCount = 5; MinHealingRainCount = 3; MinChainHealCount = 2; MinHealingTideCount = 4; } // omit case for WoWContext.Normal and let it use DefaultValue() values } // adjust Healing Surge if we have not previously if (!HealingSurgeAdjusted && StyxWoW.Me.Level >= 60 && (ctx == HealingContext.Instances || ctx == HealingContext.Raids)) { if (SavedToFile) Logger.Write( LogColor.Hilite, "Healing Surge % changed from {0} to {1} for {2}. Visit Class Config and Save to make permanent.", HealingSurge, AncestralSwiftness + 1, ctx.ToString()); HealingSurge = AncestralSwiftness + 1; HealingSurgeAdjusted = true; } SavedToFile = true; }
public ShamanRestoHealSettings(HealingContext ctx) : base("ShamanResto", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { ChainHeal = 90; HealingRain = 93; GiftoftheQueen = 90; HealingWave = 0; Ascendance = 49; SpiritLinkTotem = 50; HealingSurge = 85; AncestralSwiftness = 35; HealingStreamTotem = 100; CloudburstTotem = 100; HealingTideTotem = 55; RollRiptideCount = 0; MinHealingRainCount = 4; MinGiftoftheQueenCount = 2; MinChainHealCount = 3; MinHealingTideCount = 2; } else if (ctx == Singular.HealingContext.Instances) { ChainHeal = 92; HealingRain = 91; GiftoftheQueen = 90; HealingWave = 90; Ascendance = 50; SpiritLinkTotem = 49; HealingSurge = 70; AncestralSwiftness = 30; HealingStreamTotem = 100; CloudburstTotem = 100; HealingTideTotem = 65; RollRiptideCount = 1; MinHealingRainCount = 2; MinGiftoftheQueenCount = 2; MinChainHealCount = 3; MinHealingTideCount = 2; } else if (ctx == Singular.HealingContext.Raids) { ChainHeal = 90; HealingRain = 95; GiftoftheQueen = 90; HealingWave = 50; Ascendance = 50; SpiritLinkTotem = 48; HealingSurge = 21; AncestralSwiftness = 20; HealingStreamTotem = 100; CloudburstTotem = 100; HealingTideTotem = 70; RollRiptideCount = 5; MinHealingRainCount = 3; MinGiftoftheQueenCount = 5; MinChainHealCount = 2; MinHealingTideCount = 4; } // omit case for WoWContext.Normal and let it use DefaultValue() values } // adjust Healing Surge if we have not previously if (!HealingSurgeAdjusted && StyxWoW.Me.Level >= 60 && (ctx == HealingContext.Instances || ctx == HealingContext.Raids)) { if (SavedToFile) { Logger.Write(LogColor.Hilite, "Healing Surge % changed from {0} to {1} for {2}. Visit Class Config and Save to make permanent.", HealingSurge, AncestralSwiftness + 1, ctx.ToString()); } HealingSurge = AncestralSwiftness + 1; HealingSurgeAdjusted = true; } SavedToFile = true; }
public HealingProcess(double delay, HealingContext hc) : base(TimeSpan.FromMilliseconds(delay*1000)){ this.hc = hc; }
public DiscPriestHealSettings(HealingContext ctx) : base("Priest-Discipline", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { Penance = 50; Plea = 80; PrayerOfMending = 90; Heal = 0; FlashHeal = 80; PowerWordRadiance = 90; PainSuppression = 0; DiscLevel90Talent = 85; PowerWordBarrier = 40; CountLevel90Talent = 3; CountPowerWordRadiance = 3; CountPrayerOfMending = 2; CountPowerWordBarrier = 3; AtonementAbovePercent = 90; AtonementAboveCount = 1; } else if (ctx == Singular.HealingContext.Instances) { Penance = 50; Plea = 80; PrayerOfMending = 90; Heal = 60; FlashHeal = 90; PowerWordRadiance = 90; PainSuppression = 0; DiscLevel90Talent = 85; PowerWordBarrier = 0; CountLevel90Talent = 3; CountPowerWordRadiance = 3; CountPrayerOfMending = 2; CountPowerWordBarrier = 3; AtonementAbovePercent = 90; AtonementAboveCount = 1; } else if (ctx == Singular.HealingContext.Raids) { Penance = 50; Plea = 80; PrayerOfMending = 90; Heal = 50; FlashHeal = 70; PowerWordRadiance = 89; PainSuppression = 49; DiscLevel90Talent = 89; PowerWordBarrier = 80; CountLevel90Talent = 3; CountPowerWordRadiance = 3; CountPrayerOfMending = 3; CountPowerWordBarrier = 3; AtonementAbovePercent = 90; AtonementAboveCount = 1; } // omit case for WoWContext.Normal and let it use DefaultValue() values } SavedToFile = true; }
public static bool tryToHeal(Mobile healer, Mobile patient, Bandage bandage){ if(patient.Alive && (patient.Hits < patient.HitsMax || patient.Poisoned) ){ if ( healer == patient) patient.SendLocalizedMessage( 1008078, false, healer.Name ); // : Attempting to heal you. healer.SendLocalizedMessage( 500956 ); // You begin applying the bandages. double finalDelay = new Random().NextDouble()*(Bandage.delayMax-Bandage.delayMin)+Bandage.delayMin; contextTable[healer] = new HealingContext(healer, patient, finalDelay); bandage.Consume(); return true; } return false; }
// reqd ctor public HealerSettings(string className, HealingContext ctx) : base(Path.Combine(SingularSettings.SingularSettingsPath, className + "-Heal-" + ctx.ToString() + ".xml")) { Context = ctx; }
public HealingProcess(double delay, HealingContext hc) : base(TimeSpan.FromMilliseconds(delay * 1000)) { this.hc = hc; }
public DruidHealSettings(HealingContext ctx) : base("Druid", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { Rejuvenation = 95; HealingTouch = 0; Regrowth = 75; WildGrowth = 90; CountWildGrowth = 3; Swiftmend = 74; Tranquility = 0; CountTranquility = 0; TreeOfLife = 60; CountTreeOfLife = 1; Ironbark = 59; NaturesSwiftness = 35; CenarionWard = 80; NaturesVigil = 60; } else if (ctx == Singular.HealingContext.Instances) { Rejuvenation = 95; HealingTouch = 70; Regrowth = 40; WildGrowth = 85; CountWildGrowth = 3; Swiftmend = 70; Tranquility = 60; CountTranquility = 3; TreeOfLife = 70; CountTreeOfLife = 3; Ironbark = 60; NaturesSwiftness = 25; CenarionWard = 80; NaturesVigil = 70; } else if (ctx == Singular.HealingContext.Raids) { Rejuvenation = 94; HealingTouch = 60; Regrowth = 40; WildGrowth = 90; CountWildGrowth = 4; Swiftmend = 85; Tranquility = 70; CountTranquility = 5; TreeOfLife = 75; CountTreeOfLife = 4; Ironbark = 65; NaturesSwiftness = 25; CenarionWard = 85; NaturesVigil = 80; } // omit case for WoWContext.Normal and let it use DefaultValue() values } SavedToFile = true; }
public DruidHealSettings(HealingContext ctx) : base("Shaman", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { Rejuvenation = 95; Nourish = 0; HealingTouch = 0; Regrowth = 75; WildGrowth = 90; CountWildGrowth = 3; SwiftmendAOE = 0; CountSwiftmendAOE = 0; SwiftmendDirectHeal = 74; WildMushroomBloom = 60; CountMushroomBloom = 1; Tranquility = 0; CountTranquility = 0; TreeOfLife = 60; CountTreeOfLife = 1; Ironbark = 59; NaturesSwiftness = 35; CenarionWard = 80; NaturesVigil = 60; } else if (ctx == Singular.HealingContext.Instances) { Rejuvenation = 95; Nourish = 85; HealingTouch = 70; Regrowth = 40; WildGrowth = 85; CountWildGrowth = 3; SwiftmendAOE = 0; CountSwiftmendAOE = 0; SwiftmendDirectHeal = 70; WildMushroomBloom = 85; CountMushroomBloom = 2; Tranquility = 60; CountTranquility = 3; TreeOfLife = 70; CountTreeOfLife = 3; Ironbark = 60; NaturesSwiftness = 25; CenarionWard = 80; NaturesVigil = 70; } else if (ctx == Singular.HealingContext.Raids) { Rejuvenation = 94; Nourish = 95; HealingTouch = 60; Regrowth = 40; WildGrowth = 90; CountWildGrowth = 4; SwiftmendAOE = 0; CountSwiftmendAOE = 0; SwiftmendDirectHeal = 85; WildMushroomBloom = 95; CountMushroomBloom = 3; Tranquility = 70; CountTranquility = 5; TreeOfLife = 75; CountTreeOfLife = 4; Ironbark = 65; NaturesSwiftness = 25; CenarionWard = 85; NaturesVigil = 80; } // omit case for WoWContext.Normal and let it use DefaultValue() values } SavedToFile = true; }
public HolyPriestHealSettings(HealingContext ctx) : base("Priest-Holy", ctx) { // we haven't created a settings file yet, // .. so initialize values for various heal contexts if (!SavedToFile) { if (ctx == Singular.HealingContext.Battlegrounds) { Renew = 95; PrayerOfMending = 94; Heal = 0; FlashHeal = 80; BindingHeal = 55; HolyLevel90Talent = 85; HolyWordSanctify = 95; HolyWordSerenity = 50; CircleOfHealing = 90; PrayerOfHealing = 70; DivineHymn = 75; GuardianSpirit = 35; CountHolyWordSanctify = 3; CountLevel90Talent = 3; CountCircleOfHealing = 3; CountPrayerOfHealing = 3; CountDivineHymn = 4; } else if (ctx == Singular.HealingContext.Instances) { Renew = 95; PrayerOfMending = 85; Heal = 65; FlashHeal = 80; BindingHeal = 35; HolyLevel90Talent = 80; HolyWordSanctify = 0; HolyWordSerenity = 60; CircleOfHealing = 93; PrayerOfHealing = 70; DivineHymn = 75; GuardianSpirit = 20; CountHolyWordSanctify = 3; CountLevel90Talent = 3; CountCircleOfHealing = 3; CountPrayerOfHealing = 3; CountDivineHymn = 4; } else if (ctx == Singular.HealingContext.Raids) { PowerWordShield = 100; Renew = 95; PrayerOfMending = 94; Heal = 40; FlashHeal = 70; BindingHeal = 30; HolyLevel90Talent = 80; HolyWordSanctify = 92; HolyWordSerenity = 50; CircleOfHealing = 93; PrayerOfHealing = 85; DivineHymn = 75; GuardianSpirit = 20; CountHolyWordSanctify = 3; CountLevel90Talent = 4; CountCircleOfHealing = 4; CountPrayerOfHealing = 3; CountDivineHymn = 5; } // omit case for WoWContext.Normal and let it use DefaultValue() values } // adjust Flash Heal if we have not previously if (!FlashHealAdjusted && StyxWoW.Me.Level >= 34 && (ctx == HealingContext.Instances || ctx == HealingContext.Raids)) { if (SavedToFile) { Logger.Write(LogColor.Hilite, "Flash Heal % changed from {0} to {1} for {2}. Visit Class Config and Save to make permanent.", FlashHeal, GuardianSpirit + 1, ctx.ToString()); } FlashHeal = GuardianSpirit + 1; FlashHealAdjusted = true; } SavedToFile = true; }