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" />
Code: Select all
<hotkey name="HP_POTION" key="VK_H" modifier="" />
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" />
Code: Select all
<skill name="PRIEST_REGENERATE" hotkey ="VK_4" modifier="" />
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" />
...
Code: Select all
<skill name="PRIEST_SOUL_SOURCE" hotkey="VK_Z" priority="110" inbattle="true" hpper="10" />
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>
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.