Lore archive · Warcraft Wiki, 2023 dump
API GetAutoLootDefault
Last wiki revision 2020-01-08
Returns the state of Auto Loot. state = GetAutoLootDefault;
- state : Boolean - 1 if auto loot is enabled, nil if disabled.
This toggles Auto Loot on and off when used in a macro spot. or (easier to change if the need arises)
- /script if (GetAutoLootDefault) then SetAutoLootDefault(false); message("Auto Loot is off."); else SetAutoLootDefault(true); print("Auto Loot is on."); end;
- /script local onOff = {["1"] = "on",["nil"] = "off"}; SetAutoLootDefault(not GetAutoLootDefault); print("Auto Loot is "..onOff[tostring(GetAutoLootDefault)]..".");
Result
- Pops up a window informing the user of the state of Auto Loot. Very useful for toggling Auto Loot on the fly.
Source
https://warcraft.wiki.gg/wiki/API_GetAutoLootDefault · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.