GetTrainerServiceStateName
function · ui · primitive
- Address
0x4d8ba0· 62 bytes, up to0x4d8bdd- Signature
char * __fastcall (uint32_t index)- Meaning
- Returns available, unavailable, used or header for a row
- Confidence
- verified, proof one
- Finding
- ui/trainer#service-records
Finding: Service records in ui: the trainer window
A service record is 0x38 bytes. The server's fields are copied in; the window adds the group key, the state it derives and the visible flag.
| offset | field |
|---|---|
| +0x00 | the taught spell's id as sent (a group header holds -1) |
| +0x04 | the group key |
| +0x08 | money cost, copper |
| +0x0c, +0x10 | the two character-point costs |
| +0x14 | required level (u8) |
| +0x18, +0x1c | required skill line and required skill value |
| +0x20 | always 0 |
| +0x24, +0x28, +0x2c | required ability spell ids; 0 for unused |
| +0x30 | state (u8): 0 available, 1 unavailable, 2 used, 3 only for a type 1 trainer |
| +0x34 | visible flag |
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.