How to: Healing Yourself With The Bot (Examples)

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)

Moderators: lisa, rock5

Message
Author
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

How to: Healing Yourself With The Bot (Examples)

#1 Post by d003232 » Mon Jul 06, 2009 6:54 am

Here I try to describe, how you can best heal yourself with the bot.

There are three different ways to heal and and to cast your heal spells:
  • using healing potions
  • healing casts if you are under a common HP level
  • special healing cast, if you are under special HP levels
  • Emergency healing in the '<onSkillCast>' event

1. Healing With Potions

You define in your profile *charname*.xml a 'using potion' level under the options. If your health points are below that level, the bot will use the potions hotkey to consume a potion.

Code: Select all

    <option name="HP_LOW_POTION" value="30" />
Define the hotkey of the action button, on which your potions are in the hotkeys section:

Code: Select all

    <hotkey name="HP_POTION" key="VK_H" modifier="" />
2. Healing With Common Healing Casts

You define a low health point level in your profile. If you are below that HP level, the bot will cast all healing cast in your profile, that don't have any restrictions. Be carefull. If you define more than one common healing cast in your profile, the bot will cast all of them, as long as you are under the defined level. Don't forget to check the 'selfcast' option ingame!

If your charakter has a dot healing cast, like priests 'regenerate' it is recommended to define the low HP level very high, so you cast the regenerate very early in the fight.

Example:

Code: Select all

<option name="HP_LOW" value ="95" />
in your *charname*.xml to cast regenerate, if you are below 95% HP and define the skill in the skill section:

Code: Select all

<skill name="PRIEST_REGENERATE" hotkey ="VK_4" modifier="" />
also in your *charname*.xml file.

And check the option 'selfcast' in the interface options ingame.


3. Healing Casts With Restrictions

You can also define healing casts dependent of your HP level and dependent of your combat flag.

There are two options for your skills. You define them also in your *charname*xml profile.:

'hpper' (your hp value in percent)
The cast will only be used, if your health points in percent are below that level.

'inbattle' (true/false)
The cast will only be used, if your are in combat or if you are not in combat

Example:
As an priest, you could define a HP value, below that you use 'holy aura' and 'healing casts' to fill up our health points. And you could define a second limit, below that you use 'Soul Source' to fill up the HP at once.

How to do:
You have to add that options to your skills in your profile:

Code: Select all

 <skills>
<skill name="PRIEST_HOLY_AURA" hotkey="VK_R" priority="109"  inbattle="true" hpper="15" />
<skill name="PRIEST_URGENT_HEAL" hotkey="VK_2" priority="105" hpper="15"  />
...
If our HP value falls under 15%, the bot will use 'holy aura' to protect you for 5 sec against all damage (if not on cooldown) and cast urgent healing to fill up the health points.

Code: Select all

<skill name="PRIEST_SOUL_SOURCE" hotkey="VK_Z" priority="110"  inbattle="true" hpper="10" />
If our HP value falls under 10%, the bot will use 'Soul Source' to fill up the HP with one cast. Since that cast has a cooldown from 5 min, it is not usefull to waste it out of combat. So we use the 'inbattle' flag to prevent that.


4. Emergency healing in the '<onSkillCast>' event

The skill from the skill list in the profile are used in 'rounds'. That means in every casting round, the bot checks the whole skill list and will cast all valid skills. That's not the very best solution for emergency skill. Because sometimes it could least a view seconds to long, until the emergency healing skill is on the turn.

What you could do, is to check your HP after every cast, and if HP are below a given level, cast your emergency skills independently from the skill list. For doing that, you have to define that skills within the <onSkillCast> event in your profile:

Code: Select all

<onSkillCast>
	if( 15 > player.HP/player.MaxHP*100 ) then
	    player:cast("PRIEST_SOUL_SOURCE");
	elseif( 24 > player.HP/player.MaxHP*100 ) then
	    player:cast("PRIEST_HOLY_AURA");
	    player:cast("PRIEST_URGENT_HEAL");
	    player:cast("PRIEST_URGENT_HEAL");
	end;
</onSkillCast>
In that example we will cast 'PRIEST_HOLY_AURA' if we are below 24% HP and then two times 'PRIEST_URGENT_HEAL' to fill up our HP bar. If we are below 15% healthpoints we will use 'PRIEST_SOUL_SOURCE'. You have to define that cast in your skill list. Simply because we need a hotkey for the skill. If you don't want to use the skill within a casting round in the skill list, then add the option 'autouse="false"':

Code: Select all

        <skill name="PRIEST_SOUL_SOURCE"      hotkey="VK_Z" priority="110" inbattle="true" autouse="false" />
        <skill name="PRIEST_HOLY_AURA"        hotkey="VK_R" priority="100" inbattle="true" autouse="false" />

