benilla-re systems structs docs

Script::CollapseCraftSkillLine

function · ui · primitive

Address
0x4f7c10 · 124 bytes, up to 0x4f7c8b
Signature
int __fastcall (lua_State *L)
Meaning
Collapses a craft group, or all of them
Confidence
verified, proof one
Name from
the community database (idb)
Finding
tradeskill/craft#collapse-and-cast

Finding: Collapse and cast in tradeskill: craft

CollapseCraftSkillLine (0x4f7c10) and ExpandCraftSkillLine (0x4f7c90) take the index of a header row. An index of 0 or below collapses or expands every group by setting the collapse mask 0x84d0f0 to 0 or to all ones. Otherwise the row must be a header row, and its group's bit is cleared or set; any other row raises Bad skill line in CollapseCraftSkillLine or Bad skill line in ExpandCraftSkillLine. A clear bit means the group is collapsed. Each change re-sorts the list and raises CRAFT_UPDATE. DoCraft (0x4f7d10) casts the spell of the row once with the active player as caster, with no repeat and no check of the row type.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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