Professional Documents
Culture Documents
AionGame;
using AionBotnet.AionGame.UnknownFramework.Helper;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AionBotnet.ScriptLibrary.AionClassic.Include.CombatSystem.AionClass
{
public class ClericSettings : AionClassBaseSetting
{
/// <summary>
/// Indicates whether or not party healing are allowed
/// </summary>
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_AllowPartyHealing", "Allow party healing")]
public bool AllowPartyHealing { get; set; }
/// <summary>
/// Indicates whether or not party resurrection are allowed
/// </summary>
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_AllowPartyResurrection", "Allow party resurrection")]
public bool AllowPartyResurrection { get; set; }
/// <summary>
/// Indicates whether or not using Hand of Reincarnation is allowed.
/// </summary>
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_AllowHandOfReincarnation", "Allow Hand Of
Reincarnation")]
public bool AllowHandOfReincarnation { get; set; }
/// <summary>
/// Indicates whether or not using Hand of Reincarnation is allowed.
/// </summary>
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_AllowRebirth", "Allow Rebirth")]
public bool AllowRebirth { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_AllowPenance", "Allow Penance")]
public bool AllowPenance { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_AllowSacrificalPower", "Allow Sacrifical Power")]
public bool AllowSacrificalPower { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_SplendourOfRecoveryHPLow", "Splendour of Recovery HP <
%")]
public int SplendourOfRecoveryHPLow { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_SavingGraceLowHP", "Saving Grace HP < %")]
public int SavingGraceLowHP { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_RadiantCureLowHP", "Radiant Cure HP < %")]
public int RadiantCureLowHP { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_LightOfRecovery", "Light of Recovery HP < %")]
public int LightOfRecovery { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_FlashOfRecovery", "Flash of Recovery HP < %")]
public int FlashOfRecovery { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_SplendourOfRebirth", "Splendour of Rebirth HP < %")]
public int SplendourOfRebirth { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_RippleOfPurification", "Ripple of Purification HP <
%")]
public int RippleOfPurification { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_HealingLightLowHP", "Healing Light HP < %")]
public int HealingLightLowHP { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_HealingWindLowHP", "Healing Wind HP < %")]
public int HealingWindLowHP { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_SplendorOfRecoveryLowHP", "Splendor Of Recovery HP <
%")]
public int SplendorOfRecoveryLowHP { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_SummonHealingServantLowHP", "Summon Healing Servant HP
< %")]
public int SummonHealingServantLowHP { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_AllowSummerCircleBuff", "Allow Summer Circle Buff")]
public bool AllowSummerCircleBuff { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_AllowWinterCircleBuff", "Allow Winter Circle Buff")]
public bool AllowWinterCircleBuff { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_AllowSalvation_PandaemoniumsProtection", "Allow
Salvation - Pandaemonium's Protection")]
public bool AllowSalvation_PandaemoniumsProtection { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_UseSalvation_PandaemoniumsProtectionLowMPPErcentage",
"Use Salvation - Pandaemonium's Protection MP < %")]
public int UseSalvation_PandaemoniumsProtectionLowMPPErcentage { get;
set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_UseSagesWisdomHPPercentage", "Use Sage's Wisdom HP <
%")]
public int UseSagesWisdomHPPercentage { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_UseThornySkin", "Use Thorny Skin")]
public bool UseThornySkin { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_CureMindSkillId", "Use Cure Mind With skill ID")]
public string CureMindSkillId { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_DispelSkillId", "Use Dispel With skill ID")]
public string DispelSkillId { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_AllowGroupDispel", "Enable PT Dispel Check")]
public bool AllowGroupDispel { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_CureMindlLevel", "Enable PT Dispel: Cure Mind Lvl")]
public int CureMindlLevel { get; set; }
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_DispelLevel", "Enable PT Dispel: Dispel Lvl ")]
public int DispelLevel { get; set; }
[Browsable(false)]
[DisplayNameDynamic(ScriptDirectory,
"AionClassBaseSetting_Cleric_MasterName", "Master Name")]
public string MasterName { get; set; }
SplendourOfRecoveryHPLow = 70;
SavingGraceLowHP = 45;
RadiantCureLowHP = 50;
LightOfRecovery = 0;
FlashOfRecovery = 50;
SplendourOfRebirth = 50;
HealingLightLowHP = 0;
SummonHealingServantLowHP = 50;
RippleOfPurification = 50;
HealingWindLowHP = 50;
SplendorOfRecoveryLowHP = 50;
TargetSearchDistance = 25;
CureMindSkillId = "";
DispelSkillId = "";
MasterName = "";
}
SplendourOfRecoveryHPLow = classSettings.SplendourOfRecoveryHPLow;
SavingGraceLowHP = classSettings.SavingGraceLowHP;
RadiantCureLowHP = classSettings.RadiantCureLowHP;
LightOfRecovery = classSettings.LightOfRecovery;
FlashOfRecovery = classSettings.FlashOfRecovery;
SplendourOfRebirth = classSettings.SplendourOfRebirth;
RippleOfPurification = classSettings.RippleOfPurification;
HealingLightLowHP = classSettings.HealingLightLowHP;
HealingWindLowHP = classSettings.HealingWindLowHP;
SplendorOfRecoveryLowHP = classSettings.SplendorOfRecoveryLowHP;
SummonHealingServantLowHP = classSettings.SummonHealingServantLowHP;
AllowSummerCircleBuff = classSettings.AllowSummerCircleBuff;
AllowWinterCircleBuff = classSettings.AllowWinterCircleBuff;
AllowSalvation_PandaemoniumsProtection =
classSettings.AllowSalvation_PandaemoniumsProtection;
UseSalvation_PandaemoniumsProtectionLowMPPErcentage =
classSettings.UseSalvation_PandaemoniumsProtectionLowMPPErcentage;
UseSagesWisdomHPPercentage = classSettings.UseSagesWisdomHPPercentage;
UseThornySkin = classSettings.UseThornySkin;
CureMindlLevel = classSettings.CureMindlLevel;
DispelLevel = classSettings.DispelLevel;
AllowGroupDispel = classSettings.AllowGroupDispel;
CureMindSkillId = classSettings.CureMindSkillId;
DispelSkillId = classSettings.DispelSkillId;
MasterName = classSettings.MasterName;
}
}
"Chastise II",
"Chastise I",
"Smite V",
"Smite IV",
"Smite III",
"Smite II",
"Smite I",
};
"Thunderbolt IV",
"Thunderbolt III",
"Thunderbolt II",
"Thunderbolt I",
};
//
StateDispelTime = DateTime.MinValue;
StateArray = new Dictionary<uint, Dictionary<uint, int>>();
StateUndispellable = new Dictionary<uint, DateTime>();
PerformFlash = false;
sacrificialPowerBuffTimer = DateTime.MinValue;
if (string.IsNullOrWhiteSpace(Settings.CureMindSkillId) == false)
{
var skillIds = Settings.CureMindSkillId.Split(new char[] { ';', ','
}, StringSplitOptions.RemoveEmptyEntries);
List<uint> tempSkillIds = new List<uint>();
DispelSkillId = tempSkillIds.ToArray();
}
}
// Player only
//if (entity.HealthPercentage > 70)
//{
// if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Chain of Suffering
IV"))
// {
//
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Chain of Suffering
IV");
// return false;
// }
// else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Chain of Suffering
III"))
// {
//
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Chain of Suffering
III");
// return false;
// }
// else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Chain of Suffering
II"))
// {
//
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Chain of Suffering
II");
// return false;
// }
// else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Chain of Suffering
I"))
// {
//
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Chain of Suffering
I");
// return false;
// }
//}
// Shield
if (Game.Player.HealthPercentage < 40 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Immortal Shroud
I"))
{
// Sage's Wisdom I
if (Game.Player.HealthPercentage< Settings.UseSagesWisdomHPPercentage&&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(1102))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(1102);
return false;
}
// Thorny Skin I
if (Settings.UseThornySkin&&Game.Player.HealthPercentage>20)
{
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(2133))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(2133);
return false;
}
else
if(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(1104))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(1104);
return false;
}
else
if(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(1103))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(1103);
return false;
}
}
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Enfeebling Burst
II");
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Enfeebling Burst
I"))
{
if (distance < 4)
{
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Hallowed Strike
V"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Hallowed Strike V");
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Hallowed Strike
IV"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Hallowed Strike
III");
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Hallowed Strike
II"))
{
if (string.IsNullOrWhiteSpace(Settings.MasterName) == false)
{
var masterEntity = Game.EntityList.GetEntity(Settings.MasterName);
if (masterEntity != null)
{
memberList.Add(masterEntity);
}
}
int healingGroupBenefitCount = 0;
candidateMembers.Add(tempMember);
if (Settings.AllowPartyHealing)
{
// Order list by HP (less HP have priority)
var hpOrder = candidateMembers.OrderBy(o =>
o.HealthPercentage).ToList();
// Healing Wind
if (hpOrder.Where(w => w.HealthPercentage <
Settings.HealingWindLowHP).Count() >= 2)
{
if (CheckAndExecuteSkills(null, "Healing Wind", 4))
{
return false;
}
}
// Splendor of Recover
if (hpOrder.Where(w => w.HealthPercentage <
Settings.SplendorOfRecoveryLowHP).Count() >= 2)
{
string splendorOfRecoveryName = "Splendor of Recovery";
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(splendorOfRecoveryN
ame + " III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(splendorOfRecoveryName
+ " III");
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(splendorOfRecoveryN
ame + " II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(splendorOfRecoveryName
+ " II");
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(splendorOfRecoveryN
ame + " I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(splendorOfRecoveryName
+ " I");
return false;
}
}
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Resurrection
I", memberEntity);
return false;
}
}
}
}
// Dispel
foreach (var tempMember in memberList)
{
var memberEntity = Game.EntityList.GetEntity(tempMember.Id);
// If is death
if (memberEntity != null && memberEntity.Id != Game.Player.Id &&
memberEntity.IsDead == false &&
memberEntity.Position.DistanceToPosition(Game.Player.Position) < 20)
{
if (CheckDispel(memberEntity) == false)
return false;
}
}
if (CheckHeal(Game.Player) == false)
return false;
if (CheckDispel(Game.Player) == false)
return false;
// Istant
if (Game.Player.HealthPercentage < 50)
{
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
VI"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Flash of Recovery
VI", Game.Player);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
V"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Flash of Recovery
IV", Game.Player);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Flash of Recovery
III", Game.Player);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Flash of Recovery
II", Game.Player);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
I"))
{
//
if (Game.Player.HealthPercentage < 95 &&
Game.Player.StateList.GetList().Where(s => s.Value.Name_Eu.IndexOf("Light of
Rejuvenation", StringComparison.InvariantCultureIgnoreCase) >= 0).Any() == false
&& Game.Player.StateList.GetList().Where(s =>
s.Value.Name_Eu.IndexOf("Word of Revival",
StringComparison.InvariantCultureIgnoreCase) >= 0).Any() == false)
{
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of
Rejuvenation IV"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Rejuvenation
IV", Game.Player);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of
Rejuvenation III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Rejuvenation
III", Game.Player);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of
Rejuvenation II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Rejuvenation
II", Game.Player);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of
Rejuvenation I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Rejuvenation
I", Game.Player);
return false;
}
}
// Penance
if (Settings.AllowPenance)
{
var missingMane = Game.Player.ManaMaximum -
Game.Player.ManaCurrent;
if (missingMane > 2000 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Penance IV"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Penance IV",
Game.Player);
return false;
}
else if (missingMane > 1700 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Penance III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Penance III",
Game.Player);
return false;
}
else if (missingMane > 1200 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Penance II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Penance II",
Game.Player);
return false;
}
else if (missingMane > 800 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Penance I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Penance I",
Game.Player);
return false;
}
}
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(1166);
return false;
}
// Pandaemonium's Protection I
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(1171))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute(1171);
return false;
}
}
}
// Self Dispel
var
debuffStatus=Game.Process.GetUnsignedInteger(Game.DialogList.GetDialog("basic_statu
s_dialog/hp_gauge").GetAddress() + 0x30);
if(debuffStatus==1)
{
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind II") &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel II");
System.Threading.Thread.Sleep(750);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind I") &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel I");
System.Threading.Thread.Sleep(750);
return false;
}
}
if (Settings.AllowGroupDispel)
{
foreach (var tempMember in Game.PartyMemberList.GetList().Select(s
=> s.Value))
{
var memberEntity =
Game.EntityList.GetEntity(tempMember.Id);
if (memberEntity != null && memberEntity.Id !=
Game.Player.Id && memberEntity.Position.DistanceToPosition(Game.Player.Position) <
20)
{
var
debuffStatus2=Game.Process.GetUnsignedInteger(Game.DialogList.GetDialog("party_dial
og/ctn_member2/hp").GetAddress() + 0x30);
if (debuffStatus2==1)
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 2
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel II");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 1
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel I");
System.Threading.Thread.Sleep(250);
}
if (Settings.CureMindlLevel == 3 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Cure Mind
III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
2 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind
II"))
{
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
1 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind I"))
{
System.Threading.Thread.Sleep(250);
}
}
/*
else // debuffStatus==0 no altered status
detected
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 2
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel II");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 1
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel I");
System.Threading.Thread.Sleep(250);
}
if (Settings.CureMindlLevel == 3 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Cure Mind
III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
2 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind
II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Cure Mind II");
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
1 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind I"))
{
System.Threading.Thread.Sleep(250);
}
}
/*
else // debuffStatus==0 no altered status
detected
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 2
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel II");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 1
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel I");
System.Threading.Thread.Sleep(250);
}
if (Settings.CureMindlLevel == 3 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Cure Mind
III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
2 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind
II"))
{
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
1 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind I"))
{
System.Threading.Thread.Sleep(250);
}
}
/*
else // debuffStatus==0 no altered status
detected
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 2
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel II");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 1
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel I");
System.Threading.Thread.Sleep(250);
}
if (Settings.CureMindlLevel == 3 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Cure Mind
III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
2 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind
II"))
{
System.Threading.Thread.Sleep(250);
}
}
/*
else // debuffStatus==0 no altered status
detected
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 2
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel II");
System.Threading.Thread.Sleep(250);
}
else if(Settings.DispelLevel == 1
&& AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Dispel I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Dispel I");
System.Threading.Thread.Sleep(250);
}
if (Settings.CureMindlLevel == 3 &&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Cure Mind
III");
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
2 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind
II"))
{
System.Threading.Thread.Sleep(250);
}
else if(Settings.CureMindlLevel ==
1 && AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Cure Mind I"))
{
System.Threading.Thread.Sleep(250);
}
}
/*
else // debuffStatus==0 no altered status
detected
{
}
// Promise of Wind
if (Game.Player.StateList.GetList().Where(s =>
s.Value.Name_Eu.IndexOf("Promise of Wind",
StringComparison.InvariantCultureIgnoreCase) >= 0).Any() == false)
{
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Promise of Wind
I"))
{
// Rebirth to yourslef
if (Settings.AllowRebirth
&& Game.Player.StateList.GetList().Where(s =>
s.Value.Name_Eu.IndexOf("Rebirth", StringComparison.InvariantCultureIgnoreCase) >=
0).Any() == false
&& Game.Player.StateList.GetList().Where(s =>
s.Value.Name_Eu.IndexOf("Hand of Reincarnation",
StringComparison.InvariantCultureIgnoreCase) >= 0).Any() == false
&&
AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Rebirth I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Rebirth I",
Game.Player);
return false;
}
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Hand of Reincarnation
I", Game.Player);
return false;
}
}
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Splendor of Flight
I");
return false;
}
// Create the state array for the current entity if it does not
exist.
if (StateArray.ContainsKey(entity.Id) == false)
{
StateArray[entity.Id] = new Dictionary<uint, int>();
}
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Flash of Recovery
VI", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
V"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Flash of Recovery
IV", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Flash of Recovery
III", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Flash of Recovery
II", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Flash of Recovery
I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Splendor of Rebirth
IV", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Splendor of
Rebirth III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Splendor of Rebirth
III", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Splendor of
Rebirth II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Splendor of Rebirth
II", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Splendor of
Rebirth I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Splendor of Rebirth
I", entity);
return false;
}
}
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Rejuvenation
IV", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of
Rejuvenation III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Rejuvenation
III", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of
Rejuvenation II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Rejuvenation
II", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of
Rejuvenation I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Rejuvenation
I", entity);
return false;
}
}
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Recovery
III", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of Recovery
II"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Light of Recovery
II", entity);
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Light of Recovery
I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Summon Healing
Servant II");
return false;
}
else if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Summon Healing
Servant I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Summon Healing
Servant I");
return false;
}
}
}
// Dispel
if (entity.StateList.GetList().Where(s =>
DispelSkillId.Contains(s.Key)).Any())
{
string dispelName = "Dispel";
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable(dispelName + "
III"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Blessing of Health
I", entity);
return false;
}
}
// Blessing of Stone
if (entity.StateList.GetList().Where(s =>
s.Value.Name_Eu.IndexOf("Blessing of Stone",
StringComparison.InvariantCultureIgnoreCase) >= 0).Any() == false)
{
if (entity.StateList.GetList().Where(s =>
s.Value.Name_Eu.IndexOf("Blessing of Rock",
StringComparison.InvariantCultureIgnoreCase) >= 0).Any() == false)
{
if
(AionGame.UnknownFramework.Helper.HelperFunction.CheckAvailable("Blessing of Rock
I"))
{
AionGame.UnknownFramework.Helper.HelperFunction.CheckExecute("Hand of Reincarnation
I", entity);
return false;
}
}
return true;
}