Get an Epic Experience with Premium

nRange (Teleport range checker)

Warlock Login to Add Favorites
  • 1 Like
  • World of Warcraft
  • 368 Monthly Downloads
  • Supports: 6.2.3
  • 23,925 Total Downloads
  • Updated 12/19/2015
  • Created 03/22/2010
  • 27 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: WTFPL
  • Newest File: nRange-

About nRange (Teleport range checker)

Nuggs Teleport Range Checking for 'locks and Monks

What is it
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.
It'll also display the yards/meters you're away from your spirit or portal as well as place an icon on the minimap where your portal/spirit is.

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.

When you get more than 100 yards/meters 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.

New Features
Placing an icon on the minimap of your portal/spirits location
Clients that aren't enUS should now display meters instead of yards

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.


  • Configurable text/icon/both display.

Removed Astrolabe, fixes nrange breaking in arena.

Disabled nRange_Communication, can be enabled using slash commands
If you have the transcendence buff during a reload, nrange should display after reloading the UI
Changed out of range from english to ERR_OUT_OF_RANGE
Use meters instead of yards if your locales not set to enUS
Now puts an icon on the minimap of your portal location
Enhanced slash command to accept multiple arguments
Started process of allowing addon communication to be enabled by slash commands

Updated toc for 6.2
Updated toc.
Might be a few tweaks.
Updated toc.
Might be a few tweaks.
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 3 of 4 Next Last
  • #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. 

  • #16

    This is the LUA error I get when it first loads (on a warlock toon - I have it turned off for my other toons)


    Date: 2012-02-08 18:47:34
    ID: 1
    Error occured in: Global
    Count: 1
    Message: ..\AddOns\nDemonic\nDemonic.lua line 127:
       bad argument #1 to 'unpack' (table expected, got nil)
       [C]: ?
       [C]: unpack()
       nDemonic\nDemonic.lua:161: ?()

  • #17

    I just got my account resubbed by a friend so I'll look into correcting this.  I had assumed people weren't really using this too much.  :p

  • #13

    It crashes and generates a LUA error if loaded on a non warlock toon.

  • #14

    Can you post the error?  Only thing that happens it me is it disables the mod and reloads the game.

  • #11
    I am not sure what I am doing wrong, but I can't get this addon to show up at all. When I try to enter to config, it tells me that there are only lock and unlock in the chat frame, so I know that it is loaded. When I drop my portal, I do not see the text anywhere at all on my screen. I uninstalled it and re-downloaded it again, and still nothing.
  • #12

    lol, I hadn't had it updated for 4.2 apparently.  Anyway, should be updated whenever curse approves it.

  • #10
    any chance for an update for 4.1?
  • #7
    works fine in cata!

    changing the font style would be nice. at my installation the font looks not like the screenshot
  • 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 »

Star Trek Online Wiki Editing Contest