Thread Tools Display Modes
01-04-10, 09:04 AM   #1
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 137
Actionbutton Spellcast Help (Manual and Auto)

I've been wracking my brain trying to figure this out. I'm sure it's something so simple and so stupid but I'm just not seeing it.

I have a an actionbutton frame, that I have casting a healing spell when you left-click on it. I have it target the player if the person right clicks.

Here is my question:

How can you make it so that if a person clicks a spell on their actionbar and clicks on my frame, that it will cast that spell rather then the instant one attached to the buttons attributes? Basically overwrite the coded heal with the action that user specified.

Here is my code: (I'm using Party1 as an example)

Code:
        button:SetAttribute("unit", "party1")

	button:SetAttribute( "*helpbutton1", "heal" )
	button:SetAttribute( "*type-heal", "spell" )
	button:SetAttribute( "spell-heal", "Chain Heal" )

	button:SetAttribute( "*helpbutton2", "heal2" )
	button:SetAttribute( "*type-heal2", "target" )
As you can see, no matter what spell I choose on the actionbar (example: Lesser Healing Wave) when I left click the frame it will always cast Chain Heal.

I figure there is a check somewhere or macrotext that will allow me to do this. I'm not entirely sure as I've tried several methods.

Any help would be great!
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }

Last edited by Xruptor : 01-04-10 at 09:04 AM. Reason: Change the header text :P
  Reply With Quote
01-04-10, 09:06 AM   #2
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 137
Oh before I forget, I'm sure it has something to do with SpellIsTargeting().

http://www.wowwiki.com/API_SpellIsTargeting
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
  Reply With Quote
01-04-10, 02:23 PM   #3
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 137
lol anyone?
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
  Reply With Quote
01-05-10, 01:50 PM   #4
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 137
Nevermind it's been determined that this isn't possible. That is what I want the unitframe to do isn't possible right now.


http://forums.worldofwarcraft.com/th...03270327&sid=1
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Actionbutton Spellcast Help (Manual and Auto)


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