November 6, 20178 yr 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)"
November 7, 20178 yr Hello, can you share result of "Player/Target Buff/Debuff" (you can found this button in "dev... tools" (tab "tools")) (when you have this buff)
November 7, 20178 yr Author 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
November 7, 20178 yr Author 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?
November 7, 20178 yr 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 November 7, 20178 yr by iMod
November 8, 20178 yr Author Hey thanks for the great tips! But things could be a little more fun if, haha! If i wanted the "ObjectManager.Me.TargetObject.HaveBuff(1234);" to be false.. what would i do? :D
November 8, 20178 yr !ObjectManager.Me.TargetObject.HaveBuff (1111) Or this for targets around you u <= !u.HaveBuff(1111)
November 9, 20178 yr Author 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
November 10, 20178 yr ! 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 November 10, 20178 yr by iMod
November 10, 20178 yr Author "I highly recommend to read some C# basics and you will see it makes a lot more fun to work with." This is what i will have to do ;D thanks again guys
Create an account or sign in to comment