A bot can reach Dofus in two ways. In Full socket mode, it signs in and plays on its own, with no game client. In MITM mode, short for man-in-the-middle, it joins the session of a Dofus client that you play.
Full socket mode
The bot does by itself what a Dofus client would do. Asterobot signs in to Ankama with an Ankama account you stored in Account Manager, picks a game server and opens the connection to it. Then a package takes over: it identifies the bot on the game server, enters the game with a character and plays.
Nobody needs to sit at the computer and no Dofus window is open. That's what makes Full socket mode the one for bots that run without you, including several accounts at once on one computer.
The catch is that package. Asterobot doesn't identify a bot on the game server by itself, so a Full socket bot needs a connection script to get into the game.
Note
Coming soon. Ready-made connection scripts are on their way. Until then, Full socket mode explains how to get a bot in with a script of your own.
MITM mode
You start Dofus from the Ankama Launcher and sign in as usual, and Asterobot sits in the middle, between your game and Ankama's servers, passing everything along in both directions. The bot that receives your session sees all of it. A package running on that bot can react to what happens, send messages of its own, and even change or block messages on their way.
To route your game through it, Asterobot edits one line in a file of your Dofus folder, and puts that line back once no bot is waiting for a game any more, or when Asterobot stops. You never give Asterobot your Ankama login or password: you sign in yourself, in the game, like any other day.
Side by side
| Full socket | MITM | |
|---|---|---|
| Ankama account stored in Asterobot | Yes | No |
| Dofus client | Not needed | Needed, installed with the Ankama Launcher |
| Who plays | A package | You, with a package if you want one |
| Package needed to enter the game | Yes, a connection script | No |
| Accounts with Ankama Shield or two-factor authentication | Not supported | Supported, since you sign in yourself |
| Several bots | One Ankama account per bot | One Dofus client per bot |
| Game version downloaded by Asterobot | Needed | Needed, and it must be the same version as your Dofus |
One bot, both ways
A bot doesn't belong to a mode. The mode is what the bot does when you bring it online, and the only thing that limits it is whether the bot has an Ankama account:
- A bot with an Ankama account offers both Connect, which signs it in on its own, and Start waiting, which makes it wait for your game.
- A bot without an account can only wait for your game. Connect stays greyed out, and its tooltip says "This bot has no Ankama account to sign in with."
A bot can't do both at the same time, though. An Ankama account has one game session at a time, so a bot has to be disconnected before it switches from one mode to the other.
Which one to choose
MITM mode is the easiest place to start. There's nothing to store and no connection script to find, which is why Your first bot uses it. It's also the mode for watching or extending the game you're playing, and the only one that works with an account protected by Ankama Shield or two-factor authentication.
Full socket mode is for bots that play without you: no Dofus window, nobody at the keyboard, and as many Ankama accounts as you run bots. Pick it once you have a connection script for your bots.
Where to go next
- Full socket mode sets up a bot that signs in on its own.
- MITM mode explains everything about relaying the game you play.
- Requirements lists what each mode needs on your computer.