benilla-re systems structs docs

BuyCharter

function · ui · primitive

Address
0x4f5050 · 270 bytes, up to 0x4f515d
Signature
void __thiscall (void *this)
Meaning
Sends a new charter for a guild name to the registrar after the guild and coinage checks
Confidence
verified, proof one
Finding
ui/petition#charter-shop

Finding: Charter shop in ui: guild charters and petitions

GetGuildCharterCost() returns the cost of the first charter in the vendor's list, in copper, as an unsigned number; it is 0 before a list arrives. BuyGuildCharter(name) returns 1 when the name passes the guild name check and nil otherwise, and a non-string raises Usage: BuyGuildCharter(guildName). The purchase itself (0x4f5050) then refuses silently with no name, no registrar or no player, shows ERR_ALREADY_IN_GUILD for a player in a guild and ERR_NOT_ENOUGH_MONEY when the coinage is below the cost; otherwise it sends the petition record with only the name filled in, for the registrar GUID. TurnInGuildCharter() hands the active player to the charter search of objectlayer/party#petitions.

The derivation is in the doc.

Callers 1

Callees 6

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