Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

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,

Share this post


Link to post
Share on other sites

Hello, 


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

 

Share this post


Link to post
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,

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...