Jump to content

Bug with restart


79135

Recommended Posts

18 hours ago, Droidz said:

How many time you have waiting? try to wait 5 minutes, you can also try to put "google.com" or another website in "ping to check internet connectivity"

I wait more 30 min. Can it happen from the script? Idk how unsubscribe , help pls

//Healing Touch !fight mana > 40% hp< 60%                                                                                                                                             
Logging.Write("Healing Touch !fight mana > 40% hp< 60%");
int percentHP = 60;
int percentMana = 40;
bool need = true;

robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) =>
{
    if(ObjectManager.Me.HealthPercent < percentHP + 5 && 
    ObjectManager.GetUnitAttackPlayer().Count(u => u.GetDistance < 100) == 0 && need)
    {
        cancelable.Cancel = true;
        while(ObjectManager.Me.HealthPercent < percentHP + 5 && 
        ObjectManager.GetUnitAttackPlayer().Count(u => u.GetDistance < 100) == 0 && 
        !ObjectManager.Me.IsDead)
        {
 

        }
    }
};

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...