Get an Epic Experience with Premium

nRange (Teleport range checker)

Warlock Login to Add Favorites
  • World of Warcraft
  • 243 Monthly Downloads
  • Supports: 5.4.0
  • 14,409 Total Downloads
  • Updated 10/21/2013
  • Created 03/22/2010
  • 18 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: WTFPL
  • Newest File: nRange 0.8.8

About nRange (Teleport range checker)

Nuggs Teleport Range Checking for 'locks and Monks

This will notify you whether you're in range or out of range of Demonic Circle or Transcendence. If your spell is on cooldown, it'll show that along with a timer on how much time is left on the cooldown.

This was mostly a rewrite of nDemonic. It's a lot better than nDemonic and I don't use that silly font anymore.
The cooldown will be correct with or without the glyph now, praise jesus(i guess), I properly handle cooldowns.
It doesn't matter how far away you get from your portal, it'll stay active as long as you have the buff.
When you die or change zones that removes your buff, it'll hide itself.

Distance might be off for your in range/out of range notification. Also, if it starts trying to show itself when it's not out, just use /nrange reset
Monks, I'm sure there's going to be some bugs with. It was a pain in the rear to get it working but I did.
When you get too far away from your clone and it despawns, the addon will hide itself as would be expected.
If you die or change zones, it gets hidden, that's all there is to it.

Configuration is handled by /nrange

Any further configuration can be done by editing the nRange.lua file itself.
Any suggestions, comments or whatever just leave here, also, I'll add the github repo when i create a new one.


  • Add markers to minimap and directional arrows(minimap).
  • Configurable text/icon/both display.

Added nRange_Clear to GetDistance for monks to clear after they reach 100 yards away

Added check in zone_changed_new_area to clear automatically for monks without question. This should fix the
the issue with it showing when it shouldn't.

Updated for 5.4
Removed all dependancies on pets from monks to relfect changes from Blizzard
Adjusted distance setting a smidge
adjusted monks spell to be based on distance, may not be completely accurate
added nRange_Reset in case monks bug out and you need to hide it.

Range should be displayed almost properly, forgive a yard or two off.
Fixed setting distance, reversed "indoor" and "outdoour" I fucked up, sorry guys.
Changed color setting, lol... Now that we get distance properly(Mostly, it might be off a yard or two)... I suck.
Indoor outdoor transitions are still incorrectly handled, I'm working on it...

Made a few changes, I honestly don't remember what they were. :)
Fixed a bug from 0.7.6 which caused it to not display the distance.
Started changing how range is stored and called.
Had a strange dream I uploaded code last night, caused me to upload code that was broke,
that was pretty awesome. :/

Fixed UNIT_SPELLCAST_SUCCEEDED call. Apparently, I formated my conditional incorrectly and it was setting
stuff it should set whenever a spell was cast.
Added distance checking, it's sloppy, it's straight from Astrolabe with help from kjado(EchoPort) with minor changes from me.
added nRange_GetDistance for checking the distance of our ping
We now listen for the events dealing with minimap zoom updates and pings
Added new text nRangeDistance
Probably a few things I forgot about. I'm awesome like that.

Updated for patch 5.3
Added IsInGuild to the communication function
Some other stuff...

Players should only get cached if they aren't cached already instead of clearing anyways on full cache.(Not that it matters)
Changed max cache to 5

Version change
Uploaded to WoWI/Curse, sorry, I was busy the past week and a half

Fixed it showing in vehicles and whatnot
Removed a debug message from the communication module

Finished(I hope) the version tracking, took a while, i don't have many friends to test with. :p

Started version tracking since my last little screw up.
Corrected the cooldown calculation, it was about .5 seconds too slow.
Ack!! Moved the UnitInVehicle call in nRange_IsActive to the beginning of the function. Fixes it not displaying at all

Shouldn't show when you're in a vehicle on a monk any longer. lol
nRange_SetMessage(int) sets the spell icon to NULL so we don't have it flashing when we use abilities,
a better fix would be to actually just fix whatever is causing it to flash when an ability is used.
Removed GetSpellInfo caching, that wasn't suppose to actually be here
Added a new variable 'nRange_IconSet' for displaying or hiding the spell icon... basically, a cheap workaround.
Rewrote a lot of the addon, some frame handling stuff was left but the core of it works completely different than before

