IsValidStoreItem

Prototype: GemRB.IsValidStoreItem (PartyID, slot[, type])

Description: Returns if a pc’s inventory item or a store item is valid for buying, selling, identifying or stealing. If Type is 1, then this is a store item.

Parameters:

  • PartyID - the PC’s position in the party
  • slot - the item’s inventory or store slot
  • type - which inventory to look at?
    • 0 - PC
    • 1 - store
    • 2 - right-hand store (bag)

Return value: bitfield

  • 1 - valid for buy
  • 2 - valid for sell
  • 4 - valid for identify
  • 8 - valid for steal
  • 0x40 - selected for buy or sell

See also: EnterStore, GetSlotItem, GetStoreItem, ChangeStoreItem


Back to function index, GUIScript introduction.