benilla-re systems structs docs

UnregisterSkillFunctions

function · ui · orchestration

Address
0x4d4100 · 24 bytes, up to 0x4d4117
Signature
void __cdecl (void)
Meaning
Unregisters the 13 Lua functions of the skills tab
Confidence
verified, proof one
Finding
tradeskill/overview#lua-function-tables

Finding: Lua function tables in tradeskill: overview

Each file registers its Lua functions from a table of name and handler pairs. TradeSkillFrame.cpp has 26 pairs at 0x84ddd0, registered by 0x500320 and unregistered by 0x500350; CraftInfo.cpp has 19 at 0x84d108 (0x4f7d70 registers, 0x4f7da0 unregisters); SkillInfo.cpp has 13 at 0x849cf8 (0x4d40e0, 0x4d4100). The game interface calls the registrations at 0x4902f6, 0x490319 and 0x490341 and the unregistrations at 0x490d8a, 0x490dad and 0x490dd0. A handler takes the Lua state and returns the count of values it pushed. A handler with arguments tests the first with 0x6f34d0 and, on a miss, pushes its usage string and calls the raising function 0x6f4940.

The derivation is in the doc.

Callers 1

Callees 1

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