Page 1 of 2

How to: Healing Yourself With The Bot (Examples)

Posted: Mon Jul 06, 2009 6:54 am
by d003232
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.

Re: example: How to heal yourself with the bot

Posted: Mon Jul 06, 2009 7:07 am
by d003232
...

Re: Example: How to heal yourself with the bot

Posted: Mon Jul 06, 2009 10:57 am
by Administrator
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?

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

Posted: Sun Sep 13, 2009 4:12 am
by GurdyMan

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.

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

Posted: Sun Sep 13, 2009 4:20 am
by d003232
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%.

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

Posted: Wed Sep 16, 2009 4:42 pm
by Sniped007
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.

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

Posted: Wed Sep 16, 2009 4:50 pm
by d003232
Sniped007 wrote:I have a warrior/priest character, but he wont use the priest skills. Who can i fix this?
Post your profile pls.

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

Posted: Sat Oct 31, 2009 6:13 am
by auliashinta
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...

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

Posted: Sun Nov 01, 2009 8:23 am
by Deus
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)

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

Posted: Sun Nov 01, 2009 11:35 am
by Administrator
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.

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

Posted: Tue Dec 22, 2009 5:10 am
by Revelation
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....

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

Posted: Mon Dec 28, 2009 2:50 am
by d003232
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.

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

Posted: Sun Nov 14, 2010 8:25 am
by lisa
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")

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

Posted: Thu Oct 06, 2011 8:40 am
by mrkheaven
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.

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

Posted: Thu Oct 06, 2011 9:08 am
by lisa

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%

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

Posted: Thu Oct 06, 2011 12:55 pm
by xplar

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.

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

Posted: Fri Oct 14, 2011 5:41 am
by mrkheaven
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.

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

Posted: Fri Oct 14, 2011 7:03 am
by lisa
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>

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

Posted: Mon Oct 24, 2011 1:56 pm
by mrsmith1986
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

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

Posted: Mon Oct 24, 2011 7:32 pm
by lisa
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