Moderator: MacroQuest Developers

Code: Select all
:me_stunned
/if ( ${castReturn.Equal[CAST_STUNNED]} ) {
/if ( ${Me.Stunned} ) {
/delay 2 !${Me.Stunned}
/goto :me_stunned
} else {
/delay 7
}
/goto :cast_spell_loop
}Code: Select all
/doevent Stunned
Sub Event_Stunned
/if ( ${Defined[castReturn]} ) /varset castReturn CAST_STUNNED
:Stunned
/if ( ${Me.Stunned} ) {
/delay 2
/goto :Stunned
}
/return
Code: Select all
/if ( ${castReturn.Equal[CAST_STUNNED]} ) {
/if ( ${Me.Stunned} ) {
/delay 3s !${Me.Stunned}
} else {
/delay 7
}
/goto :cast_spell_loop
}

Code: Select all
/if (${String[${castReturn}].Equal[CAST_RESISTED]}) {Code: Select all
/if (${String[${Macro.Return}].Equal[CAST_RESISTED]}) {

Code: Select all
Sub Event_Resisted
/return CAST_RESISTED Code: Select all
Sub Event_Resisted
/if ( ${Defined[castReturn]} ) /varset castReturn CAST_RESISTED
/return Code: Select all
/return ${castReturn}
Would this work for what you want to do/detect?Rusty~ wrote:...now since i used stunned for silence too, if you're not stunned but it gets the stun return, then it just waits .7 seconds and tries again.... i dont think theres any way to tell if you're silenced without checkin for every type of silence buff which would be way too much work.
Code: Select all
#event Silenced "#*#You *CANNOT* cast spells, you have been silenced!#*#"