PartyDPS() modification. Request assistance with Syntax
Posted: Thu Oct 06, 2011 4:46 am
im presenting playing a W/K manually however im attempting to automate a High DPS M/P with moderate to high heals for a mage (21k Urgent heal) i like the PartyHealer.xml very much however the partyDPS.xml is a pain when playing manually as it is tedious to throw raid markers manually (espessially in groups with non-botters)
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.
and obviously similar code for my OnPreSkillCast
the obvious issue im having is if i place this into RomScript tags it doesnt understand the VK_6 command (which is urgent heal) and if i dont place it into RomScript tags it doesnt reconise the UnitHealth Etc,
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. ^_~
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
endCode: 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. ^_~