What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Singular - A community driven All-In-One CC - It Just Plain Works - (Pt. 2)

Already tried that and it doesnt seem to work. It doesnt yell out any error, but it seems to just ignore the Rain of Fire cast..

Private Paste - Pastie - Log from pastie showing the decorator position
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.
 
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?
 
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?

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.
 
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?
 
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
 
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

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..
 
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 ?
 
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..


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.
 
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.

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:
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 ?

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.
 
You're the best!! Is it possible somehow to detect whether any of the units is crowdcontrolled?

Edit: Seems to yell out an error:

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


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.
 
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:
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.

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.
 
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.

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?
 
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?

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.
 
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.

This is the same test case that I'm using, the 60f was due to the range between the dummies.
 
This is the same test case that I'm using, the 60f was due to the range between the dummies.

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.
 
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.

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?
 
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?

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.
 
Back
Top