Script::TurnInGuildCharter
function · ui · orchestration
- Address
0x4f52d0· 41 bytes, up to0x4f52f8- Signature
int __fastcall (lua_State *L)- Meaning
- Starts the charter turn-in for the active player and returns nothing
- 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 3
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGPlayer_C::TurnInPetition objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.