TBC Distance Tracker

When playing TBC Shadow Priest Raids, I feel really uncomfortable with the 24 yards and 36 yards distances. I know this is a temporary issue which will drop on playing it for longer. Still I want to boost the process by writing weakaura which checks the distance to my target/boss.

At first I tried to build a process bar but I couldn’t manage to tell weakauras that it should measure the distances rather than turning it on and off on a specific distance without any in between steps (while using CheckRange).

I went along with the CheckRange option and I use it on 8, 20, 24, 30, 36, and 40 yards. These are the specific ranges for all shadow priest spells. I used the RangeCheck on +2 yards (10, 22, 26, 32, 38, 42) in desaturate/30% alpha and no-desturate/100% alpha when in 8, 20, … yards as a condition.

Apparently the non-decadic numbers appear far off at lower and higher values. There is no desaturated transition from 42 to 40 yards, 20 and 24 yards are measure both as 20 yards, and 8 yards is rather 10 yards or more (according to the psychic scream tooltip). I do not know how to tackle this issue since adjusting numbers does not seem to have a smooth transition, rather a gap between 20 and 25.

Now I tried to look into SpellInRange meanwhile I hardly understand LUA Code. I stumbled on the following but I couldn’t make it work.

function()
if(IsSpellInRange(“Mind Flay”, “target”) == 1) then
return true
else
return false
end
end

I used it in the Display option -> Common Text -> Custom Code (update every frame). Yet I see no Icon when in range.


Additional

I’ve seen weakauras which use the range of specific items as a basis for the range tracker. I can’t get my head around, why this should be more reliable than raw values.

Try setting it as a custom trigger instead. The Common Text function is likely expecting a string as the return rather than a boolean.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.