Stores

Stores functions.


IS_ITEM_IN_STORE

action

Returns 1 if item is sold in the store, 0 otherwise.

STR_VAR Description Type Default
item item resource resref required
store store resource resref required
Return values Description Type
present is item sold in the store? bool

REPLACE_STORE_ITEM_MATCH

patch

Replaces each occurrence of match_item with new_item. Doesn’t change charges, flags, etc. Does nothing if match_item wasn’t found.

STR_VAR Description Type Default
match_item old item resref required
new_item new item resref required