Thread Tools Display Modes
12-20-06, 07:11 PM   #1
Stormm
A Kobold Labourer
Join Date: Dec 2006
Posts: 1
Help with "helpbutton" & targets

How would I replicate this using SetAttribute?

/cast [help] Flash Heal; [target=player] Flash Heal

right now this is what I am using and can't make it work.

MyButton:SetAttribute("helpbutton", "friendlytarget")
MyButton:SetAttribute("unit-friendlytarget", "target")
MyButton:SetAttribute("unit", "player")
MyButton:SetAttribute("type", "spell")
MyButton:SetAttribute("spell", "Flash Heal")

If I click my button with a friendly targeted, Flash heal goes off. If I click my button with no target, I would expect it to heal me but it doesn't.

If I comment out, MyButton:SetAttribute("unit", "player"), my cursor changes form to indicate I need to pick a target since none were defined. If I uncomment it to define it, clicking the button with no target does nothing again. What am I missing here?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Help with "helpbutton" & targets


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