GHI_FindOneItem

Pilus edited this page Aug 11, 2015 · 1 revision
Clone this wiki locally

Syntax:

GHI_FindOneItem(itemGuid)

Arguments:

GHI_FindOneItem(itemGuid) has 1 required argument.

itemGuid
''String''
The GUID of the item you wish to find. This function will find the first instance of the specified item and not all.

Returns:

bag
''String''
The GUID of the bag it is in.
slot
''Number''
The slot number the item is in in the bag.

Example:

local item = stack.GetItemGuid()

local bag,slot = GHI_FindOneItem(item)

print("Bag GUID: "..bag,"Slot Number: "..slot)