• Visit Rebornbuddy
  • Default Combat Discussion

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

    1. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      Buddywing folder/Routines/DefaultCombat/Routines/Advanced/Vanguard

      For plasma tech I'll need any new abilities and new buff/debuff names.
       
    2. Swtor

      Swtor New Member

      Joined:
      Nov 29, 2014
      Messages:
      68
      Likes Received:
      0
      Trophy Points:
      0
      The Fury discipline Marauder is detected as Rage, the bot uses the rotation of the Juggernaut and discipline Concentration of Sentinnel is detected as Focus, the bot uses the rotation of the Guardian. Can you tell to Aevitas to fix this please? Maybe it's à routine problem i dont know
       
    3. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      Can you snag a log of what happens when you sign in? Specifically the message you get when the bot selects the rotation to use. I think that should be enough info for him.
       
    4. jpascu1

      jpascu1 New Member

      Joined:
      Dec 17, 2014
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      0
      Ill get the plasmatech info for you later , just got to work .
       
    5. Ama

      Ama New Member

      Joined:
      Jun 6, 2011
      Messages:
      1,171
      Likes Received:
      33
      Trophy Points:
      0
    6. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      Yup, I use that as well. It doesn't always work for buffs and debuffs though.

      Also, can you look into the routine selection issue Swtor was mentioning?
       
    7. Ama

      Ama New Member

      Joined:
      Jun 6, 2011
      Messages:
      1,171
      Likes Received:
      33
      Trophy Points:
      0
      Yeah, Ill let him know
       
    8. jpascu1

      jpascu1 New Member

      Joined:
      Dec 17, 2014
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      0
      Ok I updated with the below . it runs but dosent use Gut for some reason , I want that to always stay on target . if gut is on the target the rest of the abilities work in the code .


      Code:
      using Buddy.BehaviorTree;
      using DefaultCombat.Core;
      using DefaultCombat.Helpers;
      
      namespace DefaultCombat.Routines
      {
          public class Tactics : RotationBase
          {
              public override string Name { get { return "Vanguard Tactics"; } }
      
              public override Composite Buffs
              {
                  get
                  {
                      return new PrioritySelector(
                          Spell.Buff("High Energy Cell"),
                          Spell.Buff("Fortification")
                          );
                  }
              }
      
              public override Composite Cooldowns
              {
                  get
                  {
                      return new LockSelector(
                          Spell.Buff("Tenacity", ret => Me.IsStunned),
                          Spell.Buff("Recharge Cells", ret => Me.ResourcePercent() >= 50),
                          Spell.Buff("Reactive Shield", ret => Me.HealthPercent <= 40),
                          Spell.Buff("Adrenaline Rush", ret => Me.HealthPercent <= 30),
                          Spell.Buff("Shoulder Cannon", ret => !Me.HasBuff("Shoulder Cannon") && Me.CurrentTarget.BossOrGreater())
                          );
                  }
              }
              public override Composite SingleTarget
              {
                  get
                  {
                      return new LockSelector(
                          //Movement
                          CombatMovement.CloseDistance(Distance.Melee),
      
                          new Decorator(ret => Me.ResourcePercent() > 40, 
                              new LockSelector(
                                  Spell.Cast("High Impact Bolt", ret => Me.HasBuff("Tactical Accelerator")),
                                  Spell.Cast("Hammer Shot")
                                  )),
      
                          Spell.Cast("Riot Strike", ret => Me.CurrentTarget.IsCasting && !DefaultCombat.MovementDisabled),
                          Spell.Cast("Cell Burst", ret => Me.BuffCount("Energy Lode") == 4),
                          Spell.Cast("High Impact Bolt", ret => Me.CurrentTarget.HasDebuff("Bleeding (Gut)") && Me.HasBuff("Tactical Accelerator")),
                          Spell.DoT("Gut", "Bleeding (Gut)"),
                          Spell.Cast("Assault Plastique"),
                          Spell.Cast("Stock Strike"),
                          Spell.Cast("Tactical Surge", ret => Me.Level >= 26),
                          Spell.Cast("Ion Pulse", ret => Me.Level < 26)
                          );
                  }
              }
      
              public override Composite AreaOfEffect
              {
                  get
                  {
                      return new LockSelector(
                          new Decorator(ret => Targeting.ShouldAOE,
                              new LockSelector(
                                  Spell.CastOnGround("Morter Volley"),
                                  Spell.Cast("Sticky Grenade", ret => Me.CurrentTarget.HasDebuff("Bleeding (Retractable Blade)"))
                                  )),
                          new Decorator(ret => Targeting.ShouldPBAOE,
                              new LockSelector(
                                  Spell.Cast("Pulse Cannon"),
                                  Spell.Cast("Explosive Surge"))
                      ));
                  }
              }
          }
      }
       
    9. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      The syntax on Gut looks good. Make sure 1. you're in range (4m) for Gut to work and 2. the debuff ("Bleeding (Gut)") is how it appears in the debuff window in-game.
       
    10. jpascu1

      jpascu1 New Member

      Joined:
      Dec 17, 2014
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      0
      oh he is in range alright , vanguard is all up on the ass of the npc , but not working ("Bleeding (Gut)") is not exactly what it says it just says Bleeding on the NPC dot
       
    11. jpascu1

      jpascu1 New Member

      Joined:
      Dec 17, 2014
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      0
      Nevermind its working , Ill post a log later for review.
       
    12. ludijak559

      ludijak559 Member

      Joined:
      Nov 23, 2012
      Messages:
      273
      Likes Received:
      2
      Trophy Points:
      18
      So any plans in putting "skinning" mobs ( droids and such) in this routine, cause it seems this is the only one that will be supported now ?
       
    13. Cyanogen1

      Cyanogen1 Member

      Joined:
      Mar 5, 2014
      Messages:
      156
      Likes Received:
      0
      Trophy Points:
      16
      Bounty hunter doesn't seem to include shoulder cannon or explosive fuel in it's rotation.

      Skills probably better left used manually, but would be nice to have the option to include it in the rotation.
       
    14. swin04

      swin04 Member

      Joined:
      Sep 8, 2014
      Messages:
      73
      Likes Received:
      0
      Trophy Points:
      6
      I updated yours for Powertech AP spec, but I see it will only activate shoulder cannon and use the first one. It never spams them after. How exactly could we get this to just use all of them everytime its up?

      View attachment AdvancedPrototype.cs
       
    15. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      i Think it has to do with this line:
      Code:
      Spell.Buff("Shoulder Cannon", ret => !Me.HasBuff("Shoulder Cannon") && Me.CurrentTarget.BossOrGreater())
      
      Try to use this one:
      Code:
      Spell.Buff("Shoulder Cannon", ret => !Me.HasBuff("Shoulder Cannon"))
      
      If im reading it right, Shoulder cannon is now used whenever i DONT have the buff up named Shoulder Cannon, else it will cast it.
      You also had a check in, to ONLY use when your target is a boss (gold starred i think or higher)
       
    16. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      Nah, that's not the problem at all. You need one call to put the Shoulder Cannon buff on yourself (this is the "loading missiles" buff). Then, you need to cast the actual missiles.

      The buff:
      Code:
                          Spell.Buff("Shoulder Cannon", ret => !Me.HasBuff("Shoulder Cannon"))
      Firing missiles:
      Code:
                          Spell.Cast("Shoulder Cannon", ret => Me.HasBuff("Shoulder Cannon") && Me.CurrentTarget.BossOrGreater()),
       
    17. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      So is it one spell or 2 spells?
      Havent seen this kind of spell on other toons...
       
    18. alltrueist

      alltrueist Active Member

      Joined:
      Dec 10, 2012
      Messages:
      1,424
      Likes Received:
      16
      Trophy Points:
      38
      The way Shoulder Cannon works is like this:

      When you first click the button, it puts a buff on you that "loads" missiles over ten seconds. This buff stacks to 4 (I think), but you can use it any time it's over 0. The next 4 times you click the button, it fires one of your loaded missiles.

      The way we handle it is to put the first section into the Cooldowns section. This handles the buff. If I don't currently have the buff, and the spell is on cooldown, buff me up. The second section goes into the rotation itself. Since the missiles are off the GCD, we can put them at the top. This will check if we have the missile buff, and if we do and the boss is a boss, it will fire the missiles until we don't have any more of the buff.

      EDIT: and yeah, it's a pretty unique spell in form and function. I had to test out a couple of different methods to get it to work.
       
    19. Cryogenesis

      Cryogenesis Moderator Moderator

      Joined:
      Jul 13, 2010
      Messages:
      2,128
      Likes Received:
      13
      Trophy Points:
      38
      Yeah then your code makes perfect sence :)
       
    20. jpascu1

      jpascu1 New Member

      Joined:
      Dec 17, 2014
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      0
      oh tis is soooo cool ! I couldn't get my code working , and now its not working right now .
       

    Share This Page