API IsBattlePayItem

From Wowpedia
Jump to: navigation, search

Returns whether an item was purchased from the in-game store.

isPayItem = IsBattlePayItem(bag, slot)

Arguments

bag 
Number (bagID) - container ID, e.g. 0 for backpack.
slot 
Number - slot index within the container, ascending from 1.

Returns

isPayItem 
Boolean - true if the item was purchased from the in-game store, false otherwise.

Patch history

Mists of Pandaria Patch 5.4.0 (2013-09-10): Added.