benilla-re systems structs docs

CloseGuildRegistrar

function · ui · orchestration

Address
0x4f5010 · 48 bytes, up to 0x4f503f
Signature
void __cdecl ()
Meaning
Clears the registrar target and GUID and signals GUILD_REGISTRAR_CLOSED, doing nothing with no GUID
Confidence
verified, proof one
Finding
ui/petition#closing

Finding: Closing in ui: guild charters and petitions

ClosePetition() is the replace-or-close routine 0x4f3f60 with no petition. When a petition was open, no signature is in flight, a record is cached and the player is not its owner, it sends the decline (opcode 0x1c2) first; it then signals PETITION_CLOSED and clears the record and the latch. CloseGuildRegistrar() does nothing without a registrar GUID; otherwise it clears the interaction target for it, zeroes the GUID and signals GUILD_REGISTRAR_CLOSED. It sends nothing of its own. The target clear (0x4f5024, 0x4931c0) runs the dispatcher 0x493310, which calls the close again while the GUID is still set (the zeroing is 0x4f502b), so GUILD_REGISTRAR_CLOSED fires twice when the NPC is still the interaction target.

The derivation is in the doc.

Callers 4

Callees 2

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