Download
(5Kb)
Download
Updated: 07-27-16 01:17 PM
Pictures
File Info
Compatibility:
Legion (7.0.3)
Updated:07-27-16 01:17 PM
Created:09-11-12 10:35 AM
Downloads:5,590
Favorites:20
MD5:

SpellNotReadyYet  Popular! (More than 5000 hits)

Version: 1.7.1
by: Sockz0r [More]

That spell isn't ready yet!

SpellNotReadyYet is a very small, lightweight addon that will flash a small icon in the center of the screen with the cooldown remaining whenever you hit an ability that is on cooldown! Also displays an error icon if the ability you are attempting to use cannot be used on your current target or you have no target.

Currently it only supports abilities that the player casts. I may add pet support and items (if i can figure items out) in the future if people request it.

Configuration

Access the options with:

Code:
/snr
These options will allow you to adjust the icon size and the x/y co-ordinates.

Feedback and suggestions welcomed <3

V 1.7.1

- Fixed timer not following icon
- Updated toc

V 1.7

- Legion compatibility

V 1.6

- Remember that ingame options? Aw yeaa (/snr)
- Blacklisting is still to come, will hopefully teach myself that stuff monday. But cant promise it will be up by then

V 1.5

- Various code improvements
- Minor bug fix

V 1.4 WHAT IS THIS AN UPDATE?! Decided to pick this up again, see what I can do with it. Special thanks to wkrueger for his code inspiration.

- Added a slash command base options (/snr)
- Now displays error with No Targets and Invalid Tarrgets
- Character Based Saved Variables! No more editting lua files

V 1.3

- GOOD BYE TAINTS (got off my ass and fixed the tainting issue as blizzard never will)
- Plan to add some ingame options at some point, but when those will be up im not sure

V 1.2

- Now ignores the buggy Synapse Springs, hurray!

V 1.1

- Config area is a bit more informative and has more options
Optional Files (0)


Post A Reply Comment Options
Unread 07-21-18, 01:13 PM  
Zacfire
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Updated for BFA

For version 8.0.1 Blizzard changed the way some functions and events work on the API and this addon stopped working. I checked the code and blizzard changed output of the event that this addon uses in order to get the information for the spell.

Note: I know little about LUA.

Fix:

In line 346 of the LUA file look for this segment of code.

if event == "UNIT_SPELLCAST_FAILED" then -- Event that triggers when something is on CD
local unit, spellname, spellrank, spellidcounter, id = ...;
local start, duration, enabled = GetSpellCooldown(id);
local name, rank, fileID, castTime, minRange, maxRange, spellID = GetSpellInfo(id)
local seconds = GetTime();
local timeleft = (start + duration - seconds);
local icon = GetSpellTexture(spellID)

Change it to:

if event == "UNIT_SPELLCAST_FAILED" then -- Event that triggers when something is on CD
local unit, spellID, id = ...;
local start, duration, enabled = GetSpellCooldown(id);
local fileID, castTime, minRange, maxRange, spellID = GetSpellInfo(id)
local seconds = GetTime();
local timeleft = (start + duration - seconds);
local icon = GetSpellTexture(id)

I just removed the information that the event no longer outputs (SpellName and SpellRank), also I changed the input of the icon to be the same as the cd "id", it wasn't getting an input before.

-Zacfire-
Report comment to moderator  
Reply With Quote
Unread 08-09-16, 02:57 PM  
sonix
A Defias Bandit
 
sonix's Avatar

Forum posts: 2
File comments: 22
Uploads: 0
thank you

first : thank you for this, I was looking for an addon that does this, and almost gave up!

second: some suggestions / request (-- to make this addon even better!)

- set: fontsize, duration from the options menu
- toggle option for the red "X" function, i personally think that doesnt have much information
- blacklist / whitelist for spells
- disable while global cooldown is active - or when last ability cast within 1-2 seconds was the one triggering the icon. ( this is the most important -- as a melee dps, i often "spam" the buttons, and that creates a lot of unnecessary showups from this addon )

