GetTrainerGroupKey
function · ui · primitive
- Address
0x4d7c60· 217 bytes, up to0x4d7d38- Signature
uint32_t __fastcall (int32_t spellId)- Meaning
- Returns the skill line the spell a service teaches belongs to, or 0
- Confidence
- verified, proof one
- Finding
- ui/trainer#group-keys
Finding: Group keys in ui: the trainer window
The group key of a row says which header it sits under. At trainer type 2 it is 1 when the taught spell has a skill-step
effect (effect 0x2c) and 2 otherwise, so a row is never dropped. At type 1 a row in state 2 gets -1, the pre-made known
group. Every other row gets the skill line of the ability it teaches, found through the taught spell's learn effect (0x24,
or 0x39 through the pet) and the skill-line ability table by race and class; a row with no such line has key 0 and is
dropped. Header labels: type 2 resolves TRADESKILL_SERVICE_STEP and TRADESKILL_SERVICE_LEARN, group -1
KNOWN_TALENTS_HEADER, the rest the skill line's display name.
The derivation is in the doc.
Callers 1
Callees 3
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGUnit_C::GetSpellSkillLine objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.