Script::GetItemInfo
function · ui · primitive
- Address
0x48e070· 726 bytes, up to0x48e345- 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 |
|---|---|
| 1 | the name, with the random suffix of the suffix id |
| 2 | the text item:id:enchant:suffix:unique |
| 3 | the quality, record +0x1c |
| 4 | the required level, record +0x3c |
| 5 | the class name in the current locale, or empty |
| 6 | the subclass name: the subclass row's second name when nonempty, else its first, or empty |
| 7 | the stack size, record +0x60 |
| 8 | the inventory type key text, indexed by record +0x2c |
| 9 | the 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
- __ftol crt
- ClientDBStringLookup unassigned
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- GetInventoryIconByDisplayId objectlayer
- FormatItemName objectlayer
- SStrCmpI storm
- SStrPrintf storm
- SStrToInt storm
- lua_isnumber lua
- lua_isstring lua
- lua_tonumber lua
- lua_tostring lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.