I was just about to test this but the servers are coming down, and I need help with a line of code. Here is my macro right now:
So, the part I am having trouble with is identifying the logic of when to start and stop the loop. I'm thinking if the target's target (the target ill always be the Main tank) is an npc and the target (again, main tank) is in combat, then do my heal macro (it just spams all my multi bind heal keys).
I don't know how to check the target's target.
Code:
Sub Main
/echo Auto Slow and Heal- type /end to quit
/assist tank
/attack on
/pet attack
/if (${SpawnCount[npc radius 50 zradius 10]}>1 && ${SpawnCount[npc radius 50 zradius 10]}<4)
{
/if (${Me.AltAbilityReady[952]})
{
/alt activate 952
/delay 30
}
/alt activate 856
/delay 10
}
/if (${SpawnCount[npc radius 50 zradius 10]}>3)
{
/if (${Me.AltAbilityReady[952]})
{
/alt activate 952
/delay 30
}
/cast 8
/delay 10
}
/if (${SpawnCount[npc radius 50 zradius 10]}=1)
{
/alt activate 148
/delay 30
/cast 7
/delay 10
}
/if (${Target.Named})
{
/alt activate 1270
/delay 10
}
/target tank
:loop
if (target's target is a npc and target is in combat)
{
/keypress 1
/delay 2
/doevents
/goto :loop
}
/return
So, the part I am having trouble with is identifying the logic of when to start and stop the loop. I'm thinking if the target's target (the target ill always be the Main tank) is an npc and the target (again, main tank) is in combat, then do my heal macro (it just spams all my multi bind heal keys).
I don't know how to check the target's target.