benilla-re systems structs docs

Script::CloseGuildRegistrar

function · ui · orchestration

Address
0x4f5220 · 8 bytes, up to 0x4f5227
Signature
int __fastcall (lua_State *L)
Meaning
Closes the guild registrar window and returns nothing
Confidence
verified, proof one
Name from
the community database (idb)
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 0

None by a direct call or jump.

Callees 1

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