so i dug around in the Party.xml where the functions to control these two waypoint systems is setup and i successfully automated the partyDPS to simply auto attack anything my main character targeted with a very simple AssistUnit macro added onto its getNameFollow() function
now i would like to setup the GetNameFollow (allso my OnPreSkillCast) to preform a check on party1's HP and if it is under 70% of the units max health throw urgent heal, if the unit is above 70% hp it will UnitAssist and continue battle with whatever target party1 happens to have. this is the crude code i came up with and i knew before i even saved the XML that it wasnt going to work, i was hoping someone with a bit more experienced with a Hybrid RomScript/VK function could help me clean this up.
Code: Select all
function getNameFollow()
while (true) do
if UnitHealth("party1")/UnitMaxHealth("party1") <= .70 then TargetUnit("party1"); keyboardPress(key.VK_6); else AssistUnit("party1"); RoMScript("FollowUnit('party1');");
end
break
end
end
Code: Select all
if UnitHealth("party1")/UnitMaxHealth("party1") <= .70 then TargetUnit("party1"); keyboardPress(key.VK_6); else AssistUnit("party1")
how would i go about resolving this?
Edit: i wouldnt be opposed to the idea if anyone knows how i could have this setup monitor the whole parties hp either, however im content with my Duoing system. ^_~