Jump to content

Running away from Elite Mobs?


thakane

Recommended Posts

How to edit my bot, to run away from Elite Mobs? Everytime my Bot dying from overpowered Elitemobs. but my Bot need to go this waypoint to pass the way, but my bot is attacking this mob because it took damage from Mob

I need something special for elite mobs, not for normal mobs

Link to comment
Share on other sites

while(Conditions.InGameAndConnectedAndProductStartedNotInPause)
{
  if(ObjectManager.Target.IsElite)
  {
    Conditions.ForceIgnoreIsAttacked = true;
    Fight.StopFight();
    Lua.LuaDoString("ClearTarget();");
  }

  if(ObjectManager.Me.InCombatFlagOnly)
  {
    Conditions.ForceIgnoreIsAttacked = false;
  }
  Thread.Sleep(500);
}

that code should work if you have the correct inputs and run it in a plugin or fightclass

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...