Jump to content

Recommended Posts

I want that my char regs with water. Yes i know the setting in wrobot but i want that my char only under circumstances that reg mana. Now my little script:

internal bool drinkwater ()
    {
        if (!ObjectManager.Me.InCombatFlagOnly && ObjectManager.Me.ManaPercentage <= drinkwateronManapercent )
        {
            Logging.WriteFight("drink water " + water );
            Fight.StopFight();
            wManager.Wow.Helpers.ItemsManager.UseItem("Sweet Nectar"); // Nectar
            
            while (!ObjectManager.Me.InCombatFlagOnly && ObjectManager.Me.ManaPercentage < 100 && ObjectManager.Me.IsSitting)
            {
                Thread.Sleep(pause);
            }
            Fight.StartFight();
            return true;
        }
        return false;
    }

 

What is my mistake?

Link to comment
https://wrobot.eu/forums/topic/9429-dont-drink-till-full/
Share on other sites

My FightClass ist atm not perfect. Often i am in Cat or Bear Form or i have no water in my bag then WRobot will regen. But i want always when my Char is in normal Form and Manapercentage < 40 and Outfight then my char regs water.

Link to comment
https://wrobot.eu/forums/topic/9429-dont-drink-till-full/#findComment-43897
Share on other sites

  • 2 months later...

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