benilla-re systems structs docs

s_weaponSkillSpells

global · objectlayer

Address
0xc4d730 · 12 bytes, up to 0xc4d73b
Type
uint32_t[3]
Meaning
Holds the weapon-subclass spell table: capacity, count and data
Confidence
verified, proof one
Finding
objectlayer/playercombat#weapon-skills

Finding: Weapon skills in objectlayer: player spells and combat

At world entry 0x5e2ca0 builds, from Spell.dbc, a table from weapon subclass to a spell, and the spell 0xc4d688. It walks the spells from the last to the first; among those with Attributes 0x40, the first with effect 0x1a becomes 0xc4d688, and each with class 2 and a single subclass bit writes its id for that subclass, so the lowest id wins. 0x5ed9d0(hand) gives a hand's weapon spell, the unarmed one (0x53f8a0) for no weapon. Slots 43 and 44 return the skill values of 0xc4d688's line and of a hand's weapon spell; 0x5edae0 the ranged weapon's.

The derivation is in the doc.