WoW API: GetAutoLootDefault
Jump to navigation
Jump to search
← WoW API < GetAutoLootDefault
Returns the state of Auto Loot.
Returns
- 1
- integer - if Auto Loot is enabled (checked).
- nil
- integer - if Auto Loot is disabled (unchecked).
Example
This toggles Auto Loot on and off when used in a macro spot.
- /script SetCVar("scriptErrors",1); if GetAutoLootDefault() == 1 then SetAutoLootDefault(false); message("Auto Loot is off."); else SetAutoLootDefault(true); message("Auto Loot is on."); end
Result
- Pops up a window informing the user of the state of Auto Loot. Very useful for toggling Auto Loot on the fly.