benilla-re systems structs docs

Script::BuyGuildCharter

function · ui · orchestration

Address
0x4f5260 · 105 bytes, up to 0x4f52c8
Signature
int __fastcall (lua_State *L)
Meaning
Buys a charter for a guild name and returns 1 when the name is valid, else nil
Confidence
verified, proof one
Name from
the community database (idb)
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 0

None by a direct call or jump.

Callees 7

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