CGPlayer_C::FindSkillIndex
function · objectlayer · primitive
- Address
0x5ea3f0· 112 bytes, up to0x5ea45f- Signature
int32_t __thiscall (CGPlayer_C *this, uint32_t skill)- Meaning
- Returns the index of a skill id among the 128 entries, or −1
- Confidence
- verified, proof one
- Finding
- objectlayer/playercombat#skills
Finding: Skills in objectlayer: player spells and combat
The 128 skill entries at [+0xe68]+0x848, 12 bytes each, hold an id, the value and max, and a
temporary and a permanent bonus. 0x5ea3f0 finds an id's index; 0x5ea460 returns the base
(value plus permanent bonus when the value is above 0) and the temporary bonus; 0x5ea520
their sum, 0 when negative. Slot 42, 0x5ea690, gives a spell's skill: the total of the skill line
of the spell 0x5ea5d0 substitutes, capped at five times the spell's max level +0x6c.
The derivation is in the doc.
Callers 13
- ValidateSpellItemTarget ui
- StageSkillUp ui
- UnstageSkillUp ui
- Script::GetSkillLineInfo ui
- Script::BuySkillTier ui
- Script::GetCraftDisplaySkillLine ui
- BuildTradeSkillList ui
- Script::GetTradeSkillLine ui
- CGTooltip::BuildItem ui
- CGPlayer_C::GetSkillValues objectlayer
- CGPlayer_C::GetSkillTotal objectlayer
- CGPlayer_C::CanUseItem objectlayer
- CGPlayer_C::HasRecordSkill objectlayer
Callees 1
- ClntObjMgrGetActivePlayer objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.