January 25, 20179 yr 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.
March 3, 20179 yr 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
March 3, 20179 yr Hello, for AutoShot try to use code like: if (!SpellManager.IsRepeating(AutoShot.Ids) && AutoShot.IsDistanceGood && ObjectManager.Target.GetDistance > 10)
Create an account or sign in to comment