Jump to content

Don't drink till full


Bastilla
 Share

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
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
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...