RangeDisplay
Estimated range display. Type /rangedisplay for configuration or /rangedisplay locked to lock/unlock the frames.
RangeDisplay is a simple range display addon. It is using spell range, item range and interact-distance based checks to determine the approximate range to your current target. Due to the whackyness of interact-distance based checks, recent versions only use those when spell/item based checks are not possible . The display can be configured in many ways (displaying only the max range, adding border and background, etc).
Currently you can set up RangeDisplay to show your current range to your target, focus, pet and mouseover units. The mouseover unit range can be anchored to the mouse or placed at a fixed position.
New in v3.8.0: It is possible to add sound notifications to "range sections" (similar to color setting). The sound will be played when entering the section. If two sections have the same sound file attached to them, then the sound is not played again if switching between the two sections.
This sound notification is enabled by default for the target unit's close range section.
Displaying max range only: if you want to display only the maxRange, you need to set Text to "%d" and tick the Reverse option for the section(s).
cheers,
mitch
but i have one problem. Is there any possibility to move range bar in target section to display UNDER my char (exactly how it is in mouseover section) ?
I'm not exactly sure what you mean by that, but you can unlock the frames (either from the options or by typing /rangedisplay locked) then you can drag each display area to a position you like. When you're ready, lock the frames again with /rangedisplay locked.
Is that what you meant?
cheers,
mitch
RangeDisplay doesn't have any "recent targets bar" (nor any sort of bar, actually).
cheers,
mitch
My question... Is there a way to make it show not so vague ranges? What I mean is "20 - 25 yards" or "60 - 80 Yards" is pretty vague. Or if anything, how do I make it show smaller intervals like 2 yards instead of somewhere between 5 yards and/or beyond 80 yards?
Thanks for your help!
The granuality of various ranges depend on item and spell ranges usable by the character, and that's the best this method can provide.
More accurate range check is only possible for party/raid members by using map coordinates, but not all maps have those (notably older instances) and that method is not generic enough for my tastes. Some raid mods (like DXE) use that method for proximity alerts, but it's useless for a lot of other situations like pvp or when fighting mobs.
all in all, unless blizz adds something to the API, this is the best range estimate you'll get, sorry.
cheers,
mitch
This is not possible with the wow API.
cheers,
mitch
thanks for your awesome addon.
I want RangeDisplay show text("X-Y yards") on pitbull's target/focus frame but don't know how to deal with the code, really hope you can help me.
Some version of PitBull used to support range display via dogtags ([Range] or somesuch). You can probably do the same with luatexts in recent versions somehow, but I'd just place the standard RangeDisplay frames (probably without border and background) above your PitBull frames (just enable the Target and Focus frames in RangeDisplay). If you don't move your PitBull frames around much, this sounds the simplest approach. Just make sure RangeDisplay's "Strata" is higher than PitBull's.
cheers,
mitch
so what luatexts should I write?
and another question:
I am a priest so I can cast Mind Vision rank 1 on any unit within 100 yards, but rangedisplay show nothing if a friendly target is out of 27 yards. how to add this spell to check range?
(that said, I'd still recommend not integrating it into pitbull, as that tends to be less efficient, at least that was the case with the DogTag version).
About the mind vision thing: do you see at most 27yds on every kind of friendly targets? party members and such? That would either be a bug, or some strange configuration on your part, as the heal ranges should be 40yd, so you'd have to see those at least. Make sure you have Range Limit set to max. The only "friendly" units where you should see 27yd range as max are units in sanctuaries and other "misc" units, but for those normal spell range checking doesn't work, so RangeDisplay is using interact distances there.
cheers,
mitch
the targets I said before are sporelings/the oracles/something like that, but indeed I can cast some spells (inc. Mind Vision r1 of 100yds, Dispel Magic of 30yds) on them, so my question is how to add these spells to check range?
thank you very much.
My first feeling is that you can't do this in a way that wouldn't break on other units where the current ranges work (that is, it is fairly simple to add these spells to the "misc" type targets, but it won't work on all "misc" targets, and you'll see misleading 100+ yd displays on those).
Try changing line 729 in RangeDisplay/libs/LibRangeCheck-2.0/LibRangeCheck-2.0.lua from
if updateCheckers(self.miscRC, createCheckerList(nil, nil, interactList)) then
to
if updateCheckers(self.miscRC, createCheckerList({527, 2096}, nil, interactList)) then
and see if it works for your sporelings. then check what else it broke... :)
cheers,
mitch