Download
(10Kb)
Download
Updated: 12-04-17 12:03 AM
Pictures
File Info
Compatibility:
Shadows of Argus (7.3.0)
Tomb of Sargeras (7.2.0)
Return to Karazhan (7.1.5)
Updated:12-04-17 12:03 AM
Created:02-14-10 01:24 PM
Downloads:10,075
Favorites:31
MD5:
Categories:Warlock, Monk

nRange (Teleport range checker)  Popular! (More than 5000 hits)

Version: 0.9.8.5
by: Nuggs [More]

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.

[Warlocks]
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.

[Monks]
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
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.
https://github.com/nuggs/nRange

Any suggestions, comments or whatever just leave here.

TODO

  • Configurable text/icon/both display.
  • Add TukUI/ElvUI support
  • Make it not look so ugly, suggestions, please

10/25/2016
Updated for 7.1
Fixed lua error throwing with monks due to an incorrect if check

10/21/2016
Updated for Legion
Fixed monks transfer to work correctly with legion changes
Fixed warlock to work correctly with legion changes
Probably a few other things from other the year.

12/19/2015
Removed Astrolabe, fixes nrange breaking in arena.

07/10/2015
Hopefully fix an issue with it not displaying on non enUS clients

07/07/2015
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

10/21/2013
Added nRange_Clear to GetDistance for monks to clear after they reach 100 yards away

09/17/2013
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.

09/14/2013
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.

08/24/2013
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...

08/06/2013
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. :/

07/29/2013
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.

05/22/2013
Updated for patch 5.3
Some other things I don't remember

04/04/2013
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

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

02/26/2013
Fixed it showing in vehicles and whatnot
Removed a debug message from the communication module

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

02/17/2013
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

02/16/2013
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

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

08/11/2012
Updated toc for 4.3.

10/18/2011
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.

11/04/2010
Fixed the cooldown time(Again). Blizzard keeps adjusting the time on me.

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

10/12/2010
Updated the version in the TOC file.

09/22/2010
Added a check for Glyph of Demonic Circle(I'm bad).
Adjusted the code for the changes coming in Cataclysm.

09/20/2010
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.

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

03/14/2010
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).

03/05/2010
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.

02/24/2010
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).
Optional Files (0)


Post A Reply Comment Options
Unread 05-22-13, 08:23 AM  
Nuggs
A Deviate Faerie Dragon
 
Nuggs's Avatar
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 16
Uploads: 4
Originally Posted by Phanx
You're currently causing "You are not in a guild" errors for characters who are not in a guild every time a comm would be sent. You need to add an IsInGuild() check before trying to send addon messages to the "GUILD" channel.

Though, I'm a bit puzzled as to why all this version checking comm stuff is there at all for an addon that should be purely a local display for your own spells.
I have it because 0.1.5 was a super crap release. It worked(didn't display) and I ended up releasing a fixed version a few minutes later but curse ended up serving 0.1.5 as the latest even though I had the bugfix released after... lol

Also, I just wanted to learn about the addon communication stuff, I just do this stuff for fun.

Anyways, it should be fixed(0.3.2, didn't see this until after I updated for 5.3), either i forgot or removed the checks.

Forgot to say, it can be disabled as well. It's commented in the code(27:nRange.lua) that it can be disabled. Just set that true to false and save the file and reload your interface, no more version checking.
Last edited by Nuggs : 05-22-13 at 08:31 AM.
Report comment to moderator  
Reply With Quote
Unread 05-22-13, 05:35 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
You're currently causing "You are not in a guild" errors for characters who are not in a guild every time a comm would be sent. You need to add an IsInGuild() check before trying to send addon messages to the "GUILD" channel.

Though, I'm a bit puzzled as to why all this version checking comm stuff is there at all for an addon that should be purely a local display for your own spells.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Last edited by Phanx : 05-22-13 at 05:36 AM.
Report comment to moderator  
Reply With Quote
Unread 02-15-13, 09:31 PM  
Nuggs
A Deviate Faerie Dragon
 
Nuggs's Avatar
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 16
Uploads: 4
Originally Posted by reale411
Originally Posted by Nuggs
Just had my account resubbed by a very special friend. I'll update this so it works on the latest patch.
Add Monk Transcendence?
Just figured I'd give you an update, a friend ended up getting me MoP for christmas and the first character I leveled was a monk, it's 87 now and I'm mostly done rewriting the addon to handle both warlocks and monks.

The monk part was difficult and there might still be some issues to work through while I'm rewriting it but I'm working on a usable form of the addon by the end of today.

Some of the issues is that transcendence doesn't appear to have an aura so tracking it's activity will be difficult.

There's been some major reworking of the addon so hopefully it'll be a little more usable. One of the biggest things was I finally stopped doing cooldowns the hard way and debugged my cooldown code that broke when I first started this...

Let's just say, it was a simple i like change that fixed it, guess I was too out of it. Anyways, the addon name is changing as well since it's no longer really for warlocks anymore.
Report comment to moderator  
Reply With Quote
Unread 08-11-12, 10:27 PM  
reale411
A Kobold Labourer

Forum posts: 0
File comments: 31
Uploads: 0
Originally Posted by Nuggs
Just had my account resubbed by a very special friend. I'll update this so it works on the latest patch.
Add Monk Transcendence?
Report comment to moderator  
Reply With Quote
Unread 10-07-11, 11:16 PM  
Nuggs
A Deviate Faerie Dragon
 
Nuggs's Avatar
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 16
Uploads: 4
Re: 4.1?

Originally posted by Gozer-Forscherliga
any chance for an update for 4.1?
Sorry, I haven't been playing my lock this expansion since I just don't like how the class plays.

I also had a hard drive go out on me when I was in the middle of trying to sync it to my github which caused me to lose a lot of updated code and kind of made me lose interest.

I'll see about getting it updated and try and knock out some of the features I had finished if I can't recover my code from the hdd.
Report comment to moderator  
Reply With Quote
Unread 05-18-11, 06:16 AM  
Gozer-Forscherliga
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
4.1?

any chance for an update for 4.1?
Report comment to moderator  
Reply With Quote
Unread 06-09-10, 12:56 AM  
Nuggs
A Deviate Faerie Dragon
 
Nuggs's Avatar
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 16
Uploads: 4
Originally posted by Popa_popa
Good addon, waiting for TODO!
Thanks, sorry for the delayed development, had some real life issues that I had to deal with.

Now that real life is back in order(mostly) I'm going to be able to pick back up on development. Or at least upload my current changes which is a movable frame I just have to get the position saving in.

Regards,
Nuggs
Report comment to moderator  
Reply With Quote
Unread 05-08-10, 08:44 AM  
Popa_popa
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Good addon, waiting for TODO!
Report comment to moderator  
Reply With Quote
Unread 02-15-10, 04:31 PM  
Nuggs
A Deviate Faerie Dragon
 
Nuggs's Avatar
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 16
Uploads: 4
Originally posted by Freak0o
Is there a possibility to kinda draw a circle on where the port has been planted ( at least for regions where there are coords. )
If you're talking about placing a marker on your Minimap, I'll look into this as that wouldn't be a bad idea.
Report comment to moderator  
Reply With Quote
Unread 02-15-10, 10:27 AM  
Freak0o
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
Is there a possibility to kinda draw a circle on where the port has been planted ( at least for regions where there are coords. )
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: