Furinkazan 1 Posted August 4, 2017 Share Posted August 4, 2017 Hello everybody, i would like to know if you know some code to get my hunt in range against mob if they go to melee so that i can use my ranged weapon again ? Link to comment https://wrobot.eu/forums/topic/6697-hunter-range-code/ Share on other sites More sharing options...
Avvi 98 Posted August 4, 2017 Share Posted August 4, 2017 I can't tell exactly what you're asking for, but assuming the range that you have to start meleeing at is 5, the below should work. using wManager.Wow.ObjectManager; if (ObjectManager.Target.GetDistance <= 5){ // do melee stuff } else { // do ranged stuff } Link to comment https://wrobot.eu/forums/topic/6697-hunter-range-code/#findComment-30388 Share on other sites More sharing options...
Furinkazan 1 Posted August 5, 2017 Author Share Posted August 5, 2017 Well for example, i get the aggro or the mob get too close, i want the bot to backup a bit so that i can use my ranged weapon again Link to comment https://wrobot.eu/forums/topic/6697-hunter-range-code/#findComment-30392 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