User Interface: Difference between revisions

From Vanilla Plus
Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
* '''Instance Reset'''
* '''Instance Reset'''
** /script ResetInstances();
** /script ResetInstances();
* '''Autoattack''' [Note: You must set the actionbar slot designated in script to your 'Attack' Spell, see attached image][[File:Action Bar Slot Numbers.png|none|thumb]]
* '''Autoattack'''
** /script if not IsCurrentAction(12) then UseAction(12) end;
** ''[Note: You must set the actionbar slot designated in script to your 'Attack' Spell, see attached image]''[[File:Action Bar Slot Numbers.png|none|thumb]]
*** /script if not IsCurrentAction(12) then UseAction(12) end;
*'''Output Actionbar Slots as Icon Textures'''
**''(Useful for macro/scripting; Searches all bars, to limit change 1,120 to intended range)''
**/run local l=0;for l=1,120 do local t=GetActionText(l);local x=GetActionTexture(l);if x then local m="Slot "..l..": ["..x.."]";if t then m=m.." \""..t.."\"";end;DEFAULT_CHAT_FRAME:AddMessage(m);end;end;
* '''Raid Target Icons'''
* '''Raid Target Icons'''
** /script SetRaidTarget("target", 8); Skull
** /script SetRaidTarget("target", 8); Skull
**

Revision as of 21:52, 29 April 2026

Vanilla Plus Github Addon Discussion: https://github.com/KrekoG/vanillaplus#addons-maintained-by-the-community

General Addons:

Vanilla+ Class/Role Specific Tools:

Macros:

  • Mob Attack Damage/Speed
    • /script ld, hd, old, ohd, pb, nb, pm = UnitDamage("target"); SendChatMessage(UnitName("target").."'s main hand attacks hit for "..ld.." to "..hd.. " and their offhand attacks hit for "..old.." to "..ohd);
  • Mob Armor & Resist
    • /script u=UnitResistance y="target" a=u(y ,0) h=u(y ,1) f=u(y ,2) n=u(y ,3) fr=u(y ,4) s=u(y ,5) z=u(y ,6) SendChatMessage(UnitName(y).." has "..a.." Armor, "..h.." HR, "..f.." FR, "..n.." NR, "..fr.." FrR, "..s.." SR and "..z.." AR.", SAY)
  • Instance Reset
    • /script ResetInstances();
  • Autoattack
    • [Note: You must set the actionbar slot designated in script to your 'Attack' Spell, see attached image]
      • /script if not IsCurrentAction(12) then UseAction(12) end;
  • Output Actionbar Slots as Icon Textures
    • (Useful for macro/scripting; Searches all bars, to limit change 1,120 to intended range)
    • /run local l=0;for l=1,120 do local t=GetActionText(l);local x=GetActionTexture(l);if x then local m="Slot "..l..": ["..x.."]";if t then m=m.." \""..t.."\"";end;DEFAULT_CHAT_FRAME:AddMessage(m);end;end;
  • Raid Target Icons
    • /script SetRaidTarget("target", 8); Skull