Bastilla 2 Posted May 9, 2018 Share Posted May 9, 2018 Hello, i want to write my own C# class. Now i want to pull Moofire and after pull that my char don't move till target is in melee range. Is this possible? Ragards Link to comment https://wrobot.eu/forums/topic/9369-dont-move-after-pull/ Share on other sites More sharing options...
Matenia 628 Posted May 9, 2018 Share Posted May 9, 2018 Set range to 30 yards. Then set some condition for your range to be at 5 yards if you need to melee later. If you never need to melee, just keep the range at 30 or 35. Link to comment https://wrobot.eu/forums/topic/9369-dont-move-after-pull/#findComment-43436 Share on other sites More sharing options...
Bastilla 2 Posted May 10, 2018 Author Share Posted May 10, 2018 Hey Matenia, thanks for your answer. I have no idea how i can set range to 30 yards. I try a loop when target.disctance >= 5 then Thread.Sleep(20) but also my char move. Regards Link to comment https://wrobot.eu/forums/topic/9369-dont-move-after-pull/#findComment-43444 Share on other sites More sharing options...
Marsbar 228 Posted May 11, 2018 Share Posted May 11, 2018 maybe something like this? private bool rangedPull; public float Range { get { if (!Fight.InFight && ObjectManager.GetWoWUnitHostile().Count(u => u.Position.DistanceTo(ObjectManager.Target.Position) <= 30 && u.IsAttackable) > 1) // if there is more than one mob within 30 yards of the your target's position { rangedPull = true; return 29f; } else { rangedPull = false; return 5f; } } } To note, that will only stay at range while out of fight because if the mob you're attacking is a caster, you'll want to run to it. You can of course edit that and add more logic Link to comment https://wrobot.eu/forums/topic/9369-dont-move-after-pull/#findComment-43488 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