WoW API < UseEquipmentSet

Equips items from a specified equipment set.

success = UseEquipmentSet("name");

Arguments[edit | edit source]

String - equipment set name.

Returns[edit | edit source]

Boolean - true if the set was equipped, nil otherwise. Failure conditions include invalid arguments, and engaging in combat.

Example[edit | edit source]

local name = GetEquipmentSetInfo(1);
local ok = UseEquipmentSet(name);
if ok then
 print("You're now clad in " .. name);

Notes[edit | edit source]

This function does not produce error messages. FrameXML/EquipmentManager.lua provides EquipmentManager_EquipSet("name"), which will provide the player with an error message if the equip action fails (but does not provide you with a return value).

Template:API Trail EquipmentManager

Community content is available under CC-BY-SA unless otherwise noted.