benilla-re systems structs docs

GetTrainerServiceStateName

function · ui · primitive

Address
0x4d8ba0 · 62 bytes, up to 0x4d8bdd
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.

offsetfield
+0x00the taught spell's id as sent (a group header holds -1)
+0x04the group key
+0x08money cost, copper
+0x0c, +0x10the two character-point costs
+0x14required level (u8)
+0x18, +0x1crequired skill line and required skill value
+0x20always 0
+0x24, +0x28, +0x2crequired ability spell ids; 0 for unused
+0x30state (u8): 0 available, 1 unavailable, 2 used, 3 only for a type 1 trainer
+0x34visible 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.