Stack.GetPosition

Pilus edited this page Aug 11, 2015 · 1 revision

Syntax:

stack.GetPosition()

Arguments:

stack.GetPosition() has no arguments.

Returns:

bag
''String OR Number''
The bag the item is in. If it is in the main backpack it will be a three digit number. 101 is the first bag screen, etc. If it is in an item bag it will return the item GUID.
slot
''Number''
Returns the slot number the item resides in. Slots are numbered right to left, bottom to top.

Example:

local bag,slot = stack.GetPosition()

print("Item position: "..bag..", "..slot)

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.