Thread Tools Display Modes
01-05-06, 09:06 PM   #1
Vardelm
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 15
Question GetActionID() in DMF working in 1.9?

I'm having some trouble getting some functions to work that I wrote to use in macros. They use some functions from DMF. They worked great in 1.8, but not in 1.9. These functions and the error messages I'm now getting are:

Code:
function SmartCastUsable(action)
local actionSlot = GetActionID(action)
if IsUsableAction(actionSlot) then
	if not (IsActionCoolingDown(action)) then
		CastSpellByName(action)
	end
end
end
Error:
Interface\AddOns\SmartFunctions\SmartFunctions.lua:50: Usage: IsUsableAction(slot)
Code:
function SmartAutoShot()
actionSlot = GetActionID("Auto Shot")
if not IsAutoRepeatAction(actionSlot) then
	CastSpellByName("Auto Shot");
end	
end
Error:
Interface\AddOns\SmartFunctions\SmartFunctions.lua:61: Usage: IsAutorepeatAction(slot)
In both cases where I use GetActionID(action), I do have the action I'm referencing placed on a hotkey so it can be found. To me, from the errors, it looks like GetActionID(action) is somehow not finding or not passing the ID of the hotkey to the next function which uses the ID. is GetActionID(action) still working in 1.9, or does it need updating? Or is there something I need to change about my functions for 1.9?

Help?????

Thanks!
  Reply With Quote
01-05-06, 09:59 PM   #2
Lozareth
An Onyxian Warder
 
Lozareth's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 366
Woops, forgot to update DMF for patch 1.9. It's tooltip parsing was broken as well. A quick fix is to open DMF_Main.lua in a text editor and replace all instances of IsVisible with IsShown.
__________________
High Pope of the Divine Chihuahua
http://www.discordmods.com
  Reply With Quote
01-06-06, 07:19 AM   #3
Vardelm
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 15
Yep, that did it. Works as advertised now. Thanks much!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » GetActionID() in DMF working in 1.9?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off