RonSwanson 2 Posted January 25, 2017 Share Posted January 25, 2017 Hey guys I am seeking a way to call a function to stop and start Auto Attacking. I am making a caster routine and all is fine until the target gets within auto attack range and starts auto attacking which is fine at low levels but at higher levels it looks very dumb. C# Not necessary but would be nice, also trying to figure out how to get the Fight class to wand. Link to comment https://wrobot.eu/forums/topic/4843-stopstart-auto-attack-c-and-wanding/ Share on other sites More sharing options...
RonSwanson 2 Posted January 26, 2017 Author Share Posted January 26, 2017 Hold. Link to comment https://wrobot.eu/forums/topic/4843-stopstart-auto-attack-c-and-wanding/#findComment-22448 Share on other sites More sharing options...
Droidz 2738 Posted February 7, 2017 Share Posted February 7, 2017 http://wrobot.eu/forums/topic/4829-wanding/#comment-22838 Link to comment https://wrobot.eu/forums/topic/4843-stopstart-auto-attack-c-and-wanding/#findComment-23310 Share on other sites More sharing options...
DonaldMacRonald 4 Posted March 3, 2017 Share Posted March 3, 2017 On 07/02/2017 at 7:54 PM, Droidz said: http://wrobot.eu/forums/topic/4829-wanding/#comment-22838 This link to xml made throught Fight Class creator but in pur C# it is not relevant. I have the exact same problem with hunter, and casters with wand. Here is what I do but, it's not working : //Auto Shot if (!SpellManager.IsRepeating(AutoShot.Ids) && AutoShot.IsDistanceGood) { AutoShot.Launch(); return; } //Attack if (!SpellManager.IsRepeating(Attack.Ids) && Attack.IsDistanceGood) { Attack.Launch(); return; } At the end of the first pass in Combat routine I see [Fight] Manually target change If target stay in AUto Shot range (higher than 8 Yards) Auto Shot is retriggered If target come to close combat range my target is still highlighted but but my toon drops combat state and stay still until he dies. McRo Hunter.cs Link to comment https://wrobot.eu/forums/topic/4843-stopstart-auto-attack-c-and-wanding/#findComment-24294 Share on other sites More sharing options...
Droidz 2738 Posted March 3, 2017 Share Posted March 3, 2017 Hello, for AutoShot try to use code like: if (!SpellManager.IsRepeating(AutoShot.Ids) && AutoShot.IsDistanceGood && ObjectManager.Target.GetDistance > 10) Link to comment https://wrobot.eu/forums/topic/4843-stopstart-auto-attack-c-and-wanding/#findComment-24311 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