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

light of dawn

sm0k3d

Member
Joined
Sep 27, 2010
Messages
466
Reaction score
12
hey I've been tinkering around with the player search function and I'm wondering if its possible to see if there are like 3+ players in front of you. right now i can just get if there are people around me but I'm trying to get it to see if there are 3+ people in front of me less than like 60% hp then cast light of dawn so they are caught in the cone area.
thanks
<div_prefs id="div_prefs"></div_prefs>
 
Honestly, I've been looking for an addon that could at least just display the number of targets my LoD is going to hit for when I raid. I have never found anything :9
 
Code:
using Styx;
using System.Linq;

if (ObjectManager.GetObjectsOfType<wowplayer>(false, false).Count(p => p != StyxWoW.Me && p.DistanceSqr <= 30 * 30 && p.IsFriendly && p.HealthPercent < 60 && StyxWoW.Me.IsSafelyFacing(p.Location)) >= 3 && SpellManager.CanCast("Light of Dawn") && StyxWoW.Me.CurrentHolyPower == 3)
{
     SpellManager.Cast("Light of Dawn");
}

something like that
</wowplayer>
 
I'm not sure yet about the radius and distance of this spell, i have an addon to measure it, but it's boring as hell to group up, stand at certain places, cast light of dawn and see who is hit and not.
I'd be grateful if someone can fill me in with the details about center of the cone , distance and radius to the left and right from your character.
 
Back
Top