SearchForItem

SearchForItem
Index2D SearchForItem ( int Index, int Modifier, int Window )

code contained in Inventory/script/INV_Funcs.dh

Properties

 * Index - Item index to search for
 * Modifier - Modifier to search for
 * Window - Index to Window Pointer Array

Description
Performs a search through the specified inventory array for a spot matching the given index and modifier. Returns the x/y coordinates of the first match, or -1/-1 if no match is found.