benilla-re systems structs docs

Script::GetItemInfo

function · ui · primitive

Address
0x48e070 · 726 bytes, up to 0x48e345
Signature
int __fastcall (lua_State *L)
Meaning
Returns the name, link text, quality, level, class, subclass, stack, slot and icon of an item
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/serviceverbs#item-information

Finding: Item information in ui: GM, service and item lookup verbs

GetItemInfo(item) takes an item id as a number, or the text item: followed by the id and up to three more colon-separated numbers, the enchant, the suffix and the unique id. A text without the item: prefix reads as id 0. An item not in the cache returns no values; a non-number, non-string argument raises Usage: GetItemInfo(itemID|"itemlink"). Otherwise it returns nine values:

#value
1the name, with the random suffix of the suffix id
2the text item:id:enchant:suffix:unique
3the quality, record +0x1c
4the required level, record +0x3c
5the class name in the current locale, or empty
6the subclass name: the subclass row's second name when nonempty, else its first, or empty
7the stack size, record +0x60
8the inventory type key text, indexed by record +0x2c
9the icon path: the icon directory, a backslash when it is nonempty, and the display's icon name

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 15

Calls and jumps by a bare address, from tables/calls.tsv.