September 22, 20178 yr 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,
September 23, 20178 yr Author Hi Droidz, i meant if there is a <tag> in an xml file of the fightclass like = <afterattack></afterattack>, or must i do it by code?
October 1, 20178 yr Hello, wManager.Events.FightEvents.OnFightEnd += guid => { if (wManager.Wow.Helpers.Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && !wManager.Wow.Helpers.Conditions.IsAttackedAndCannotIgnore) { // your code here } };
October 3, 20178 yr Author 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,
October 3, 20178 yr Author 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.
September 1, 20187 yr 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.
September 1, 20187 yr I submitted my slam fightclass to the downloads section: Its for vanilla only, but it should show you how to make your own for other versions.
Create an account or sign in to comment