A Dofus Retro smithmagic bot, or FM bot, automates the most repetitive part of smithmagic: placing the item and the runes, fusing, checking the result, starting again. With MoonBot, everything goes through the fm API in Lua scripting: leveling a smithmagic profession, aiming for a precise stat value, then selling the items on the Marketplace (HDV). This article covers what the bot can do, two example scripts and what to know before you start a series.
Playing Dofus 3? Automatic smithmagic has its own guide there: Dofus 3 smithmagic bot.
What the bot does in smithmagic
- It opens the workshop on the map it is on: boots, belt, cape, hat, bag, ring or amulet (
fm.open). - It places the item and the runes: the item by its ID (
fm.putItem), and the runes by choosing on its own the best one available for a stat (fm.putRunesForStat). - It fuses once, in a series, or until a stat reaches the value you want (
fm.fuseOnce,fm.fuseAll,fm.fuseUntil). - It reads the result: the value of a stat on the item (
fm.itemStat), the success rate of the last series (fm.successRate), the runes left in the inventory (fm.availableRunes).
The fm module is for smithmagic on your own at a workshop. Two-player smithmagic, between a craftsman and a customer, goes through other API functions (craft.forgemagicAction).
Leveling a smithmagic profession
To gain profession experience, you repeat fusions on a cheap item. Each fusion uses up one rune, and only successful fusions give experience. Here is an example, with the character on the map of a hat workshop and the item and the runes in its inventory:
-- Level smithmagic: Strength ("force") runes on a Gobball Headgear
fm.open("chapeau") -- hat workshop on the map
fm.putItem(2411) -- Gobball Headgear (item ID 2411)
local poses = fm.putRunesForStat("force", 50)
fm.fuseAll() -- fuses as long as placed runes remain
global.printMessage(poses .. " runes posées, réussite : " .. fm.successRate() .. " %")
The documentation also provides a more complete version that checks each fusion one by one. For the structure of a script, see the Lua scripting tutorial, and for professions in general, the professions guide.
Fusing up to a precise value
To improve an item rather than level the profession, fm.fuseUntil chains fusions until the stat reaches the target value, or until there are no runes left. By default, it stops after 500 attempts and returns the result:
-- Raise an item's Vitality to 40 (item and Vitality runes already placed)
local r = fm.fuseUntil("vitalite", 40)
if r.reached then
global.printMessage("Objectif atteint en " .. r.attempts .. " fusions")
else
global.printMessage("Arrêt à " .. r.final .. " après " .. r.attempts .. " fusions")
end
Before starting the series, fm.itemStat("vitalite") gives the starting value, and fm.availableRunes("vitalite") shows how many runes you have left.
Selling on the marketplace
Maged items can be resold on the marketplace. In a route, the sale = true step opens the marketplace and sells according to the settings in the Marketplace tab; in a script, hdv.autoSell() does the same, and hdv.undercutAll(1) reprices your single-item listings at 1 kama below the lowest price. Automatic selling is part of the Standard tier; the pricing logic is explained in the farm kamas automatically guide.
Good to know before starting a series
- Each fusion uses up one rune, and the server recreates the item: its unique ID changes after every fusion.
- Place the whole stack of runes before starting a series: when there are no runes left in the workshop, the next fusion is refused and nothing is consumed.
- To alternate between two runes, remove the placed stack before placing the other one (
fm.removeItemByUid). - Start on cheap items while you validate your script.
For gathering resources and the other professions, see the Dofus Retro profession bot article.
Free or Standard
- Free tier: up to 5 bots, unlocked through validated Discord invites, with Lua scripting. Details in the free Dofus bot article.
- Standard (€87 per month): 50 bots, with automatic selling on the marketplace, automatic crafting and statistics.
Full pricing is on the Dofus Retro page.
Botting breaks the terms of use of Dofus and exposes your accounts to sanctions. MoonBot is independent third-party software, not affiliated with Ankama: you use it at your own responsibility.
Getting started
- Create an account on retro.moon-bot.io and link your Discord to unlock your free bots.
- Move your character to the map of a smithmagic workshop, with the item and the runes in its inventory.
- Paste one of the scripts above into the Scripts tab of the dashboard, adjust the item and the stat, then launch it.
- All the functions are described on doc.moon-bot.io, in the fm and hdv sections.



