Thread Tools Display Modes
04-13-17, 12:38 AM   #1
eightflat
A Murloc Raider
Join Date: Apr 2017
Posts: 4
Question Would this be possible?

I'd like to get into making addons for WoW. To be honest though, it's contingent on being able to achieve something specific. Could one of you tell me if you think the following would be possible? Not asking for how to do it, but it would be nice if I could save myself some time if someone knows off the top of their head. Even if you're not sure, whether you think yes/no is appreciated just as well.

Basically, you know the spell book and how you can drag spells from it to your bars? I'm wondering if it'd be possible to drag unlearned spells (due to level/spec restriction or not picking the talented spell) to your bars? I'd like to avoid something that relies on generating a macro for each ability due to how "ugly" that would be.

Of course, the ability would not be usable. The main idea is to let people arrange their key binds early on for UI planning/muscle memory.

Any ideas? Thanks for reading!

Last edited by eightflat : 04-13-17 at 12:41 AM.
  Reply With Quote
04-13-17, 04:33 AM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
You can call the function PickupSpell(spellID) on spells that you don't know yet and place them on your action bar, but I believe the game will remove them from your bars when you relog, so you would probably have to re-place them in their action slots every time the player logs in.

/run ClearCursor() PickupSpell(115546) PlaceAction(61) ClearCursor() would put "Provoke" on my monk's bottom left extra action bar.

Make sure you call ClearCursor() before calling PickupSpell to prevent unexpected behavior if the player already has something picked up somehow.

You will also want to call ClearCursor() after placing an action, because if the action slot is already occupied it will pick up the existing spell and put it on the cursor.

Last edited by semlar : 04-13-17 at 04:42 AM.
  Reply With Quote
04-13-17, 05:13 PM   #3
eightflat
A Murloc Raider
Join Date: Apr 2017
Posts: 4
Thank you so much! You have given me much inspiration
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Would this be possible?


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