=====
FAQ
=====

Can I use the bot to heal other players/bots?

Not really, since there are no functions in the bot to monitor the HP of other players and to target them. What you could do, is to cast a spell after a defined time period independent from the HP level and independet if the player is reachable or not.You have to define ingame a macro that target the player and use the defined cast. In the bot you change/copy that skill in the skills.xml and define that skill as a self buff with a cooldown period. Now the bot will use that skill every xx seconds. Use the ingame follow function to follow the other player.
Last edited by d003232 on Tue Jul 28, 2009 5:45 am, edited 8 times in total.
The RoM Bot Online Wiki needs your help!

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: example: How to heal yourself with the bot

#2 Post by d003232 » Mon Jul 06, 2009 7:07 am

...
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 4861
Joined: Sat Jan 05, 2008 4:21 pm

Re: Example: How to heal yourself with the bot

#3 Post by Administrator » Mon Jul 06, 2009 10:57 am

Another great post, so this is getting stickied. This should hopefully answer all the questions people have about how to set the bot up to use healing spells, and how to modify them.

I still need to get around to working with implementing the system to override all (or at least most) of the skill options from your profile, so people won't need to modify the database/skills.xml (which may get overwrote if they update).
...
Reserved post?

GurdyMan
Posts: 34
Joined: Fri Sep 11, 2009 5:34 pm

Re: How to: Healing Yourself With The Bot (Examples)

#4 Post by GurdyMan » Sun Sep 13, 2009 4:12 am

Code: Select all

		<option name="HP_LOW"        value="65" />
		<option name="HP_LOW_POTION" value="40" />

		<!-- Rest if HP or Mana is below that level -->
		<option name="HP_REST" value="15" />

		<hotkey name="HP_POTION" key="VK_H" />
Here's my potion setup. But it doesn't use the potion hotkeyed to H. Instead it uses Major First Aid Potion at about 30% or less health and it's not even in the quickbar.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: How to: Healing Yourself With The Bot (Examples)

#5 Post by d003232 » Sun Sep 13, 2009 4:20 am

GurdyMan wrote:

Code: Select all

		<option name="HP_LOW"        value="65" />
		<option name="HP_LOW_POTION" value="40" />

		<!-- Rest if HP or Mana is below that level -->
		<option name="HP_REST" value="15" />

		<hotkey name="HP_POTION" key="VK_H" />
Here's my potion setup. But it doesn't use the potion hotkeyed to H. Instead it uses Major First Aid Potion at about 30% or less health and it's not even in the quickbar.
The new Bot verions don't use the

Code: Select all

<hotkey name="HP_POTION" key="VK_H" />
anymore. Instead all potions are used by the

Code: Select all

<hotkey name="MACRO"		key="VK_0" />
You can delete all other hotkeys in your profile. atm the bot use allways the best available postion tiype.

But the Bot still use the

Code: Select all

<option name="HP_LOW_POTION" value="40" />
So I suppose he was just busy with a cast, while you drop from 40% to 30%.
The RoM Bot Online Wiki needs your help!

Sniped007
Posts: 6
Joined: Tue Sep 15, 2009 3:47 pm

Re: How to: Healing Yourself With The Bot (Examples)

#6 Post by Sniped007 » Wed Sep 16, 2009 4:42 pm

I have a warrior/priest character, but he wont use the priest skills. Who can i fix this?


nvm i found out how to do it lol. you just have to put the priest skills under warrior.
Last edited by Sniped007 on Wed Sep 16, 2009 5:39 pm, edited 1 time in total.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: How to: Healing Yourself With The Bot (Examples)

#7 Post by d003232 » Wed Sep 16, 2009 4:50 pm

Sniped007 wrote:I have a warrior/priest character, but he wont use the priest skills. Who can i fix this?
Post your profile pls.
The RoM Bot Online Wiki needs your help!

auliashinta
Posts: 11
Joined: Tue Oct 20, 2009 4:33 am

Re: How to: Healing Yourself With The Bot (Examples)

#8 Post by auliashinta » Sat Oct 31, 2009 6:13 am

Can I use the bot to heal other players/bots?

Not really, since there are no functions in the bot to monitor the HP of other players and to target them.
How about make the bot to heal every time in aggro mode.
So if 1 of my hitter attacking/ed it automatic heal.
But dont know how to script it...

Deus
Posts: 1
Joined: Sun Nov 01, 2009 8:10 am

Re: How to: Healing Yourself With The Bot (Examples)

#9 Post by Deus » Sun Nov 01, 2009 8:23 am

