Gaming
 

AxuItemMenus CI

From WoWWiki

<< AxuItemMenus

Image:Addonicon.gif
WoWWiki Hosted AddOn Sub-Page

This article is a part of the documentation of the AxuItemMenus function library

-- Example
   if (AxuItemMenus_C == BANK_CONTAINER) then
       if (AxuItemMenus_I > 39) then
           PickupInventoryItem(AxuItemMenus_I);
           PutItemInBackpack();
       else
           UseInventoryItem(AxuItemMenus_I);
       end
   else
       UseContainerItem(AxuItemMenus_C, AxuItemMenus_I);
   end

The variables AxuItemMenus_C and AxuItemMenus_I contain the bag number and the slot number inside that bag of the item for which the menu has been opened.

Because AxuItemMenus now also supports MyBank, it is possible to open the menu for an item that isn't actually accessible, so try to avoid using these variables blindly.