Removed TukUI based code, has to be rewritten for 5.x WoW
Updated the version number to 0.1.8
Updated toc.

Updated toc

Fixed COMBAT_LOG_EVENT_UNFILTERED to have the correct arguments for 4.2.
Changed a few if statements in COMBAT_LOG_EVENT_UNFILTERED
Added nDemonic_SetCooldown(duration), checks for glyph then sets the cooldown duration.
Added nDemonic_TukInit(), checks for tukui then sets the options accordingly.
Added new help display with more information and better formatting.
Added reset option to return nDemonic back to it's default state, incomplete.
Remove Tukui frames/panels. Started using new v13 API.
Changed OnUpdate function to throttle itself. Might revert back if I don't notice a performance boost.

Updated the cooldown timers again. Damn Blizzard.

Now that the cooldown bug is fixed, I've adjusted the cooldown timers to work properly

Updated the version in the TOC file.

Added a check for Glyph of Demonic Circle(I'm bad).
Adjusted the code for the changes coming in Cataclysm.(Do to changes in cataclysm, glyph detection only works on live with this version)

Added draggable frame
Added slash commands ndemonic lock and unlock
base icon flashing when cooldown is up implemented(not included)
Cooldown display partially implemented, not included.

Version changed to 0.1.1
Forgot to remove pointless comments. Bumping version. :)
Bumped the version to 0.1.0

Most of the code went through a pretty major rewrite.
We now clear our portal when we die or change zones.
The portal no longer gets displayed as on cooldown when gcd is triggered
The only localization issues should be my nMessage text.
We now check COMBAT_LOG_EVENT_UNFILTERED for teleport/summon.
We no longer write the message to the frame each update(lol).

Added a function to disable the UI if you're not a warlock
Fixed a memory leak if you're not a warlock and the addon is active.
Further worked on reducing memory usage.

Added a change log
Cleaned up code to reduce the amount of lines to reduce the file size.
Stripped out comments to reduce file size.
Started work on adding a marker to the minimap(lol).

Addon Packs Containing This...


