• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Singular - A community driven All-In-One CC - It Just Plain Works - (Pt. 2)

    Discussion in 'Archives' started by Xanathos, Apr 19, 2011.

    1. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      Does it cast the Infernal?
      If so try and remove line 59 and 60 (Effectively combining the infernal and rain of fire into 1 decorator?)
      I don't have a demolock so I can't be of much help unfortunately with the testing part.

      I can do some testing on a balance druid, but that will have to wait.
      RBG and Arena's are waiting for me tonight.
       
    2. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      Yes it casts the Infernal. Even adding Spell.CastOnGround("Rain of Fire", ret => StyxWoW.Me.CurrentTarget.Location), in the normal rotation doesnt work.. it seems to me that it's the spell that is unknown?
       
    3. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      I will give it a go with my balance druid and Hurricane (just to see what it does).
      It should be having the spell as it's level 44 currently.
      If I get any results I let you know.
       
    4. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      Thanks!
       
    5. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      The problem was located in Spell.cs with "SpellManager.Spells[spell].MaxRange < StyxWoW.Me.Location.Distance(onLocation(ret)),"

      On the other side, can anyone tell me how to check amount of adds around my target?
       
    6. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      Something along the lines of target.Location.Distance(WoWUnit.Location) <= 9 should return you every wowunit around your target in a 9 yard radius.
      Up to you to filter the results :D
       
    7. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      Doesn't seem to be albe to call WoWUnit from the Singular class.

      I've tried with:

      ret => Unit.NearbyUnfriendlyUnits.Count(u => u.Location.DistanceSqr(StyxWoW.Me.CurrentTarget.Location) < 10*10) > 2,

      But basically it returns true even tho it's the only target..
       
    8. Branders92

      Branders92 Member

      Joined:
      May 15, 2011
      Messages:
      97
      Likes Received:
      0
      Trophy Points:
      6
      I'm using you're CC on my 49 Paladin and when i'm fighting one mob, sometimes it casts Consecration while the settings are +3 mobs cast consecration. How can i fix this ?
       
    9. Jon310

      Jon310 Member

      Joined:
      Jan 15, 2010
      Messages:
      368
      Likes Received:
      8
      Trophy Points:
      18

      something like

      Code:
      Spell.Cast("Smite", ret=> Clusters.GetClusterCount(StyxWoW.Me.CurrentTarget, Unit.NearbyUnfriendlyUnits, ClusterType.Radius, 10f) > 3),
      don't know if that's what your looking for, numbers and spell is just made up, but it will cast the spell if there are more than 3 unfriendlies around 10 yards from your target.
       
    10. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      Using it as single line as you suggested, it yells an error:
      Code:
      Spell.CastOnGround("Rain of Fire", ret => Clusters.GetClusterCount(StyxWoW.Me.CurrentTarget, Unit.NearbyUnfriendlyUnits, ClusterType.Radius, 10f) > 2)
      Code:
      Could not compile CC from C:\Users\Kristian\Desktop\HB\CustomClasses\Singular!
      File: Demonology.cs Line: 65 Error: Typen 'bool' kan ikke implicit konverteres til 'Styx.Logic.Pathing.WoWPoint'
      File: Demonology.cs Line: 65 Error: lambda-udtryk kan ikke konverteres til stedfortr?dertypen 'Singular.Helpers.LocationRetriever', fordi nogle af returtyperne i blokken, ikke kan konverteres implicit til stedfortr?derreturtypen
      
      Using it as a decorator there's no error, though the statement aren't executed either..
      Code:
      new Decorator(
          ret => Clusters.GetClusterCount(StyxWoW.Me.CurrentTarget, Unit.NearbyUnfriendlyUnits, ClusterType.Radius, 60f) > 1,
          Spell.CastOnGround("Rain of Fire", ret => StyxWoW.Me.CurrentTarget.Location)
      ),
      
      
      - Is there some way to log/check what the returns are?
      - Is it possible to also look for crowdcontrolled units, within the cluster?

      Thanks
       
      Last edited: Sep 4, 2011
    11. Jon310

      Jon310 Member

      Joined:
      Jan 15, 2010
      Messages:
      368
      Likes Received:
      8
      Trophy Points:
      18
      try replacing this line

      Code:
      Spell.Cast("Consecration", ret => StyxWoW.Me.ManaPercent > 50 && Unit.NearbyUnfriendlyUnits.Count(u => u.DistanceSqr < 8 * 8) >= SingularSettings.Instance.Paladin.ConsecrationCount),
      with this line

      Code:
      Spell.Cast("Consecration", ret => StyxWoW.Me.ManaPercent > 50 && Clusters.GetClusterCount(StyxWoW.Me, Unit.NearbyUnfriendlyUnits, ClusterType.Radius, 8f) >= SingularSettings.Instance.Paladin.ConsecrationCount),
      Its untested, but give it a shot let me know how it works.
       
    12. Jon310

      Jon310 Member

      Joined:
      Jan 15, 2010
      Messages:
      368
      Likes Received:
      8
      Trophy Points:
      18

      Post what you are using and I'll play around with it. Unfortunately I don't know of any way to tell if they are cc'ed or not.
       
    13. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      Basically it's just the version from the latest SVN, I then added line 61-64 since it lacks some AOE to be useful. (I'm actually supprised that none of the ranged classes of Singular has AOE support?)

      Code link: Private Paste - Pastie

      I noticed the function IsCrowdControlled in Unit.cs, but I'm not sure whether it's useable?

      I apologize if any of my questions seems stupid, but I'm a PHP developer and C# and the organizing of libaries is very new to me.
       
      Last edited: Sep 4, 2011
    14. Jon310

      Jon310 Member

      Joined:
      Jan 15, 2010
      Messages:
      368
      Likes Received:
      8
      Trophy Points:
      18
      60 yards seems like a bit large of a radius to look for enemies for rain of fire. Looks closer to 10 yards in game. The cc you posted works for me without errors.

      Spell.Cast("Fear", ret => !Unit.IsCrowdControlled(StyxWoW.Me.CurrentTarget)), would be my guess for that one. I don't believe that I have ever used it though.
       
    15. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      I set the number to 60 to test whether it would then run the condition. So what you are saying is that it hits Rain of Fire for you?
       
    16. Jon310

      Jon310 Member

      Joined:
      Jan 15, 2010
      Messages:
      368
      Likes Received:
      8
      Trophy Points:
      18
      I was testing on a dummy so it never got there, however I didn't get any errors on startup so I should work. Ill pull 3-4 mobs and see how it responds.
       
    17. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      This is the same test case that I'm using, the 60f was due to the range between the dummies.
       
    18. Jon310

      Jon310 Member

      Joined:
      Jan 15, 2010
      Messages:
      368
      Likes Received:
      8
      Trophy Points:
      18
      I am unable to get it to use rain of fire on adds. I've even tried Spell.CastOnGround("Rain of Fire", ret => StyxWoW.Me.CurrentTarget.Location, ret => Clusters.GetClusterCount(StyxWoW.Me.CurrentTarget, Unit.NearbyUnfriendlyUnits, ClusterType.Radius, 10) >= 2),

      I don't know whats going wrong.
       
    19. HyperMonkey

      HyperMonkey Member

      Joined:
      Jul 3, 2010
      Messages:
      517
      Likes Received:
      7
      Trophy Points:
      18
      I can get it to use rain of fire, just not when trying with the addcount. Is there any way to test/log the returned values of the cluster function?
       
    20. Jon310

      Jon310 Member

      Joined:
      Jan 15, 2010
      Messages:
      368
      Likes Received:
      8
      Trophy Points:
      18
      Could make new decorators and then have them do nothing but log into the HB window that they are being executed. Other than that I don't know how to test the cluster function. I have had it working before, I'm not sure whats wrong here.
       

    Share This Page