Edit: Also works while being on a horse
Moderator: MacroQuest Developers
Code: Select all
EQLib_MacroParser.cpp
EQLib_MacroParser.cpp(1850) : error C2039: 'DamageAbsorbRemaining' : is not a me
mber of '_SPELLBUFF'
c:\macroquest\EQLib\MQ.h(366) : see declaration of '_SPELLBUFF'
EQLib_MacroParser.cpp(2205) : error C2039: 'DamageAbsorbRemaining' : is not a me
mber of '_SPELLBUFF'
c:\macroquest\EQLib\MQ.h(366) : see declaration of '_SPELLBUFF'
EQLib_MacroParser.cpp(2206) : error C2039: 'DamageAbsorbRemaining' : is not a me
mber of '_SPELLBUFF'
c:\macroquest\EQLib\MQ.h(366) : see declaration of '_SPELLBUFF'
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.Code: Select all
// 6-11-2003 Amadeus
typedef struct _SPELLBUFF {
/*0x00*/ BYTE Unknown0x00;
/*0x01*/ BYTE Level;
/*0x02*/ WORD Unknown0x02;
/*0x04*/ DWORD SpellID;
/*0x08*/ DWORD Duration;
/*0x0c*/ DWORD DamageAbsorbRemaining; // Melee or Spellshield type
} SPELLBUFF, *PSPELLBUFF;
// 5-15-2003 eqmule
I think the syntax is $char(buff,"<spell name>"), at least from what I have seen in other posts.Darkhearted_Wizard wrote:At the moment $char(buff,1) if there's no 1st buff is crashing to desktop with a nice memory read error. I've put in Plazmic's fixes, as well as the structure fix Amadeus posted. using latest CVS(w/ above changes) . Fryfrog is having same problem

$char(buff,xxx) returns the buff slot for a spell name, or 0 if the buff isn't up
$char(buff,#[,xxx]) returns information on a buff slot, or NULL if the slot is empty
If xxx is omitted, the spell name is returned, otherwise, xxx can be: spellid, level, duration (in ticks remaining)