Thread: Script Help

  1. #1

    Script Help

    I'd like a script to recurse through my action bars, and then list every spell that I have in my spellbook (preferably class spells, no professions etc) that I don't have on my action bars yet.

    For example, if I'm on a rogue, and I don't have Feint on my action bars, it'll list feint.

  2. #2
    Drycoded. Had to split it into two despite my best efforts (function names are just too long).
    Code:
    /run local t,s d={}for i=1,(NUM_ACTIONBAR_PAGES*NUM_ACTIONBAR_BUTTONS)do t,_,_,s=GetActionInfo(i)if t=="spell"then d[s]=true end end
    Code:
    /run local d,n,o,c,t,i=d for p=1,GetNumSpellTabs()do n,_,o,c=GetSpellTabInfo(p)print(("[%s]"):format(n))for x=(o+1),(o+c)do t,i=GetSpellBookItemInfo(x,"spell")if t=="SPELL"and not (IsPassiveSpell(i) or d[i])then print(GetSpellLink(i))end end end
    UI & AddOns expert | Interface & Macros moderator - My work

  3. #3
    Guess noone already wrote one, so I did. Seems to work. Too lazy to match via string names (glyphs modify IDs, as well as specs sharing the same spells)



    Haha damn, you posted this just as I finished writing it >.<

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •