Skip to main content

Enums & Constants

TeamEnum (Target types for addSpell)


TacticEnum (playTurn tactic)


BreedEnum (Character class IDs)


Default Attack Spells by Breed


DirectionEnum


StatEnum


Entity Model (Fight Entity Object)

Returned by fightAction:getAllEntities() and fightSlave:entity().

Error Codes (canCastSpellOnCell / canCastSpellOnCellAfterMove)

Specific error code meanings are not documented in the binary. Test with canCastSpellOnCell and check the return value.

Lua Callbacks

When Tactic is set to AdvancedInScript, the bot calls these Lua functions:

fightManagementPosition(challengers, defenders)

Called once at fight start during the placement phase.

fightManagement()

Called each turn when it’s any entity’s turn (including enemies/summons). You must check isItMyTurn().

Complete Examples

Example 1: Generic Melee Fighter (any breed)


Example 2: Ranged Cra with Kiting


Example 3: Eniripsa Healer + Summon Control


Example 4: Using fightBasic for Simple AI


Example 5: Anti-Ban Delays Pattern


Sous-pages

Combat basique

Méthodes de combat basiques : playTurn, setFightSpeed et fonctions principales.

Actions de combat

Lancement de sorts, déplacement, pathfinding et gestion des entités.

Personnage de combat

Stats et informations du personnage en combat.

Debug de combat

Débogage et journalisation des informations de combat.

Défis de combat

Gestion des défis de combat.