First Previous Page 1 of 3 Next Last
  • #32

    Hello, I've been getting this error on my warlock on log in:

    Message: Interface\AddOns\nRange\modules\nRangeComm.lua:84: invalid option in `format'
    Time: 04/03/14 21:16:44
    Count: 1
    Stack: [C]: in function `format'
    Interface\AddOns\nRange\modules\nRangeComm.lua:84: in function `?'
    Interface\AddOns\nRange\modules\nRangeComm.lua:108: in function <Interface\AddOns\nRange\modules\nRangeComm.lua:108>

    Locals: (*temporary) = "?%BygilyrDheurih%709000"
    (*temporary) = "(my toon's nick and server name)"

    Other than that, addon works properly.

    Last edited by solshine2510 on 4/3/2014 2:24:37 PM
  • #28

    Hi Major Nuggs, as Coma said it is a bit broken for monks, though it was wrong for him to be so rude to you. 

    The few issues I see with it: 

    - As you said you base the tracker off the minimap ping. The issue is if we or anyone in our party/raid pings the map, the addon automatically changes the range to the new ping which has nothing to do with the transcendence we had casted earlier.

    - Also, the range doesn't reset/disappear when we get so far out of range of our transcedence that it despawns, so we don't really have a way of checking if we got too far and made our transcendence despawn.

    There are other issues with the transcendence spells, but it's on blizzard's end. For example spawning a spirit of earth/fire/storm will automatically cause your transcendence to bug out and not work. 

    I understand you've been sick/injured so take your time with it, your well being should come first. Get well soon :). 

    Last edited by Ajs075 on 10/19/2013 12:52:20 PM
  • #29

    Well, I'm able to sit at my desk for more than ten minutes without my back acting up so I should be able to address some of these issues.

    I'll have to see if I can work around a lot of this but Blizzard isn't really doing much to help addon authors by changing spells but not fixing their ability to report whether the spell is usable or not.

    Might have to scrap it for monks all together if Blizzard is just going to keep screwing me over every time I fix my addon to make up for their lack of proper functionaility with the spell itself.

    I'll see what I can do though.  If nothing else, I'll file a bunch of bug reports to Blizzard that Transcendence doesn't report whether it's usable or not.  That would fix a lot of the issues we're having assuming they actually gave a shit but I doubt it.

    If you notice any other issues, feel free to post a comment and I'll look into it.

    Last edited by Major_Nuggs on 10/19/2013 8:24:52 PM
  • #31

    Trying.  :D

    Working on a new way to work with monks that doesn't rely so much on pinging minimaps and whatnot, hopefully I can get it working.  :)

  • #30

    I just noticed you fixed it, thank you SOOOOO much!

  • #26

    his addon was broken for monks in 5.4 since so please update it fast because i use all the time and one of the best addons :( too bad it got broke and the addon maker wanking all day !

  • #27

    Wow, so you want me to fix it but you don't tell me what's broken.

    Then you go on to insult me?  Wow...

    Furthermore, just tested, still works.  Might not be perfect but I am only just able to sit down and program again.

    Last edited by Major_Nuggs on 10/18/2013 3:39:16 AM
  • #24

    This addon was broken for monks in 5.4 since the game no longer considers our teleport a "pet" - Xuen is our pet now.  This is discussed in this thread:

    It stands to reason that Blizzard is calling the teleport *something*- guardian, whatever, since the game has to check range. Any chance you could find out what it is and update the addon? Thanks.

  • #25

    If I deal with the pain long enough to sit down and update this(I have a pinched nerve in my lower back) I'll do it as soon as I can.

  • #20

    Hi, I haven really been able to check it out much. 

    I only play monk, and do not have a warlock. one thing I did find to be a nice addition would be a warning (faked raid warning or something) that tells you when you're 80 yards away from your spirit or something.

    I checked it briefly in the shrine of Two moons and saw that when I was in range to use transcendence it was green, and out of range it appeared red, wich is very nice. but when I continued walking, I saw nothing to indicate leaving the 100 yard range of the spirit. since it will disappear when so far away. you might consider warning players somehow.

    EDIT: Just thought of maybe changing the colours of the text as thus:

    Green for in range (<40yd)

    Orange for out of range (>40yd <80yd)

    red for danger zone (>80 yd)

    and it would be nice to make these colors, and ranges customizable. if I want to get my message red after 90 yards in place of 80. that would be epic.

    I do not know much about LUA script and addon making. Therefore I don't really have any idea of what Im asking of you.

    Take your time and keep is casual.


    further testing and commenting will appear from my part



    Last edited by shinelord on 7/4/2013 3:15:48 PM
  • #23


    I'm actually working on this right now, it seems like the logical thing to do is

    green = 15 yards or less

    orange = 15 to 27 yards

    red is anything over 27 yards.  At least, it works well on the warlock this way.  I'm about to switch back to my monk and test it on that side.  Might have to make some class based conditionals on it but I wanted to let you know that it's coming and should be uploaded sometime today!

    Thanks for the feedback!  :D

    Scatch that, got it worked out for both classes:

        local oor;

        if (class == "WARLOCK") then
            oor = 26;
            oor = 27;

        if (distance < 15) then
            nRangeText:SetTextColor(0, 1, 0);
        elseif (distance > 15 and distance < oor) then
            nRangeText:SetTextColor(0.8, 0.35, 0);
        elseif (distance >= oor) then
            nRangeText:SetTextColor(1, 0, 0);

    Last edited by Major_Nuggs on 7/29/2013 7:00:14 PM
  • #21

    Something like this is planned, I've just yet to work on the warlock side of things which will have to be be handled differently than monks I'm thinking(Monks are handled by the "clone" or whatever, locks have a buff I can use) ...  Then again, I haven't delved too deep into it. I'm slowly getting to my feature list but I've just been swamped with work and after writing code all day(night), it's hard to get into the hobby side of it.  :p


    Forgot to mention, it's Lua.  :D  Some of the users of the language may take offense to it if you say LUA when searching for help if you ever do decide to mess with it.  :p

    Last edited by Major_Nuggs on 7/5/2013 11:53:27 AM
  • #22

    I suppose you mean I should not write Lua in all capitals.

    Take your time bro. Just have fun ^^


  • #18

    NOT Working at all.

  • #19

    Sounds like you're using 0.1.5, I applied a fix to something on that version that fixed it a little too well...

    For some reason, curse hasn't been serving the latest version...  :(

    Either way, 0.1.5 is broken, anything not 0.1.5 should work as advertised. 

  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Leaguepedia PAX Skin Giveaway