please and thank you
Report comment to moderator  
Reply With Quote
Unread 08-09-16, 05:50 AM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 548
Uploads: 13
i cant take this only lua file without SavedVariables (a clone addon for myself), will make some problem O.o

edit: fixed.
Last edited by EKE : 08-17-16 at 05:23 PM.
Report comment to moderator  
Reply With Quote
Unread 07-27-16, 08:36 AM  
hoslam1
A Murloc Raider
 
hoslam1's Avatar

Forum posts: 4
File comments: 27
Uploads: 0



The number and skill icon is moving separately unlike the image I have attached above

and, TOC number Wrong.

Thank you for updating the program
__________________
Report comment to moderator  
Reply With Quote
Unread 07-27-16, 05:24 AM  
Sockz0r
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 781
Uploads: 7
Originally Posted by EKE
need update?

I get a green texture
Sorry for the delay, Legion compatibility is being uploaded now
Report comment to moderator  
Reply With Quote
Unread 07-20-16, 10:55 PM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 548
Uploads: 13
need update?

I get a green texture
Last edited by EKE : 07-25-16 at 08:58 PM.
Report comment to moderator  
Reply With Quote
Unread 08-21-13, 06:26 PM  
tmtmaster4life
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Addon seems broken

Disregard my confliction, for i've discovered the error in the download path.
Report comment to moderator  
Reply With Quote
Unread 08-21-13, 05:31 PM  
tmtmaster4life
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Addon seems broken

I've extracted the file to the Addons folder within the interface folder and its not showing up what so ever in the addon panel nor within the game. I also copied the file to saved variables folder with still no luck. If there is a specific way to enable this addon or if I'm making a mistake PLEASE LET ME KNOW. But it seems like this addon is broken as of 5.3
Report comment to moderator  
Reply With Quote
Unread 05-25-13, 11:58 AM  
wkrueger
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Nice addon.

