Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

WearMe

From WoWWiki

Jump to: navigation, search

Contents

Summary

  • Library for equipping, bagging, and moving equipment using a dynamic cache.
  • Note on the Bank: Functions that search the bank only work while at the bank, technically if you scan the whole bank while at it it will be cached and can be searched later, but this information is not saved accross sessions and is not garenteed to be complete unless you have the bank window open.
  • Note on Bags: Most refrences to 'Containers' or 'Bags' here refer to the backpack + your 4 bags. Most refrences to 'Bank' include the bank + your 6 bank bags. If input is taken as bag and slot it will only return valid info for the bank bags when at the bank.
  • Note on ItemIDs: In most cases ItemID refers to the first number in an ItemString. In most functions where 'ID' is accepted it will take either the ItemID or the ItemString.


Download

Features

  • Embeddable library
  • Allows you to swap one item or a set of items
  • Allows you to equip one item or an outfit of items
  • Caches bank, bag, inventory and cursor items to avoid repetitive getting and reparsing of the item ids
  • Search through bags from a starting position so you can pick up where you left off
  • Find by itemName, itemString or itemID
  • Cached bag types, so that it never tries to put an item in a bag it can't go in
  • Optimized outfit equipping for one pass execution whenever possible

Examples

Outfit Equipping Example

WearMe.InitOutfit();
WearMe.RegisterToEquip(16, "item:18822:2646:0:0", "Obsidian Edged Blade");	-- Equip OEB w/ +25 agil (by itemString) or OEB (by name)
WearMe.RegisterToEquip(11, 19325);		-- Equip Ring 1 by id
WearMe.RegisterToEquip(12, 19898);		-- Equip Ring 2 by id
WearMe.RegisterToEquip(19);			-- Unequip Tabard
WearMe.WearOutfit();

Set Moving Example

WearMe.InitSet();
WearMe.RegisterBagItemToMove("item:18822:2646:0:0", "Obsidian Edged Blade");
WearMe.MoveSetToBank();

or

WearMe.InitSet();
WearMe.RegisterBankItemToMove("item:18822:2646:0:0", "Obsidian Edged Blade");
WearMe.MoveSetToBags();

User Functions

Embedding

To embed WearMe in your addon:

1) Drop the WearMe folder in your addon folder
2) Either add the following to your xml file:
<Include file="WearMe\WearMe.xml"/>
Or add this line to your toc file:
WearMe\WearMe.xml
Rate this article:
Share this article: