Hi,
This is my followup from the last thread on the cure sub but it's a different issue so I went ahead and make a new thread. Thank you to all those who helped me in that thread.
Anyway, I have my cure sub as follow, which is called from the health check sub:
Sub Cast_Cure
Repeat
If C In #Charstatus && G Notin #Charstatus && #Mana >= 25 && %Cast_Wait_Timer <= #sCnt2
{
Event macro 15 201 ; cast Chiv spell cleanse by fire
Target 5s
Event macro 23 0 ; target self
Set %Cast_Wait_Timer #sCnt2 + 20
}
Until C Notin #Charstatus || Finditem %KILLS G_8
Return
So the gist of it is that once the char is out of combat and is poisoned, the sub will try to cure repeatedly (especially if it's deadly poison or failed, but I have protection on so the second issue is not a problem). Now, what am trying to do is have the sub exit out when the script scans and finds a mob, which is defined by Finditem %kills G_8 where %kills is the variable where all the mob types are defined. My question is, is the last part written as it is will allow me to exit out of the sub when the mob is found even if my char is not cured?:
Until C Notin #Charstatus || Finditem %KILLS G_8
Return
He's a sampire and I only worry about cure poison (deadly specifically because vampire form doesn't auto cure) when he's out of combat and not leeching health, hence the cure sub and the need to exit out of the cure sub when mob respawns. Thank you for your inputs