Navigation menu

WoW:API GetItemFamily: Difference between revisions

Jump to navigation Jump to search
m
→‎Details: quote "INVTYPE_BAG"
mNo edit summary
m (→‎Details: quote "INVTYPE_BAG")
Line 22: Line 22:
== Details ==
== Details ==
: New function for 2.4 that allows you to find out what items can go into what bags.  If the item you pass is a container itself it will return what items it can contain since containers can always only go in general purpose bags.  This function only returns info for the items in the item cache just like [[API GetItemInfo|GetItemInfo]]. If the item is not in the item cache the function will return ''nil''.
: New function for 2.4 that allows you to find out what items can go into what bags.  If the item you pass is a container itself it will return what items it can contain since containers can always only go in general purpose bags.  This function only returns info for the items in the item cache just like [[API GetItemInfo|GetItemInfo]]. If the item is not in the item cache the function will return ''nil''.
: The best way of '''testing if an item is a bag''' (or quiver) is to GetItemInfo() it and check if the 9th return value is "INVTYPE_BAG". All other tests require localization.
Anonymous user