I am trying to get the bots logic to loop through a little better in the sense of checking itself after each fight,
I would like to have it stop itself after each fight for check of (do I have a pet, is my hp/mp above X %) that kinda thing
so far I've tried something like
internal void Rotation()
{
while (_running)
{
try
{
if (!ObjectManager.Me.IsDeadMe)
{
if (!ObjectManager.Pet.IsAlive)
{
PSpawn(); //Pet spawner
return;
}
Buff();
if (Fight.InFight && ObjectManager.Me.Target > 0)
{
Pull();
CombatRotation();
}
.....................
which seems to help but not quite full proof, so just wondering is there a better way to basically have it reinitialize, or just have a section of code it executes after it exits combat each time ?