Skip to content

Instantly share code, notes, and snippets.

@gistub
Last active November 16, 2024 09:28
Show Gist options
  • Select an option

  • Save gistub/d1103eb7e51ffe9187afef471dc9e0c7 to your computer and use it in GitHub Desktop.

Select an option

Save gistub/d1103eb7e51ffe9187afef471dc9e0c7 to your computer and use it in GitHub Desktop.
[WoW Snippets] Small useful snippets #lua #wow #macro

/console cameraIndirectiveVisibility 1

-To find out current zone map id type

/dump C_Map.GetBestMapForUnit("player")

-To get spell IDs from Dungeon Journal, Mouseover the spell and use this macro:

/dump GetMouseFocus():GetParent().spellID

. To get map ID of a dungeon, open dungeon in Encounter Journal and type:

/dump EJ_GetInstanceInfo() (7th return value will be the mapID)

. Crusader Strike macro

#showtooltip
/startattack
/use [@target,harm,nodead]Crusader strike
/stopmacro [harm,nodead]
/targetenemy
/use Crusader Strike

. Inspect unit

/focus mouseover
/run if UnitExists("focus") then InspectUnit("focus") end

. Put marks on players based on a debuff.

if aura_env.states[1].unit then
    local inUse = { }
    for unit in WA_IterateGroupMembers() do
        local m = GetRaidTargetIndex(unit)
        if m then
            inUse[m] = true
        end
    end
    for i = 2, 8 do
        if not inUse[i] then
            SetRaidTarget(aura_env.states[1].unit, i)
        end
    end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment