benilla-re systems structs docs

GetTradeSkillSelectionRow

function · ui · primitive

Address
0x4fc9e0 · 54 bytes, up to 0x4fca15
Meaning
Returns the row of the selected profession spell, or -1
Confidence
verified, proof one
Finding
tradeskill/recipes#open-close-and-selection

Finding: Open, close and selection in tradeskill: recipes

0x4fc910 opens a window for a skill line. It cancels the pending requests first. The line that is already open closes the window with TRADE_SKILL_CLOSE. A line with a SkillLine row is stored; when it differs from the last built line, the three masks, the slot bits and the selection reset. The build runs with flag 1 and TRADE_SKILL_SHOW follows when the full count is above 0. 0x4fc870 closes: it stores 0 in the line, clears the repeat latch and raises TRADE_SKILL_CLOSE. Selecting a row (0x4fc9b0) stores its spell id, or 0 for a header row or an index out of range; 0x4fc9e0 returns the index of the selected spell among all rows, or -1.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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