Lore archive · Warcraft Wiki, 2023 dump
EquipItemByLink
Last wiki revision 2007-06-30
Equips the first matching item found in the player's bags (including the bank and bank bags).
Checks the bank first, then carry-ons, then bank bags.
local function EquipItemByLink(link) for bag=BANK_CONTAINER, NUM_BAG_SLOTS+NUM_BANKBAGSLOTS do for slot=1,GetContainerNumSlots(bag) do local item = GetContainerItemLink(bag, slot) if item and item == link then if CursorHasItem or CursorHasMoney or CursorHasSpell then ClearCursor end PickupContainerItem(bag, slot) AutoEquipCursorItem return true end end end end
Source
https://warcraft.wiki.gg/wiki/EquipItemByLink · 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.