Wikia

WoWWiki

API UseEquipmentSet

Talk0
101,371pages on
this wiki
WoW API < UseEquipmentSet

Equips items from a specified equipment set.

success = UseEquipmentSet("name");

ArgumentsEdit

name 
String - equipment set name.

ReturnsEdit

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

ExampleEdit

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

NotesEdit

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).


Around Wikia's network

Random Wiki