12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

634 Part IV ■ <strong>Reference</strong>Usable following the EQUIP_BIND_CONFIRM or AUTOEQUIP_BIND_CONFIRM, which fires when the player attempts to equip a bind-on-equip itemArguments:index—Index provided by the EQUIP_BIND_CONFIRM or AUTOEQUIP_BIND_CONFIRM event; currently always 0 (number)EquipmentManagerClearIgnoredSlotsForSaveClears the list <strong>of</strong> equipment slots to be ignored when saving sets.EquipmentManagerIgnoreSlotForSaveAdds an equipment slot to the list <strong>of</strong> those ignored when saving sets.EquipmentManagerIgnoreSlotForSave(slot)<strong>Creating</strong> or saving a set with SaveEquipmentSet() will ignore any slots onthe list, allowing the player to create sets which only switch certain items(e.g. to equip a fishing pole <strong>and</strong> hat while leaving non-fishing-related itemsequipped).Arguments:slot—An inventory slot number, as can be obtained from GetInventorySlotInfo (number, inventoryID)EquipmentManagerIsSlotIgnoredForSaveReturns whether the contents <strong>of</strong> an equipment slot will be included whensaving sets.isIgnored = EquipmentManagerIsSlotIgnoredForSave(slot)Arguments:slot—An inventory slot number, as can be obtained from GetInventorySlotInfo (number, inventoryID)Returns:isIgnored—True if the contents <strong>of</strong> the slot will not be included whennext creating or saving an equipment set; otherwise false (boolean)EquipmentManagerUnignoreSlotForSaveRemoves an equipment slot from the list <strong>of</strong> those ignored when saving sets.EquipmentManagerUnignoreSlotForSave(slot)<strong>Creating</strong> or saving a set with SaveEquipmentSet() will ignore any slots onthe list, allowing the player to create sets which only switch certain items(e.g. to equip a fishing pole <strong>and</strong> hat while leaving non-fishing-related itemsequipped).Arguments:slot—An inventory slot number, as can be obtained from GetInventorySlotInfo (number, inventoryID)EquipmentManager_UnpackLocationUnpacks an inventory location bitfield into usable components.player, bank, bags, location or slot, bag = iEquipmentManager_UnpackLocation(location)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!