PartyDPS() modification. Request assistance with Syntax

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Ascendency4
Posts: 11
Joined: Fri Feb 11, 2011 12:26 pm

PartyDPS() modification. Request assistance with Syntax

#1 Post by Ascendency4 » 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.

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
and obviously similar code for my OnPreSkillCast

Code: Select all

if UnitHealth("party1")/UnitMaxHealth("party1") <= .70 then TargetUnit("party1");  keyboardPress(key.VK_6); else AssistUnit("party1")
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. ^_~

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: PartyDPS() modification. Request assistance with Syntax

#2 Post by lisa » Thu Oct 06, 2011 5:30 am

for putting raid icon, just create a macro and put this code in it.

Code: Select all

/script SetRaidTarget("target", 1);
Add the macro to ur actionbar and when you start to attack a mob just hit it once, just like using any other skill.

Unfortunately we need to find 1 more address after the patch so party bot shouldn't actually be working atm. Once that address is found just do this.

Set up the profile of your M/P with all the skills you want it to use, including buffs and heals.

Also add this option

Code: Select all

<option name="HEAL_PARTY"		value="true" />
Doing this will make the "healer" actually attack mobs with icon I.

Now start your M/P with WP partyhealer
It will follow, buff, heal and attack mobs with I icon. Normal attack settings apply, so in profile make sure you set the max and min level differences, set combat distance, everything you would normally set for a char that is killing mobs.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Ascendency4
Posts: 11
Joined: Fri Feb 11, 2011 12:26 pm

Re: PartyDPS() modification. Request assistance with Syntax

#3 Post by Ascendency4 » Thu Oct 06, 2011 6:06 am

thanks lisa i thought i was just having trouble controlling the partybot, good to know its just a addressing error.


but for future reference how would one make a hybrid function between ingame macro script and rombot script such as (but not limited to) functions such as the one in my orginal post there's many uses for it such as a Knight's Holy_Sheild if a party members HP is too low, and now that /cast /useAction Etc are disabled i find im going to be needing to interject keyboardPress(key.VK_X); into allot of places where i previously just called a macro in my rotation to check for such things.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: PartyDPS() modification. Request assistance with Syntax

#4 Post by lisa » Thu Oct 06, 2011 6:58 am

I made the function that creates a table of party members global, so you can call it from your own functions. The way the partyhealer and partydps is set up is that the WP just calls a function. You can do your own similar thing.

Code: Select all

function myknight()
	while(true) do
		PartyTable() -- creates table of party members
		for i,v in ipairs(partymemberpawn) do -- looks at info of party members
			player:target(partymemberpawn[i]) -- targets each party member(includes self)
			player:update() -- updates info
			target = player:getTarget(); -- actually targets the party member
			if 20 > target.HP/target.MaxHP*100 then -- checks hp below 20%
				keyboardPress(key.VK_X) -- presses a key
			end
		end
	end
end
Very crude but you can see what I mean, have a good look at party.lua, I should probably add comments to it to explain what each step does lol
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: PartyDPS() modification. Request assistance with Syntax

#5 Post by nerdyone255 » Thu Oct 06, 2011 10:32 am

lisa wrote:Unfortunately we need to find 1 more address after the patch so party bot shouldn't actually be working atm. Once that address is found just do this.
where are we on finding that address?

anything the community can do to help?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests