On Dofus Touch, leveling a profession or building up a stock of resources takes hours of repetitive gathering with the screen on. A Dofus Touch farming bot takes over that loop: gather, empty the bag at the bank, sell on the Marketplace (HDV), start again. This guide shows how MoonBot does it in the cloud, with a commented Lua script and the settings that matter.
A useful reminder: MoonBot runs on our servers. There is nothing to install on your phone, and the bots keep farming while it is switched off. The details are in our article on the Dofus Touch bot for Android and iPhone.
What the Dofus Touch farming bot does
- Looped gathering. On every map of the route, the bot gathers the resources on your list until there are none left or the bag is full.
- Bank return. Past the pod threshold you set, it heads to the bank, deposits, then picks up the route where it left off.
- Aggro avoidance. The bot knows the aggressive monsters and their zones, and walks around them while gathering.
- Selling and crafting. It sells on the marketplace one kama below the lowest price, never under your price floor, and batch-crafts in the workshops.
Botting on Touch uses the same dashboard and Lua API as MoonBot Retro: the full documentation of all 395 functions is on doc.moon-bot.io.
A gathering route in Lua
A farming script fits in two functions. move() returns the route steps, map by map; bank() is called when the bag is full and returns the path to the marketplace and the bank. Gathering settings go through the config namespace.
-- Gathering settings
local function reglages()
config.setGatherList({ "Bois de Frêne", "Bois de Châtaignier" }) -- resources to gather
config.setHarvestMode("whitelist") -- only the ones on the list
config.setBankThreshold(85) -- bank return at 85% pods
config.setAntiAggro(true) -- avoids aggressive monsters
end
-- Route: example coordinates, replace them with those of your zone
function move()
reglages()
return {
{ map = "1,-20", path = "right", gather = true },
{ map = "2,-20", path = "right", gather = true },
{ map = "3,-20", path = "bottom", gather = true },
{ map = "3,-19", path = "left", gather = true },
}
end
-- Bag full: sell, then deposit (example coordinates)
function bank()
return {
{ map = "HDV_X,HDV_Y", sale = true },
{ map = "BANQUE_X,BANQUE_Y", npcBank = true },
}
end
The resource names and coordinates are examples: replace them with the ones for your zone and profession. Each step runs in a fixed order, gathering first and then the map change, so you can chain several actions on the same map.
The script marketplace offers ready-to-use gathering routes: handy for getting started before you write your own.
Contested resources: stay on the map
On busy spots, a resource respawns and disappears again within seconds. The forcegather = true step changes the logic: instead of moving on to the next map when there is nothing left to gather, the bot stays on the map, waits for the respawn and gathers as soon as a resource reappears. It only leaves the map if the bag is full, if a fight starts or if the map changes.
{ map = "1,-20", forcegather = true } -- stays and gathers at every respawn
Bank and marketplace selling
The bank takes a few lines to set up: pod threshold with config.setBankThreshold(), kamas to keep with config.setBankKamas(), and items to keep or withdraw from the Bank tab of the dashboard.
Selling is configured item by item in the Marketplace tab:
- Strategy. Undercut the cheapest listing by one kama.
- Lot size. Sell single units, lots of 10 or lots of 100.
- Price floor. A fixed price in kamas, or a percentage below the average price, under which the bot never sells.
- Priorities and exclusions. Priority items are sold first; excluded items are never sold.
Each time the bot goes through a sale = true step, it applies these rules automatically.
Professions and batch crafting
Gathering levels up your gathering professions exactly as it does when you play. A script can read progress with job.level() and job.xpPercent(), then switch zones at each level milestone. On the crafting side, the craft = true step finds the workshops on the map, works out how many items the inventory can make, drops in the ingredients and runs the batch craft, based on the recipes selected in the Craft tab.
The most profitable loop often combines all three: gather a profession's resources, craft what sells best, sell it on the marketplace.
Farming with several accounts
Farming scales easily: each account follows its own route, or several accounts form a leader + mules group. The connection schedule sets each account's time slots, and the account manager shows the status of the whole fleet. Our Dofus Touch multi-account guide covers the options in detail.
What each tier includes
| Feature | Free | Beginner (€29) | Standard (€87) and up |
|---|---|---|---|
| Gathering, bank, routes | Yes | Yes | Yes |
| Full Lua scripting | Yes | Yes | Yes |
| Marketplace selling | — | — | Yes |
| Automatic crafting | — | — | Yes |
| Simultaneous bots | Up to 5, through Discord invites | 30 | 100, 300 or 600 |
Prices are the same on Dofus Touch, Dofus Retro and Dofus 3, with a separate subscription for each version. Details on the MoonBot Touch page.
Ready-to-run scripts. Don't feel like setting everything up yourself? The community publishes its gathering scripts for Dofus Touch on the MoonBot marketplace, free or paid: browse the Dofus Touch gathering scripts. Each page describes what the script does; you then get it from the Marketplace tab of the app.
Precautions
- Test on a secondary account and watch the first loops live from the dashboard.
- Set the pod threshold between 80 and 90%: too high and you lose resources; too low and you multiply the round trips.
- Always set a price floor on the marketplace so the bot does not follow a seller who is dumping prices.
Botting breaks the terms of use of Dofus Touch and exposes your accounts to sanctions. MoonBot is independent third-party software, not affiliated with Ankama: you use it at your own responsibility.


