Marketplace›Dofus Touch›Router Automatic script dispatcher

Dofus Touch scriptQuests and achievementsFree

Router Automatic script dispatcher

by Maspa 47 downloads

Router Automatic script dispatcher — Dofus Touch script

Description

The missing link between the Controller and your scripts

The Router is a small single entry-point script that decides, for you, which script to launch on an account depending on its progress in the game.

The Controller knows whether an account is connected or whether a script is running, but it has no access to a bot's API methods (Quests, for example). The Router, on the other hand, runs on the account: it reads the character's actual progress, then launches the right script. It is the piece that makes it possible to chain several scripts without ever touching an account by hand.

100% free, because it is essential to the automatic operation of Run Kamas Astrub. But it is not tied to any one script in particular: it adapts to any pair of scripts.

What it does

  1. It requests the character's quest list and waits for it to load.
  2. It examines a “pivot” quest shared by your two scripts (the one that marks the switch from one to the other).
  3. It launches the appropriate script using its exact name, then exits.

The decision logic

Pivot quest statusScript launched
Quest already completedMain script
Quest not yet receivedStarting script
Active quest at the transition stepMain script
Active quest, with an objective from the “main part” list still to be doneMain script
All other casesStarting script

The test covers both the step and the remaining objectives. A quest shared between two scripts therefore doesn't fool it.

The 4 cases covered

  • Brand-new account (reroll): Router → starting script.
  • End of the starting script: the bot becomes idle → the Controller relaunches the Router → main script.
  • Main script crash: Controller → Router → main script, which picks up where it left off.
  • Starting script crash: Controller → Router → starting script.

Strengths

  • No manual intervention between two scripts.
  • Stateless: you can relaunch it as many times as needed without any risk.
  • Clear logs, prefixed with [ROUTER], that indicate which script was chosen.
  • Settings at the top of the file, which you can change in a few seconds.
  • Comes preconfigured for Run Kamas Astrub.

Instructions

Installation

  1. Subscribe to add the script to your library.
  2. Check the script's exact name in your library. It must be identical (spelling and capitalization) to the SCRIPT_ROUTER constant of the Controller (default value: router).
  3. Open the parameter block at the top of the script and fill in the names of your two scripts (see the table below).
  4. In normal use, do not launch it by hand: the Controller launches it on each idle account. For a test, select the character in the Bot tab, choose the Router, then launch it.

Starting point

  • No map required: the Router does not perform any movement.
  • The account must be connected and in game, preferably out of combat, with no other script running.
  • Both target scripts must exist in your library, with the name you specify.

Parameters

ParameterDefault valueRole
SCRIPT_TUTOtutorielExact name of the script to launch before the main part (start, tutorial, leveling up…).
SCRIPT_MAINName of Run Kamas Astrub in your libraryExact name of the main script.
QUETE_COMMUNE4282ID of the “pivot” quest present in both phases.
STEP_MAIN4964ID of the step of this quest from which the main script takes over.
OBJECTIFS_MAIN14024, 14048, 14040Objectives of this step handled by the main script (safety net).

The default values of the last three parameters correspond to Run Kamas Astrub. If you keep them, there is nothing to change.

Using it with another script

The Router works with any pair of scripts (for example a leveling script, then a farming script).

  1. Choose a quest that exists in both phases and that marks the boundary between them.
  2. Fill in QUETE_COMMUNE, STEP_MAIN and OBJECTIFS_MAIN.
  3. Fill in SCRIPT_TUTO and SCRIPT_MAIN with the exact names of your scripts.

Tips

Run a first test by hand on a single account and read the console: the Router displays [ROUTER] Tutoriel termine -> lancement de '…' or [ROUTER] Tutoriel non termine -> lancement de '…'. Check that the name displayed is indeed the name of your script.

  • A misspelled script name is the #1 cause of failure: copy and paste it from your library.
  • If you rename a script, update the corresponding constant in the Router (and SCRIPT_ROUTER in the Controller for the Router itself).
  • The Router runs only once, then exits: it is normal that it doesn't “run” continuously.

The detailed settings and the script itself are in the app, once the script is in your library.

What’s new

  • Version 2026.10.24October 24, 2026

    fix

  • Version 2026.10.23.3October 23, 2026
    • correction changement alias
  • Version 2026.10.23.2October 23, 2026

    Le compte prend l’alias Tutoriel ou Main Script selon le script lancé (ALIAS_TUTO, ALIAS_MAIN).

  • Version 2026.10.23October 23, 2026

    logs: pourquoi une configuration n’a pas été chargée (introuvable, en double).
    logs: pourquoi executeScript a été refusé.
    Attend après le lancement du script suivant pour ne pas s’arrêter trop tard tout seul.

This script runs in MoonBot, the cloud Dofus Touch bot: nothing to install, your accounts play on our servers.

From the same creator

More Dofus Touch scripts

All Dofus Touch scripts →