spell ref type

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

anon_coward
a lesser mummy
a lesser mummy
Posts: 40
Joined: Wed Mar 24, 2004 11:11 pm

spell ref type

Post by anon_coward » Thu Jul 10, 2008 2:08 pm

I'm trying to improve spell selection in my macro. However the spell reference type does not provide a way to access the damage data (or any other slot1, slot2, etc data). Can the "spell" type be extended to give access to that?

I assume that data already exists internally to support buff stacking checks.

anon_coward
a lesser mummy
a lesser mummy
Posts: 40
Joined: Wed Mar 24, 2004 11:11 pm

Post by anon_coward » Thu Jul 10, 2008 7:09 pm

I looked at the Lucy raw data and for simple DD spells, the damage is in the "base1" field. Then in EQData.h I found the spell struct and the there is a Base[0] field there.

For now I'll just add and entry to the MQ2SpellType in the MQ2DataTypes to expose this as Spell.Damage. Unfortunately for DoT and other spells, this field gets reused with different meaning so for those spell.Damage will be wrong, but it should work for what I need now.

xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: spell ref type

Post by xyilla » Fri Aug 29, 2025 1:10 pm


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: spell ref type

Post by xyilla » Fri Aug 29, 2025 1:11 pm