jelsea wrote:I noticed a minor very rare bug. It seems that if a mob is at 0% life its not actually dead, it will continue to attack you, but the script will not fight back because it keeps seeing the mob at 0% life.
i try this for mob check in my own and bloodmage bot and it works 100% of time when i look hows the bot running.
Replace this:
if (strcomp(name,GetTargetName)= 1 or strcomp(name,GetTargetName)= -1 ) then
log.debuglog " mob names are not the same "
MobDead = 1
end if
with this:
if (getTargetHealth = 0 or getTargetId = 0 or strcomp(name,GetTargetName)= -1) then
log.debuglog " Mob DEATH "
MobDead = 1
VGSEndtext "%1" ' Alt Hot Bar 1 Loot macro
Sleep 200
Exit do
end if