benilla-re systems structs docs

GetCharterCost

function · ui · orchestration

Address
0x4f5040 · 6 bytes, up to 0x4f5045
Signature
uint32_t __cdecl ()
Meaning
Returns the cost of the first charter in the vendor list
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 0

None by a direct call or jump.

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