Script::GetCraftSpellFocus
function · ui · primitive
- Address
0x4f78b0· 474 bytes, up to0x4f7a89- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the focus and tool names of a craft row with whether they are present
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- tradeskill/craft#spell-focus-and-description
Finding: Spell focus and description in tradeskill: craft
GetCraftSpellFocus (0x4f78b0) returns the same flat list as GetTradeSkillTools of bindings: the spell focus object with the constant flag 1, then each totem item with a cached template and the flag 1 or nil, with the callback 0x4f7710; it returns twice the pair count. GetCraftDescription (0x4f7a90) returns the description of the spell (+0x228) with its dollar tokens expanded
when it is not empty. When it is empty, it uses the description of the first learned spell of a learn effect (36 or 57) and, with none, returns nil. The expansion takes the pet flag from the craft type for the spell itself and from the effect for the learned spell.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 12
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- FindInventoryItemByEntry objectlayer
- lua_checkstack lua
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.