Moderator: MacroQuest Developers

Code: Select all
/target id ${MobID}
[color=red]/delay X[/color]
/echo ${Target.PctHPs}Code: Select all
/target ${NearestSpawn[NPC]}
/doevents
/delay 2
/if (${Target.PctHPs}==100) {
|Attack the mob...
}Code: Select all
/delay 2

It may be enough for my DSL connection but probably not enough for reliability. Now I know what is going on, I will rewrite the macro so that the mob gets targeted much sooner and the PctHPs test occurs right before I attack the mob with a delay of at least a second or two in between.Magoo wrote:That is only .2 seconds right?, not sure what your ping is, but on dial up mine is a bit higher then that.Code: Select all
/delay 2

Code: Select all
/target clear
/delay 200s !${Target.ID}
/target ${NearestSpawn[NPC]}
/doevents
/delay 200s ${Target.ID}
/if (${Target.PctHPs}==100) {
|Attack the mob...
}