Jump to content

Recommended Posts

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

  • 2 weeks later...
  • 4 weeks later...
On 07/02/2017 at 7:54 PM, Droidz said:

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...