Jump to content

Buff recognition


Retardo101

Recommended Posts

Having some trouble on my Demon Hunter with the buff Momentum. I cant get the bot to recognize it.

Any tips on what to c sharp or something to get around this?

 

Have tried Buff, Buff cast by me and writing in c sharp "wManager.Wow.ObjectManager.ObjectManager.Me.HaveBuff (206476)"

 

Link to comment
Share on other sites

Momentum: ID=208628, Stack=0, TimeLeft=3054 ms, Owner=0000000008D1C8B40814540000000000, Flag=None, CasterLevel=110, Mask=117440512
 

 

This is what it says.. the buff ID is diffrent then when i do this without the buff active

 

EDIT: Thanks so much for your answer man!! That fixed it

Link to comment
Share on other sites

I have another question maybe you could help with.

I have thise c sharp code for detecting buffs on myself : wManager.Wow.ObjectManager.ObjectManager.Me.HaveBuff (206476)

How would that string look if i want to detect an enemy debuff?

Link to comment
Share on other sites

29 minutes ago, Retardo101 said:

I have another question maybe you could help with.

I have thise c sharp code for detecting buffs on myself : wManager.Wow.ObjectManager.ObjectManager.Me.HaveBuff (206476)

How would that string look if i want to detect an enemy debuff?

Are you talking about your current target?

ObjectManager.Me.TargetObject.HaveBuff(1234);

or targets around you?

ObjectManager.GetObjectWoWUnit().Any(u => u.HaveBuff(1234));

 

Edited by iMod
Link to comment
Share on other sites

so the ! makes it false?

Its for stuff like Shadow Word: Pain. I want it to cast it if the string is false.

 

Edit: Im sorry i dont understand what you mean but am very greatfull for any help and will try until i make it happen :D

Link to comment
Share on other sites

! negates the actually state of the boolean.

bool variable = true;

"!variable" = false
"variable == !variable" will set allways the opposit of the current state.

MSDN Sample:

class MainClass4
{
    static void Main()
    {
        Console.WriteLine(!true);
        Console.WriteLine(!false);
    }
}
/*
Output:
False
True
*/


I highly recommend to read some C# basics and you will see it makes a lot more fun to work with.

Edited by iMod
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...