Jump to content

Buff Check - When NOT Eating OR Drinking


Recommended Posts

It is a bit redundant to sit to replenish mana or health while eating and drinking just when a buff falls off,  and my player gets up mid-meal to buff again. Is there a check for this issue?

Thanks!

Link to comment
Share on other sites

Hello, this should work:

        if (
            !ObjectManager.Me.HaveBuff("Food") 
            && !ObjectManager.Me.HaveBuff("Drink")
            //other conditions
            )
        {
            new Spell("Battle Shout").Launch();
        }

But keep in mind it's not multi-language and special food needs an own check.

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