benilla-re systems structs docs

HandleSetSpellModifierPacket

function · spell · primitive

Address
0x6e9950 · 123 bytes, up to 0x6e99ca
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Stores a flat or percent talent modifier cell from SMSG_SET_FLAT or SMSG_SET_PCT_SPELL_MODIFIER
Confidence
verified, proof one
Name from
the community database (idb)
Finding
spell/records#talent-modifier-tables

Finding: Talent modifier tables in spell: records

HandleSetSpellModifierPacket (0x6e9950) reads a byte b, a byte op and an int32_t v, and stores v at index b·29 + op of the percent table 0xcecb30 for opcode 0x267, of the flat table 0xcead60 for any other, replacing what was there; then it calls 0x4d7d40 and returns 1. Neither byte is checked: an index past 1855 writes beyond the table, up to 255·29 + 255. A short packet leaves the unread fields as they were on the stack. 0x6e6ca0(class) copies the ChrClasses record's +0x3c to the class family 0xcecaac and leaves it unchanged for no record.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.