GetAutoLootDefault
Jump to navigation
Jump to search
Links |
---|
Info |
Added in 2.0.1 |
This no longer exists on any flavor of the game. |
This is no longer a part of the World of Warcraft API.
|
Returns the state of Auto Loot.
state = GetAutoLootDefault();
Returns
- state
- Boolean - 1 if auto loot is enabled, nil if disabled.
Example
This toggles Auto Loot on and off when used in a macro spot.
- /script if (GetAutoLootDefault()) then SetAutoLootDefault(false); message("Auto Loot is off."); else SetAutoLootDefault(true); print("Auto Loot is on."); end;
or (easier to change if the need arises)
- /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.
Patch changes
- Patch 3.0.2 (2008-10-14): Removed.