benilla-re systems structs docs

ValidateGuildName

function · unassigned · orchestration

Address
0x6c9b70 · 61 bytes, up to 0x6c9bac
Signature
uint32_t __fastcall (int32_t locale, const char *name)
Meaning
Validates a guild name: a space is the extra character, both profanity lists are on, code 2 over 24 units
Confidence
verified, proof one
Finding
ui/petition#guild-name-check

Finding: Guild name check in ui: guild charters and petitions

0x4f5160(name) returns 1 only for a name the checker 0x6c9b70 accepts (code 13). Every other code shows a message and returns 0: 0 ERR_GUILD_ENTER_NAME, 1 ERR_GUILD_NAME_TOO_SHORT, 4 ERR_GUILD_NAME_MIXED_LANGUAGES, 5 ERR_GUILD_NAME_PROFANE, 6 ERR_GUILD_NAME_RESERVED, 10 ERR_GUILD_NAME_INVALID_SPACE, 11 ERR_GUILD_NAME_NAME_CONSECUTIVE_SPACES, and 2, 3, 7, 8, 9 or above 11 ERR_GUILD_NAME_INVALID. The checker runs the validator 0x6c96c0 with the locale index, a space as the one extra character, the NamesProfanity and ChatProfanity lists on and NamesReserved off, so a list hit is code 6. It turns an accept of more than 24 UTF-16 units into code 2. A space is accepted in the middle only: first or last gives 10, after a space 11.

The derivation is in the doc.

Callers 1

Callees 1

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