Jump to content

Fightclass autoatack slam warrior


Recommended Posts

Hi,

I would like to know if there is some kind of condition for casting something AFTER a normal attack, the idea would be to cast slam after a white attack.

if not, is there a way to do this?

thanks,

Link to comment
Share on other sites

Hello, 


        wManager.Events.FightEvents.OnFightEnd += guid =>
        {
            if (wManager.Wow.Helpers.Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause &&
                !wManager.Wow.Helpers.Conditions.IsAttackedAndCannotIgnore)
            {
                // your code here
            }
        };

 

Link to comment
Share on other sites

Hi droidz,

been trying to make it work but i believe the problem is in OnFightEnd, it tries to do it after the fight ends instead of after each normal attack (white attack)

 

        //Slam
        wManager.Events.FightEvents.OnFightEnd += guid =>
        {
            if (wManager.Wow.Helpers.Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause &&
                !wManager.Wow.Helpers.Conditions.IsAttackedAndCannotIgnore)
            {
                Slam.Launch();
                return;
            }
        };

 

OnFightLoop says it does not take 1 argument.

do you know how to make it slam after each normal attack?.

 

many thanks,

Link to comment
Share on other sites

Droidz,

Yes:

public Spell Slam = new Spell("Slam");

20 hours ago, Chona said:

OnFightEnd

are you sure the above is correct?, since only when the fight ends the character tries to cast slam undefinately with no target ofc.

Edit: this is for TBC private server.

Link to comment
Share on other sites

  • 10 months later...

I found a solution to this, without needing to to know if an auto attack "just happened".

 

Heres what to do (DIY with fightclass editor):

Add "Slam" to your fightclass, and for timer put down your weapon speed.

So for instance, for my WW axe with speed 3.6, put down timer: 3600

 

This way, it will work as intended most of the time.  When you start attacking, it will autoattack + instantly slam, and repeat.

I will upload a fight class that does this soon (vanilla), that also incorporates the adjusted speed for Flurry.

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...