Documentation › Modules

Healing

Healing heals your character with spells and potions. You build a list of rules, each with an HP% or mana% condition, and the bot uses the first one that matches.

Healing tab with spell and potion rules

How Healing decides#

Rules are read top to bottom. The first enabled rule whose condition matches, and that is not on cooldown, fires. So the right order is:

  1. Emergency heal (the strongest) on top
  2. Normal heal in the middle
  3. Mana potions at the bottom

DrenoxBot reads the character's health before the client draws the bar on screen. The potion can already be on its way to the server while you still see the HP dropping. The same goes when health drops in small steps: the heal goes out as soon as it crosses a rule's value.

The rule table#

ColumnWhat it shows
ActiveTurns the rule on or off without deleting it
ValueSpell or item icon, the name and how many potions you carry (x87)
ConditionThe condition summary, such as HP% <= 40
StatusTurns green when the condition matches right now

When something is missing, such as a potion that ran out, the name turns orange with a warning.

The buttons below: Up, Down, Copy, Delete, Edit and Add. Double-clicking a row also opens the editor.

Quick add#

Above the buttons is a row of icons with the spells you know and the potions you carry. One click opens the editor already filled in.

Creating a rule#

1
Click Add

Or use a Quick add icon.

2
Pick the condition

Under When, choose HP% or MP%. Under Is, choose <= or >= and type a value from 0 to 100.

3
A second condition, if needed

The second field can be HP% or MP%. Choose And (both must match) or Or (either one is enough).

4
Spell or item

Select Spell and type the words (exura med ico), or select Item and type the name (health potion) or the id.

5
Save

Click Add. The rule goes to the end of the list; move it with Up if it matters more.

More options#

Tick More options to see:

  • Name: your own name for the rule
  • Cooldown ms: 0 uses the spell's real cooldown (1 s for items)
  • Lacks state: only while a state is missing, such as haste or manashield
  • Not in PZ: never inside a protection zone
  • Only in combat: only while a monster is being attacked

There are also the state boxes (paralyzed, drunk, rooted, feared, poisoned, burning, bleeding, hungry) and Don't cast if targeting monster.

Examples#

RuleCondition
exura med icoHP <= 50%
supreme health potionHP <= 35%
exura icoHP <= 80% And MP >= 20%
strong mana potionMP <= 30%

The potion sits above exura ico: with low HP it gets the turn.

Vocation rules#

On the first login the bot builds rules for your vocation and level. To redo them at any time, type in the bot's chat:

text
/defaults

Rules for spells you do not have yet stay off until the right level. When you get there, the bot asks once whether to turn them on.

In the file#

Each rule looks like this in bot.json:

json
{
  "Name": "emergency heal",
  "Type": "spell",
  "Spell": "exura vita",
  "HealthBelow": 40,
  "CooldownMs": 1000
}

HealthBelow and ManaBelow trigger the rule. HealthAbove and RequireManaAbove are filters. MatchAll: true is the editor's And.

See also: Heal Friend and Conditions, which use the same editor.