• Visit Rebornbuddy
  • Default Combat Discussion

    Discussion in 'Combat Routines' started by Ama, Jan 5, 2015.

    1. pindleskin

      pindleskin Community Developer

      Joined:
      Oct 24, 2012
      Messages:
      1,124
      Likes Received:
      2
      Trophy Points:
      38
      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...
       
    2. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      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 :)
       
    3. pindleskin

      pindleskin Community Developer

      Joined:
      Oct 24, 2012
      Messages:
      1,124
      Likes Received:
      2
      Trophy Points:
      38
      yeah probably. btw skype is not working at least for me.
      https://twitter.com/skype
       
    4. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      mine is running again
       
    5. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      so Aevitas just confirmed he will fix the detection and some other stuff.
       
    6. Praline

      Praline Member

      Joined:
      Aug 17, 2015
      Messages:
      150
      Likes Received:
      2
      Trophy Points:
      18
      Woot! Awesome! This is great news! :)
       
    7. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
    8. pindleskin

      pindleskin Community Developer

      Joined:
      Oct 24, 2012
      Messages:
      1,124
      Likes Received:
      2
      Trophy Points:
      38
      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...
       
      Last edited: Sep 22, 2015
    9. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      My classes had it in 3.0, after the change i didnt see it anymore, but was never taken in with main build.
       
    10. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      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 :D
       
    11. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      True true :)
      Btw, are you almost Ph.D or still going strong as a student? :p
       
    12. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      I'm now ABD (all but dissertation). I should have my first chapter done next month :D
       
    13. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      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 :D
       
    14. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      Thanks and good luck :)
       
    15. nivitro

      nivitro New Member

      Joined:
      Jul 10, 2012
      Messages:
      89
      Likes Received:
      0
      Trophy Points:
      0
      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.
       

      Attached Files:

    16. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      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
       
    17. nivitro

      nivitro New Member

      Joined:
      Jul 10, 2012
      Messages:
      89
      Likes Received:
      0
      Trophy Points:
      0
      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:
       

      Attached Files:

      Last edited: Sep 29, 2015
    18. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      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"?
       
    19. nivitro

      nivitro New Member

      Joined:
      Jul 10, 2012
      Messages:
      89
      Likes Received:
      0
      Trophy Points:
      0
      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.
       
      Last edited: Sep 29, 2015
    20. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      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.
       

    Share This Page