Help with Netheal
Hello
I'm playing on peq, with the UF Maudigan MQ2 release....And i'm quite a macro newbie
I'm trying to enhance an old HealBot macro found a mq2 forum.
It basically have your healer target a fixed list of characters, and if their HP is below 70%, heal them.
The drawback is that it has your healer target every memeber every seconds, and it makes me crazy
So i'm trying to plug the macro with NetHeal to check my toons hp without targeting them.
I have something like that
Macro
So here is my prob.Sometimes my toon2 or toon3 or toon4 are not loaded, or not in the zone.
As soon as the macro try to parse (${NetHeal[dead_or_missing_toon].PctHPs}<70)
it catches a NULL, and seems like it behaves as if NULL<70 (it goes into the :healtoon part. So well my macro is looping
My question is, how can you trap a regular expression for a NULL return, and check that NULL return ?
something like (and this exemple doesn't work, i tried it) :
/if (${NetHeal[toon2].PctHPs}<70) && (${NetHeal[toon2].ID}.NotEqual[NULL]
thanks !
Sun May 08, 2011 4:55 am
Fast reply from my phone.
Use netbots to check if in zone first. I would assume your heal routine is making a range check.
If in zone I would skip the /target and instead /call healroutine NetBots[toon].ID
_________________
Sorvani
Use netbots to check if in zone first. I would assume your heal routine is making a range check.
If in zone I would skip the /target and instead /call healroutine NetBots[toon].ID
_________________
Sorvani
Sun May 08, 2011 7:37 am
Senior Project Member
thanks, i found what i wanted
/if (${NetBots[Blumblum].Name.Equal[NULL]})
it catches the NULL perfectly, somehow i didn't manage to do it with NETHEAL (or maybe i had a wrong syntax)
I noted your point with checking the toon range, it's a good point, i'll check the TLO to see which one can give me the information (damned wiki, it's not that easy to find information & examples)
thanks !
/if (${NetBots[Blumblum].Name.Equal[NULL]})
it catches the NULL perfectly, somehow i didn't manage to do it with NETHEAL (or maybe i had a wrong syntax)
I noted your point with checking the toon range, it's a good point, i'll check the TLO to see which one can give me the information (damned wiki, it's not that easy to find information & examples)
thanks !
Sun May 08, 2011 9:12 am
This is how you check distance for a spell.
Here is a simple loop to loop through netbots.
_________________
Sorvani
Macro
Here is a simple loop to loop through netbots.
Macro
_________________
Sorvani
Sun May 08, 2011 9:47 am
Senior Project Member
wow, this is way ahead of what i'm able to code myself for the moment
thanks sorvani, i'll use that
thanks sorvani, i'll use that
Sun May 08, 2011 10:39 am
I try to avoid loops as much as possible in my macros
This will target the character with the lowest HP% as long as they're below 30%
Macro
This will target the character with the lowest HP% as long as they're below 30%
Sat May 28, 2011 3:21 pm
How would it get set up to array the class? I would like to set this up but exclude class warrior.
My thinking is i could declare the classes and then filter that way using in the same for loop:
Macro
My thinking is i could declare the classes and then filter that way using in the same for loop:
Macro
Fri May 24, 2013 6:32 am
Listen to This Guy