Hey I have only recently discovered this amazing bot. I was attempting to make one in sharp but my skills are only limited making anything I could have made obsolete in comparison. My main question here involves the healing but I'd also like to ask about some Lua code for switching way point files on death if possible.

I have a problem with my Mage / Priest. I am trying to get my Priest to heal herself but it constantly tries to attack with it. I've gone over the profile .xml looking for possible problems a few times over now but I am stumped. I even followed your guide last night but it is still broken. I think it might be possible that she is just casting the skill without targeting herself.


In and out of combat:

Code: Select all

We didn't move to the loot!? Root buff? Missing 'click to move' option?
Use MACRO: Looting target in distance 28.
Clearing target.
Moving to waypoint #20, (-25434, -20467)
Use MACRO: PRIEST_REGENERATE   =>   <UNKNOWN> (1000/1000)
Select new target Highland Sabretooth Tiger in distance 201
Stopping waypoint: Target acquired.
Engaging enemy [Highland Sabretooth Tiger] in combat.
Use 3: PRIEST_RISING_TIDE  =>   Highland Sabretooth Tiger (1961/1961)
Moving in | Suggested range: 200 | Distance: 219
Use 3: PRIEST_RISING_TIDE  =>   Highland Sabretooth Tiger (1416/1961)
Use 3: PRIEST_RISING_TIDE  =>   Highland Sabretooth Tiger (823/1961)
Use MACRO: PRIEST_REGENERATE   =>   Highland Sabretooth Tiger (271/1961)
Use 3: PRIEST_RISING_TIDE  =>   Highland Sabretooth Tiger (0/1961)

User avatar
Administrator
Site Admin
Posts: 4861
Joined: Sat Jan 05, 2008 4:21 pm

Re: How to: Healing Yourself With The Bot (Examples)

#10 Post by Administrator » Sun Nov 01, 2009 11:35 am

Deus wrote:Hey I have only recently discovered this amazing bot. I was attempting to make one in sharp but my skills are only limited making anything I could have made obsolete in comparison. My main question here involves the healing but I'd also like to ask about some Lua code for switching way point files on death if possible.
Use loadPaths() in the onDeath event in your profile.
I have a problem with my Mage / Priest. I am trying to get my Priest to heal herself but it constantly tries to attack with it. I've gone over the profile .xml looking for possible problems a few times over now but I am stumped. I even followed your guide last night but it is still broken. I think it might be possible that she is just casting the skill without targeting herself.
There's a reason that the instructions say to turn self cast on.

Revelation
Posts: 4
Joined: Fri Dec 18, 2009 6:52 pm

Re: How to: Healing Yourself With The Bot (Examples)

#11 Post by Revelation » Tue Dec 22, 2009 5:10 am

I use this setup for my emergency heals...

<onSkillCast>
<skill name="MAGE_ELECTROSTATIC_CHARGE" hotkey="VK_MINUS" priority="140" inbattle="true" hpper="75" />
<skill name="PRIEST_HOLY_AURA" hotkey="VK_5" priority="130" inbattle="true" hpper="50" />

</onSkillCast>


Since the the way the skills are setup, it already has a "built-in" if-then argument.

Hope this helps....

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: How to: Healing Yourself With The Bot (Examples)

#12 Post by d003232 » Mon Dec 28, 2009 2:50 am

Revelation wrote:I use this setup for my emergency heals...

<onSkillCast>
<skill name="MAGE_ELECTROSTATIC_CHARGE" hotkey="VK_MINUS" priority="140" inbattle="true" hpper="75" />
<skill name="PRIEST_HOLY_AURA" hotkey="VK_5" priority="130" inbattle="true" hpper="50" />

</onSkillCast>


Since the the way the skills are setup, it already has a "built-in" if-then argument.

Hope this helps....
That way won't work. You have to insert lua coding in the '<onSkillCast>' event. See the wiki for more informations about how to use the events.
The RoM Bot Online Wiki needs your help!

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

Re: How to: Healing Yourself With The Bot (Examples)

#13 Post by lisa » Sun Nov 14, 2010 8:25 am

d003232 wrote: =====
FAQ
=====

Can I use the bot to heal other players/bots?

Not really, since there are no functions in the bot to monitor the HP of other players and to target them. What you could do, is to cast a spell after a defined time period independent from the HP level and independet if the player is reachable or not.You have to define ingame a macro that target the player and use the defined cast. In the bot you change/copy that skill in the skills.xml and define that skill as a self buff with a cooldown period. Now the bot will use that skill every xx seconds. Use the ingame follow function to follow the other player.

Tried anything like this
Target in game macro of

Code: Select all

/script TargetUnit("player1");
with a bot code like this?

