CheckItemStatus
- Parameters
-
whichItem item
status integer
- comment
- patch
1.07
- Source
- Blizzard.j
- return type
boolean
- Source code
function CheckItemStatus takes item whichItem, integer status returns boolean if (status == bj_ITEM_STATUS_HIDDEN) then return not IsItemVisible(whichItem) elseif (status == bj_ITEM_STATUS_OWNED) then return IsItemOwned(whichItem) elseif (status == bj_ITEM_STATUS_INVULNERABLE) then return IsItemInvulnerable(whichItem) elseif (status == bj_ITEM_STATUS_POWERUP) then return IsItemPowerup(whichItem) elseif (status == bj_ITEM_STATUS_SELLABLE) then return IsItemSellable(whichItem) elseif (status == bj_ITEM_STATUS_PAWNABLE) then return IsItemPawnable(whichItem) else // Unrecognized status - return false return false endif endfunction