Retardo101 0 Posted November 6, 2017 Share Posted November 6, 2017 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 https://wrobot.eu/forums/topic/7587-buff-recognition/ Share on other sites More sharing options...
Droidz 2738 Posted November 7, 2017 Share Posted November 7, 2017 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) Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34633 Share on other sites More sharing options...
Retardo101 0 Posted November 7, 2017 Author Share Posted November 7, 2017 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 https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34655 Share on other sites More sharing options...
Retardo101 0 Posted November 7, 2017 Author Share Posted November 7, 2017 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 https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34656 Share on other sites More sharing options...
iMod 99 Posted November 7, 2017 Share Posted November 7, 2017 (edited) 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, 2017 by iMod Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34659 Share on other sites More sharing options...
Retardo101 0 Posted November 7, 2017 Author Share Posted November 7, 2017 woah! amazing thanks man :D im going to have some fun with these :D Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34663 Share on other sites More sharing options...
Retardo101 0 Posted November 8, 2017 Author Share Posted November 8, 2017 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 Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34715 Share on other sites More sharing options...
Zan 99 Posted November 8, 2017 Share Posted November 8, 2017 !ObjectManager.Me.TargetObject.HaveBuff (1111) Or this for targets around you u <= !u.HaveBuff(1111) Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34716 Share on other sites More sharing options...
Retardo101 0 Posted November 9, 2017 Author Share Posted November 9, 2017 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 https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34755 Share on other sites More sharing options...
Zan 99 Posted November 9, 2017 Share Posted November 9, 2017 Yes the ! makes it false Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34758 Share on other sites More sharing options...
Retardo101 0 Posted November 9, 2017 Author Share Posted November 9, 2017 Your a star m8! thank you so much for sharing! Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34759 Share on other sites More sharing options...
iMod 99 Posted November 10, 2017 Share Posted November 10, 2017 (edited) ! 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, 2017 by iMod Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34778 Share on other sites More sharing options...
Retardo101 0 Posted November 10, 2017 Author Share Posted November 10, 2017 "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 Link to comment https://wrobot.eu/forums/topic/7587-buff-recognition/#findComment-34784 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now