2D vs 3D targeting...
StyxWoW.Me.Location.DistanceSqr(distanceFrom(ret).Location) <= maxRange * maxRange
StyxWoW.Me.Location.DistanceSqr(distanceFrom(ret).Location) <= maxRange
Math.Sqrt(Math.Pow(StyxWoW.Me.Location.X - distanceFrom(ret).Location.X,2)+Math.Pow(StyxWoW.Me.Location.Y - distanceFrom(ret).Location.Y,2)+Math.Pow(StyxWoW.Me.Location.Z - distanceFrom(ret).Location.Z,2))
i know this
but why
and notCode:StyxWoW.Me.Location.DistanceSqr(distanceFrom(ret).Location) <= maxRange * maxRange
Code:StyxWoW.Me.Location.DistanceSqr(distanceFrom(ret).Location) <= maxRange
dunno if DistanceSqr is working as intended (hope so) but for a test you can write the long form of this
Code:Math.Sqrt(Math.Pow(StyxWoW.Me.Location.X - distanceFrom(ret).Location.X,2)+Math.Pow(StyxWoW.Me.Location.Y - distanceFrom(ret).Location.Y,2)+Math.Pow(StyxWoW.Me.Location.Z - distanceFrom(ret).Location.Z,2))
I thought Me.Location.Distance is the 3D distance, because there is a Method called for 2D distance -> Me.Location.Distance2D
So this makes no sense (for me) to calculate explicitly 3D Distances, because the names of the methods imply (for me) Distance2D is for 2D and Distance is 3D ...
Don't know if i'm wrongi can't see the code inside these methods, so i can only conjecture
DistanceSqr is just the distance before running Math.Sqrt.
The only reason to use it, is for performance gains. (Sqrt math is slow when called very often, so not using it, gives a significant speed up in performance.)
Please learn some math on why you need to use maxRange * maxRange, and not just maxRange alone.
Why would you add consecration on a retribution paladin rotation?.. for singletargets? Just asking (whoever the author of the actual rotation is)
If I could request something added to the core. I would like to be able to use an equipped item via slot number. ie. CreateUseItem() or something like that. I'm afraid I'm not skilled enough to do so myself.
This would allow engineer's to use their belt/glove/cloak enchants, really maximize dps/survivability.
Thanks in advance, Jon