I am no pro at coding but I think it craps out because you're trying to "redirect" CombatMedic to Bodyguard which in fact the first one is not a Mercenary discipline but from different class... All lines above it are for same class. Yours its a bit different situation. Maybe it needs some more parameters or something...
Ahaa then there needs to be an additional check to redirect it to the correct folder. Argh fuck it, ill contact aevitas on Skype later to fix this
Alltrueist, could you push the new rest to main build? its posted in this post: https://www.thebuddyforum.com/buddy...ines/197829-defaultcombat-49.html#post2002033 Hopefully all class detections are correct from tonight, if not post it here.
I hope that doesn't crap anything because rest works perfectly fine for me. Thats probably a class related issue. I know it happened a lot to me back in 2.0 when I was using Vanguard. The classes I use now in 3.0 have no problems...
My classes had it in 3.0, after the change i didnt see it anymore, but was never taken in with main build.
I think he moved the SVN, but I don't have permission to upload to it. I've got all the changes stored on my hard drive, so I just contacted him on Skype to see if he'll approve my account and I can upload it. Obviously he could also implement the fixes himself
Okay, Aevitas got back to me super quickly so I got the Rest.cs and the RotationFactory.cs fixes uploaded. If there's anything else that's missing let me know because I can now upload again
So i have this certain ability spam problem and routine not using some of the skills with my Madness sorcerer. She keeps spamming Cloud Mind, Creeping Terror and lots of Affliction. And she does not use for example Static Barrier or Force Barrier at all in Madness spec (In Lightning spec she does cast Static Barrier always when in combat and uses Force Barrier when taking much dmg) Seems like there is lots of skills that the routine does not use in Madness spec. I dont think this is intended. In warzone other people are able to kill me before the bots starts casting something else than Affliction. I tested this on a PvP dummy and in warzone with same results. The log is from PvP dummy. Lightning sorc works just fine in PvP.
This is the code from your routine: Code: // Copyright (C) 2011-2015 Bossland GmbH // See the file LICENSE for the source code's detailed license using Buddy.BehaviorTree; using DefaultCombat.Core; using DefaultCombat.Helpers; namespace DefaultCombat.Routines { internal class Madness : RotationBase { public override string Name { get { return "Sorcerer Madness"; } } public override Composite Buffs { get { return new PrioritySelector( Spell.Buff("Mark of Power") ); } } public override Composite Cooldowns { get { return new LockSelector( Spell.Buff("Force Barrier", ret => Me.HealthPercent <= 20), Spell.Buff("Unnatural Preservation", ret => Me.HealthPercent <= 70), Spell.Buff("Cloud Mind"), Spell.Buff("Polarity Shift"), Spell.Buff("Recklessness") ); } } public override Composite SingleTarget { get { return new LockSelector( //Movement CombatMovement.CloseDistance(Distance.Ranged), //Rotation Spell.Cast("Jolt", ret => Me.CurrentTarget.IsCasting && !DefaultCombat.MovementDisabled), Spell.Cast("Electrocute", ret => Me.CurrentTarget.IsCasting && !DefaultCombat.MovementDisabled), Spell.CastOnGround("Death Field"), Spell.Cast("Crushing Darkness", ret => Me.HasBuff("Wrath")), Spell.Cast("Affliction", ret => !Me.CurrentTarget.HasDebuff("Affliction (Force)") || Me.CurrentTarget.DebuffTimeLeft("Affliction (Force)") <= 3), Spell.DoT("Creeping Terror", "", 15000), Spell.Cast("Creeping Terror"), Spell.Cast("Force Lightning"), Spell.Cast("Shock")); } } public override Composite AreaOfEffect { get { return new Decorator(ret => Targeting.ShouldAoe, new LockSelector( Spell.CastOnGround("Death Field"), Spell.DoT("Affliction", "Affliction (Force)"), Spell.CastOnGround("Force Storm") )); } } } } Force barrier is only popped if below or 20% of HP. Static barrier is not in. and rest should be casted IF you have the spells. Check it and let us know. AH wait your doing pvp, change above to: Code: // Copyright (C) 2011-2015 Bossland GmbH // See the file LICENSE for the source code's detailed license // Based on http://huttsdonthavefeet.com/2015/04/26/madness-sorcerer-pvp-guide-by-sceviour-of-jung-ma/ using Buddy.BehaviorTree; using DefaultCombat.Core; using DefaultCombat.Helpers; namespace DefaultCombat.Routines { internal class Madness : RotationBase { public override string Name { get { return "Sorcerer Madness"; } } public override Composite Buffs { get { return new PrioritySelector( Spell.Buff("Mark of Power") ); } } public override Composite Cooldowns { get { return new LockSelector( Spell.Buff("Force Barrier", ret => Me.HealthPercent <= 20), Spell.Buff("Unnatural Preservation", ret => Me.HealthPercent <= 70), Spell.Buff("Cloud Mind"), Spell.Buff("Polarity Shift"), Spell.Buff("Recklessness"), Spell.Buff("Unlimited Power") ); } } public override Composite SingleTarget { get { return new LockSelector( //Movement CombatMovement.CloseDistance(Distance.Ranged), //Rotation Spell.Cast("Jolt", ret => Me.CurrentTarget.IsCasting), Spell.Cast("Electrocute", ret => Me.CurrentTarget.IsCasting), Spell.Cast("Crushing Darkness", ret => Me.HasBuff("Wrath") || Me.Level < 57), Spell.Cast("Demolish", ret => Me.Level >= 57), Spell.Cast("Affliction", ret => !Me.CurrentTarget.HasDebuff("Affliction (Force)")), Spell.DoT("Creeping Terror", "", 15000), Spell.CastOnGround("Death Field"), //Spell.Cast("Creeping Terror"), Spell.Cast("Force Leech"), Spell.Cast("Force Lightning"), Spell.Cast("Shock")); } } public override Composite AreaOfEffect { get { return new Decorator(ret => Targeting.ShouldAoe, new LockSelector( Spell.CastOnGround("Death Field"), Spell.DoT("Affliction", "Affliction (Force)"), Spell.CastOnGround("Force Storm") )); } } } } Added some spells/buffs and moved around some. If you dont know how to replace this, do the following: go to: Routines\DefaultCombat\Routines\Advanced\Sorcerer and backup Madness.cs. Then open Madness.cs and remove all, and past the above code in. Then go to your main folder and remove CompiledAssemblies. Then start game and then bot. Let me know how it runs. ASSUMING YOU RUN THIS WITH COMBAT BOT.XML
Thank you for the answer! So I did everything you mentioned above. I replaced the original code in Madness.cs with the PvP code you gave me. I am using the Combat Bot.xml. Its works normally BUT it still seems to love the Affliction and Cloud Mind spell. It does not spam Creeping Terror anymore so that spell is working now as intended imo. Is Cloud mind even used in PvP? EDIT: I did some editing on the Madness.cs and removed the whole Cloud Mind line from it. Now it is not using it anymore obviously. BUT I still have no idea how to fix the Affliction spam. Its should be used when the target doesn't have the debuff and when it is about to drop off, like 3 seconds left on it. Here is a new log:
1. I don't know what Cloud Mind does. Sorry, don't play a sorc. If you could tell me when it's supposed to use it, I can help. 2. It's set to cast Affliction on any target that doesn't have Affliction on it. Isn't that working as intended? If not, what do you mean by it "loves Affliction"?
Cloud Mind reduces threat to the target. That is now solved i think by just removing the whole cloud mind line from the file. I tested the Affliction spam on PvP dummy also (so 1 target and not possible to try to spread the dot to any other targets) By saying it "loves Affliction" I ment that it keeps spamming the Affliction spell on 1 target usually 4 times in a row and wasting all the Focus/Mana.
That's strange. Can you tell me the exact name of the Affliction debuff on the target? Make sure it's spelled correctly and use the exact capitalization. It should only cast Affliction when that debuff is not there.