Code: Select all

if ( 50 > target.HP/targetMaxHP*100 ) then
      player:cast("PRIEST_URGENT_HEAL")
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

mrkheaven
Posts: 8
Joined: Mon Aug 01, 2011 7:30 am

Re: How to: Healing Yourself With The Bot (Examples)

#14 Post by mrkheaven » Thu Oct 06, 2011 8:40 am

hey guys,

My bot take's a hp potion as soon as the cool down is finished and its the first thing he dos before entering combat.
This is my healing setup for my rouge


<option name="HP_LOW" value="85" />
<option name="HP_LOW_POTION" value="50" /> <----- What is this anyway?
<option name="USE_HP_POTION" value="best" />
<option name="HP_REST" value="50" />
<hotkey name="HP_POTION" key="VK_9"/>


I"m relay not sure whats wrong and could someone explain what this is doing <option name="HP_LOW_POTION" ?
Thank you for you're time.

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

Re: How to: Healing Yourself With The Bot (Examples)

#15 Post by lisa » Thu Oct 06, 2011 9:08 am

Code: Select all

		<option name="MP_LOW_POTION"		value="50" />
		<option name="HP_LOW_POTION"		value="80" />
that is the % when it should use potions.

so with that when hp is at 80% of your maximum hp it should use a health pot.
same deal for mana but at 50%
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

xplar
Posts: 28
Joined: Thu Sep 08, 2011 2:46 am

Re: How to: Healing Yourself With The Bot (Examples)

#16 Post by xplar » Thu Oct 06, 2011 12:55 pm

Code: Select all

HP_LOW : The percentage of health to use heal skills at
HP_LOW_POTION : The percentage of health to use potions at
your rest and potion are set to the same value, maybe that should be changed? i have mine set to potion at 60 and rest at 50.

mrkheaven
Posts: 8
Joined: Mon Aug 01, 2011 7:30 am

Re: How to: Healing Yourself With The Bot (Examples)

#17 Post by mrkheaven » Fri Oct 14, 2011 5:41 am

thanks for the explanation but its not fixing the problem.
Even if i use a default profile its not working for me.in the default he dos not heal at all.
could someone post a profile with a working heal setup so I can compare or use that?

thank you all very much.

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

Re: How to: Healing Yourself With The Bot (Examples)

#18 Post by lisa » Fri Oct 14, 2011 7:03 am

You are adding the healing skills to the class you bot on right?

Like this for Mage/Priest

Code: Select all

	<skills_mage>
		<skill name="MAGE_ESSENCE_OF_MAGIC" 	  	hotkey="MACRO" priority="30" />
		<skill name="MAGE_FLAME"              	  	hotkey="MACRO" priority="80" />
		<skill name="PRIEST_URGENT_HEAL"   	  		hotkey="MACRO" priority="100" hpper="60"  />
		<skill name="PRIEST_REGENERATE"    	  		hotkey="MACRO" priority="100" hpper="80" />
		<skill name="MAGE_FIREBALL"        	  		hotkey="MACRO" priority="70" />
		<skill name="MAGE_ENERGY_INFLUX" 	  		hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ENERGY_WELL" 		  		hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="PRIEST_HOLY_AURA"     	  		hotkey="MACRO" priority="100" inbattle="true" hpper="24" />
		<skill name="MAGE_ELEMENTAL_CATALYST" 	  	hotkey="MACRO" priority="30" inbattle="true" />
	</skills_mage>
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

mrsmith1986
Posts: 2
Joined: Mon Oct 24, 2011 5:11 am

Re: How to: Healing Yourself With The Bot (Examples)

#19 Post by mrsmith1986 » Mon Oct 24, 2011 1:56 pm

hi all. i want to use the bot for farming of first boss of Origin instance. i have the wp and work correctly, but the unic things i can't find is the how to set the use of phirius potions. i don't know where i must change the settings for this. anyone can help me pls?

p.s. i have used the search, but the post where talk about this tell me: You are not authorised to read this forum. O.o
the post is this: http://www.solarstrike.net/phpBB3/viewt ... =25&t=2751

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

Re: How to: Healing Yourself With The Bot (Examples)

#20 Post by lisa » Mon Oct 24, 2011 7:32 pm

Have a look in the default.xml in profiles folder, it has this

Code: Select all

		<option name="USE_PHIRIUS_POTION"	value="false" /> 		<!-- false | true if you want to use the Phirus Potions -->
		<option name="PHIRIUS_MP_LOW"		value="40" />
		<option name="PHIRIUS_HP_LOW"		value="40" />
If you don't have that in your profile just add it in, obviously change the values, so set it to true. and adjust the % when you want to use the potions
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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests