public override void Run() { if (!Calls.MovementIsOnly((uint)Offsets.movementFlags.None)) { Calls.StopRunning(); } if (Data.needHealth) { IsWaitingForHealth = true; } if (Data.needMana) { IsWaitingForMana = true; } if (UseRestItemTimer.IsReady()) { if (IsWaitingForHealth == true) { if (ObjectManager.PlayerHealthPercent > 90) { IsWaitingForHealth = false; } else { if (Data.UseCcRest) { CCManager.RestHealth(IsWaitingForMana); } else { Ingame.UseFood(); } } } if (IsWaitingForMana == true) { if (ObjectManager.PlayerObject.manaPercent > 95) { IsWaitingForMana = false; } else { if (Data.UseCcRest) { CCManager.RestMana(IsWaitingForHealth); } else { Ingame.UseDrink(); } } } } }
protected virtual void UseDrink() { Ingame.UseDrink(); }