I took the liberty to do some changes to it (in a crappy way, I'm new to programming).

- Added slash command to change position (/snr x, /snr y)
- Configuration variables saved on a per-character basis
- Flashes also for any other UI errors like "No target". Shows an X for no target.
- Hides standard error frame.

I'm currently using it as a nice replacement for the stardard error frame.

Here it goes the code:
http://pastebin.com/gSXCdvPx

Also, add this to the toc file
Code:
## SavedVariablesPerCharacter: saved
Last edited by wkrueger : 05-25-13 at 12:49 PM.
Report comment to moderator  
Reply With Quote
Unread 03-07-13, 07:57 AM  
c0reman
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
SORRY FOR MY BAD ENGLISH!

Totally great addon. I just replaced actionbar addon and CCtrack addon just by installing this one. Cool its pretty lightweight - helps a lot to my old system. I got a few suggestions:

- blacklist would be great
- also would be nice if you allow us to change timer position
- do sth with decimal numbers - they are kinda "blinking" when goes under 5 sec
- also, when you pressing MACRO with a couple of spells in it, there is annoying overlay of spells - so would be great if you add some spam filter or sth (i bet blacklist could solve this problem)

Well, thanks bro!!! Great job you did!
Report comment to moderator  
Reply With Quote
Unread 01-04-13, 07:51 PM  
tmcnabb
A Fallenroot Satyr
 
tmcnabb's Avatar

Forum posts: 22
File comments: 22
Uploads: 0
nice idea

cool idea for an addon
__________________
Why is common sense not as common?
Report comment to moderator  
Reply With Quote
Unread 01-04-13, 04:46 AM  
Ayreal
A Kobold Labourer

Forum posts: 0
File comments: 22
Uploads: 0
That worked perfectly, thanks!
Report comment to moderator  
Reply With Quote
Unread 01-04-13, 04:11 AM  
Sockz0r
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 781
Uploads: 7
Originally Posted by Ayreal
Is there any chance of adding a blacklist to ignore certain spells? (example: Death Strike for a Death Knight)

If there's a way to do this already, could you please explain it for me? Thank you!
currently there is no black listing option, although its an idea i shall attempt to implement at a point when i have time however it wont be an ingame option as i still dont know how to add that :P

but you can blacklist it now in the code, go into the SpellNotReadyYet.lua and go to line 172, there will be this chunk of code:

Code:
if name == "Synapse Springs" then else
		if unit == "player" then
			if duration > 1.5 then
				local iconframe = CreateFrame("Frame", nil, UIParent)
				UIFrameFlash(iconframe, 0, fdur, fdur, false, 0, 0)
				iconframe:SetPoint("CENTER", xoff, yoff)
				iconframe:SetSize(iconsize, iconsize)
				iconframe:SetBackdrop({
					bgFile = icon
					})
				iconframe:SetFrameStrata("BACKGROUND")
			
				local tr = iconframe:CreateFontString()
				tr:SetPoint("BOTTOM", 0, -10)
				tr:SetSize(40, 40)
				tr:SetFont(tfont, fontsize, "OUTLINE")
				tr:SetText(formatTime(timeleft))	
			end
		end
	end
end
if you're not an engineer, you can replace Synapse Springs with Death Strike. else just replace that chunk of code with this:

Code:
if name == "Death Strike" then else
if name == "Synapse Springs" then else
		if unit == "player" then
			if duration > 1.5 then
				local iconframe = CreateFrame("Frame", nil, UIParent)
				UIFrameFlash(iconframe, 0, fdur, fdur, false, 0, 0)
				iconframe:SetPoint("CENTER", xoff, yoff)
				iconframe:SetSize(iconsize, iconsize)
				iconframe:SetBackdrop({
					bgFile = icon
					})
				iconframe:SetFrameStrata("BACKGROUND")
			
				local tr = iconframe:CreateFontString()
				tr:SetPoint("BOTTOM", 0, -10)
				tr:SetSize(40, 40)
				tr:SetFont(tfont, fontsize, "OUTLINE")
				tr:SetText(formatTime(timeleft))	
			end
		end
	end
end
end
Report comment to moderator  
Reply With Quote
Unread 01-04-13, 03:37 AM  
Ayreal
A Kobold Labourer

Forum posts: 0
File comments: 22
Uploads: 0
Is there any chance of adding a blacklist to ignore certain spells? (example: Death Strike for a Death Knight)

If there's a way to do this already, could you please explain it for me? Thank you!
Report comment to moderator  
Reply With Quote
Unread 09-14-12, 03:43 PM  
Sockz0r
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 781
Uploads: 7
Re: I got error messages when changing talent and glyph.

Originally Posted by nfrog_net
2 error messages, chaning talent and glyph


1. glyph
Code:
Date: 2012-09-15 01:06:27
ID: 1
Error occured in: AddOn: SpellNotReadyYet
Count: 1
Message: Error: AddOn SpellNotReadyYet attempted to call a forbidden function (CastGlyph()) from a tainted execution path.
Debug:
   [C]: CastGlyph()
   ...terface\AddOns\Blizzard_GlyphUI\Blizzard_GlyphUI.lua:527: GlyphFrameSpell_OnClick()
   [string "*:OnClick"]:1:
      [string "*:OnClick"]:1
Locals:
None
2. talent
Code:
Date: 2012-09-15 01:08:58
ID: 1
Error occured in: AddOn: SpellNotReadyYet
Count: 1
Message: Error: AddOn SpellNotReadyYet attempted to call a forbidden function (RemoveTalent()) from a tainted execution path.
Debug:
   [C]: RemoveTalent()
   ...rface\AddOns\Blizzard_TalentUI\Blizzard_TalentUI.lua:56: OnAccept()
   ..\FrameXML\StaticPopup.lua:3827: StaticPopup_OnClick()
   [string "*:OnClick"]:1:
      [string "*:OnClick"]:1
Locals:
None
those are bugs on blizzards behalf due to leaking variables. nothing can be done until blizzard fix it. reloading UI then respecing again normally clears it
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: