CGPlayer_C::UnlearnSpell
function · objectlayer · primitive
- Address
0x5e9fe0· 730 bytes, up to0x5ea2b9- Signature
void __thiscall (CGPlayer_C *this, uint32_t spell, uint32_t silent)- Meaning
- Removes a spell from its skill line and tab and shows the unlearned message unless silent
- Confidence
- verified, proof one
- Finding
- objectlayer/playercombat#unlearning-a-spell
Finding: Unlearning a spell in objectlayer: player spells and combat
0x5e9fe0(spell, silent) removes a spell from its skill line's node and from its tab's array,
compacting each. A spell without Attributes 0x20 and with no tab above 0 shows
ERR_SPELL_UNLEARNED_S unless silent or its Attributes byte has 0x80. Then it calls
0x4b2c50(spell, 0) and 0x4e5e20(spell), without silent also 0x4d7d40 and 0x4f2f10, clears
0xc4d770 when it held the spell, and calls 0x494df0 when 0x494e10() returns it.
The derivation is in the doc.
Callers 2
- HandlePlayerNotice objectlayer
- ReadSupercededSpell objectlayer
Callees 15
- 0x4368c0 unassigned
- SysMsgPrintf sysmsg
- GrowableArrayChunk glue
- RoundUpToChunk glue
- ClearCursorIfSpell ui
- GetCursorSpell ui
- CGGameUI::DisplayError ui
- 0x4b2c50 ui
- ReevaluateTrainerStates ui
- ClearSpellSlots ui
- RefreshSpellBook ui
- BuildCraftList ui
- BuildTradeSkillList ui
- TradeSkillNodeLink objectlayer
- FindSkillLineAbility spell
Calls and jumps by a bare address, from tables/calls.tsv.