Script::ItemTextGetMaterial
function · ui · primitive
- Address
0x4e39f0· 212 bytes, up to0x4e3ac3- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the page material name of the open item text's source object, or nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/questmaterial#quest-background-material
Finding: Quest background material in ui: quest page material and the reward error
GetQuestBackgroundMaterial() always returns one value, a string or nil. It looks up the object whose GUID the open quest
dialog holds, under any type mask; no object gives nil. An item object gives the page material of its cached item record
(nil when the record is not cached, and no query is sent). A game object gives the page material column of its template
(objectlayer/gameobjecttypes#quest-givers-text-and-mailboxes). Any other object, a creature or a player, gives nil. The
material must be above 0, at most the table's highest id and have a row; the result is that row's name. ItemTextGetMaterial()
is the same function on the GUID of the open item text.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- ClntObjMgrObjectPtr objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- GetGameObjectPageMaterial objectlayer
- lua_pushnil lua
- lua_pushstring lua
Calls and jumps by a bare address, from tables/calls.tsv.