• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • TuanHA Rogue - The Ultimate Experience

    Discussion in 'Archives' started by tuanha, May 20, 2013.

    1. bloggo

      bloggo New Member

      Joined:
      Jun 12, 2012
      Messages:
      12
      Likes Received:
      0
      Trophy Points:
      0
      your SD-Sap, re-stealth-Sap, Sap-stealthed routine is awesome
       
    2. anonym23

      anonym23 Member

      Joined:
      Jan 23, 2013
      Messages:
      233
      Likes Received:
      4
      Trophy Points:
      18
      thumbs up for that. I like it too and hope that special edition is final in a few days. Getting bored on my 2,2 Tuanha hunter =D =D =D
       
    3. Crippleboxer

      Crippleboxer New Member

      Joined:
      Feb 10, 2010
      Messages:
      302
      Likes Received:
      0
      Trophy Points:
      0
      Thanks guys for all the tips, my rogue just needed a shitload of gear (freshly dinged 90 without enchants/gems) ><
      But I can see that my damage will be on par once I get decked out :D
       
    4. tuanha

      tuanha Well-Known Member

      Joined:
      Nov 29, 2011
      Messages:
      6,998
      Likes Received:
      124
      Trophy Points:
      63
      I've fixed it :D
       
    5. Insanityy

      Insanityy New Member

      Joined:
      Feb 4, 2013
      Messages:
      240
      Likes Received:
      2
      Trophy Points:
      0
      hey tuan is your 21/22 eta stilled eta'ed? :)
       
    6. tuanha

      tuanha Well-Known Member

      Joined:
      Nov 29, 2011
      Messages:
      6,998
      Likes Received:
      124
      Trophy Points:
      63
      Yes, hopefully.

      I keep tweaking every detail for official release now (mean I play rogue a lot lol)

      Small detail like stop auto attacking if enemy is Invuneralbe (bubble, dispersion, in cyclone...) to get out of combat and re stealth... all possible ability are coding and being improved.
       
    7. Millz

      Millz Well-Known Member Buddy Store Developer

      Joined:
      Jan 15, 2010
      Messages:
      6,495
      Likes Received:
      223
      Trophy Points:
      63
      Hey TuanHA - Gave this a quick go on my fully decked out rogue, 9 kills 4 deaths in AB. Not bad but some deaths were probably my fault going commando.

      One thing I did notice is that if you're rooted/frozen and can't escape (trinket/CloS) the routine lags very hard (when framelocked). You need to add a check at the start of the routine something like..

      new Decorator(ret => (Me.IsRooted || Me.IsStunned) && SpellOnCooldown("Cloak of Shadows") && cantuseitem(trinket), new ActionAlwaysSucceed())

      You get the idea...
       
    8. tuanha

      tuanha Well-Known Member

      Joined:
      Nov 29, 2011
      Messages:
      6,998
      Likes Received:
      124
      Trophy Points:
      63
      Thank Millz, I think I need restructure my CR to work more nicely with framelock... it a bit outdated :D

      Need your help too.

      More precise on the lag on rooted, I can't just stop rotation there because while rooted, I can still Throw and kill nasty totem, shiv, kick nearby units or doing something else :D

      Maybe just stop rotation when I got CCed and no trinket up.
       
      Last edited: Jun 18, 2013
    9. Millz

      Millz Well-Known Member Buddy Store Developer

      Joined:
      Jan 15, 2010
      Messages:
      6,495
      Likes Received:
      223
      Trophy Points:
      63
      Just having a quick look at the code, there's so much unnecessary stuff.. You need to combine things !

      For instance..

      Code:
              private static bool AmbushCheck()
              {
                  if (!SpellManager.HasSpell("Ambush"))
                  {
                      return false;
                  }
      
                  if (!IsStealthed(Me))
                  {
                      return false;
                  }
      
                  if (Me.CurrentTarget == null)
                  {
                      return false;
                  }
      
                  if (!Me.IsBehind(Me.CurrentTarget))
                  {
                      return false;
                  }
      
                  if (PlayerEnergy > THSettings.Instance.ShadowDanceEnergy)
                  {
                      return false;
                  }
                  return true;
              }
      
      Can be done..

      Code:
              private static bool AmbushCheck()
              {
                  if (Me.CurrentTarget == null || !SpellManager.HasSpell("Ambush") || !IsStealthed(Me) || !Me.IsBehind(Me.CurrentTarget) || PlayerEnergy > THSettings.Instance.ShadowDanceEnergy)
                  {
                      return false;
                  }
      
                  return true;
              }
      
      Or searching for units... You're using Where(u => conditions).FirstOrDefault() which means you're scanning all units which are valid, then selecting the first in the list..

      I.e. We have units A/B/C/D/E

      A - Invalid
      B - Valid
      C - Valid
      D - Invalid
      E - Valid

      Your code will check the conditions on all 5 units, find the 3 which are valid, then pick the first (B).

      If you change it to just a straight FirstOrDefault(u => conditions), it does..

      A - Invalid
      B - Valid -> Stop scanning, we have one..

      If there's 40 units near you, and your scanning a full list of units each traverse, it'll have some serious lag implications.

      It's also spamming out null exceptions on mass, it's probably the worst lag inducing problem with routines. This error in particular is causing the routine some serious issues.

      [16:10:40.717 D] System.NullReferenceException: Object reference not set to an instance of an object.
      at Styx.WoWInternals.WoWObjects.LocalPlayer.IsBehind(WoWUnit unit)
      at TuanHARogue.Classname.AmbushShadowDanceCheck() in c:\<snip>\Routines\TuanHARogueOpenBeta\THCommon.cs:line 85

      Which is this code..

      Code:
              private static bool AmbushShadowDanceCheck()
              {
                  if (!Me.HasAura("Shadow Dance"))
                  {
                      return false;
                  }
      
                  if (!Me.IsBehind(Me.CurrentTarget))
                  {
                      return false;
                  }
                  return true;
              }
      
      It's causing an error because you're checking parameters/conditions on a unit which can be (and is in this case) null.

      Calls like that should be done..

      Code:
      if(Me.CurrentTarget != null && !Me.IsBehind(Me.CurrentTarget)) { return false; }
      
      [16:21:47.170 D] System.NullReferenceException: Object reference not set to an instance of an object.
      at TuanHARogue.Classname.CurrentTargetCheck() in c:\<snip>\Routines\TuanHARogueOpenBeta\THHelpers.cs:line 810

      Code:
      if (CurrentTargetCheckIsWithinMeleeRange)
                      {
                          CurrentTargetCheckInLineOfSpellSight = true;
                      }
                      else if (Me.CurrentTarget.InLineOfSpellSight)
                      {
                          CurrentTargetCheckInLineOfSpellSight = true;
                      }
      
      You're over-complicating things..

      Code:
      if(Me.CurrentTarget != null && (Me.CurrentTarget.IsWithinMeleeRange || Me.CurrentTarget.InLineOfSpellSight))
      {
         CurrentTargetCheckInLineOfSpellSight = true;
      }
      
      The compiler will check each condition in the order you list them, and since InLineOfSpellSight is probably one of the most intensive calls the HB API has (since it does a full game world trace line between you and the target checking if objects are in the way and whether they'll block LoS) you need to have that call last.

      Anyway, just some pointers...

      *Edit*

      Attaching your combat log is causing lua errors too.

      *Edit 2*

      Really need to use blind too..

      [GetUnitsCall].FirstOrDefault(u => u != Me.CurrentTarget && (u.IsTargetingMeOrPet || u.IsCastingHealingSpell/*something like that?*/) && u.Distance <= 15)


      I'll PM you my bill for a consultancy fee ;)


      *Edit 3*

      Sap isn't aggressive enough when out of combat
      Need to add smoke bomb defensively
      Targeting friendly players when out of combat (not in a BG when noticing this...)
      Stealthing when picked up an orb (causing me to drop it) -> Aura = "Orb of Power"
       
      Last edited: Jun 18, 2013
    10. 03whiteg

      03whiteg New Member

      Joined:
      Jan 7, 2013
      Messages:
      27
      Likes Received:
      0
      Trophy Points:
      0
      Just a question does this also support full movement, or do we control it ourselfs ?
       
    11. blacknightlll

      blacknightlll New Member

      Joined:
      Apr 26, 2012
      Messages:
      163
      Likes Received:
      0
      Trophy Points:
      0
    12. djdnffjd

      djdnffjd New Member

      Joined:
      Feb 18, 2010
      Messages:
      182
      Likes Received:
      0
      Trophy Points:
      0
      thanks for your great cc Tuanha, it would be awesome if this cc have pick lock function. when grinding, questing, pickpoketing, pp and pl would make decent gold I think
       
    13. Insanityy

      Insanityy New Member

      Joined:
      Feb 4, 2013
      Messages:
      240
      Likes Received:
      2
      Trophy Points:
      0
      sweet, yea it has some very nice logic already just using for my dailies atm kills so much faster then anything ive used and really nice openers :D dont know about finishers though because they have all been dead by the end of the starter lol, millz had a few nice suggestions hopefully his consultancy fee isnt too much ;)
       
    14. jack1010

      jack1010 Member

      Joined:
      Dec 18, 2011
      Messages:
      194
      Likes Received:
      1
      Trophy Points:
      18
      Millz is the man!
       
    15. Crippleboxer

      Crippleboxer New Member

      Joined:
      Feb 10, 2010
      Messages:
      302
      Likes Received:
      0
      Trophy Points:
      0
      TunaHA the current version deals a lot more damage for me, awesome :D
      This version is sweet
       
    16. Shotas

      Shotas New Member

      Joined:
      Jun 19, 2013
      Messages:
      30
      Likes Received:
      0
      Trophy Points:
      0
      Hey, I have been using this for both pvp BGs and pve raids and it has been great. However, when I use it for Arena 2v2 it does nothing. It just doesn't attack anyone or anything? Is there something I am doing wrong?

      Building Rotation Completed
      ----------------------------------
      Hold 1 second Control + P To Toggle Pause Mode.
      ----------------------------------
      10:748 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      10:907 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      14:790 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      14:939 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      21:266 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      21:418 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      21:576 HP: 100% Energy: 101 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      25:083 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      25:264 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      25:409 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      25:574 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      29:289 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      33:083 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      33:772 HP: 100% Energy: 107 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      36:899 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      37:220 HP: 100% Energy: 102 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      Hold
      Not in game
      05:288 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Deadly Poison (Wound Poison)
      13:192 HP: 100% Energy: 130 + CP: 0 Myself 0y 100% hp Burst of Speed (BurstofSpeedEnergy)
      Hold
      Not in game
      Hold


      That is all my log says when trying it in 2v2?
       
    17. Crippleboxer

      Crippleboxer New Member

      Joined:
      Feb 10, 2010
      Messages:
      302
      Likes Received:
      0
      Trophy Points:
      0
      Please read the topic/first post.
      It has been mentioned a lot of times that Arena support will only be available for Special Edition (and now its still beta)
       
    18. kramjam

      kramjam New Member

      Joined:
      Jun 11, 2013
      Messages:
      23
      Likes Received:
      0
      Trophy Points:
      0
      why is it saying rotation not available for assassination?
       
    19. tuanha

      tuanha Well-Known Member

      Joined:
      Nov 29, 2011
      Messages:
      6,998
      Likes Received:
      124
      Trophy Points:
      63
      You need to update to the newest SVN revision. More on my 1st post.

       
    20. lckwjl

      lckwjl New Member

      Joined:
      Jun 4, 2012
      Messages:
      674
      Likes Received:
      2
      Trophy Points:
      0
      Reading is hard.. how do?
       

    Share This Page