A Dofus Retro marketplace bot takes care of the Marketplace (HDV) for you: it lists your resources for sale, keeps your prices just under those of the other sellers and can buy when a lot drops below the price you set. With MoonBot, selling is configured in the Marketplace tab of the dashboard, and the hdv API of Lua scripting lets you go further. Here is what the bot does, how to set it up and two example scripts.
What the bot does at the marketplace
- It sells automatically every time it visits the marketplace, according to your settings: priority items first, in the order you chose, then the rest through default selling.
- It adjusts prices: the “−1 kama” strategy places each listing one kama under the cheapest offer, ignoring your own listings.
- It respects a floor price, fixed in kamas or as a percentage below the server's average price, so an item is never sold off cheap.
- It reads the market: the lowest price per lot of 1, 10 or 100, the server's average price, and detailed offers with their stats (
hdv.getLowestPrice,hdv.getMiddlePrice,hdv.offers). - It buys under a price cap: the cheapest lot under your maximum price, or a specific offer chosen for its stats (
hdv.buyItem,hdv.buyListing).
Setting up automatic selling
The Marketplace tab of the dashboard is set up with two lists:
- Specific items: sold first, in the order shown. For each one, you choose the strategy, the lot size (x1, x10 or x100) and the floor price. The same item can appear several times, with different lot sizes.
- Excluded items: never sold, neither through default selling nor in any other way.
In a route, just add the sale = true step on the marketplace map: the bot opens the marketplace and sells according to these settings. In a script, hdv.autoSell() does the same thing: it opens the marketplace, sells the priority items and then the rest by default, updates the prices and closes it.
-- Route step: sell when passing through the marketplace map (example map from the documentation)
{ map = "5,-17", sale = true }
For the full structure of a route, see the Lua scripting tutorial.
Staying the cheapest without underselling
Prices move all day long. hdv.undercutAll goes through all your listings of one lot size and reprices them one kama under the cheapest offer from the other sellers. The optional second parameter sets the maximum drop allowed, as a percentage: beyond that, the listing is left as it is.
-- At the marketplace: reprice your lots of 100 just under the other sellers
hdv.openSell()
local bilan = hdv.undercutAll(100, 20) -- no drop of more than 20%
global.printMessage(bilan.updated .. " listings updated, " .. bilan.skipped .. " left unchanged")
hdv.close()
To check a price before selling, hdv.getLowestPrice(id, 100) returns the price of the cheapest lot of 100 (0 if there is no offer) and hdv.getMiddlePrice(id) returns the server's average price.
Buying under a price cap
The bot can also buy: hdv.buyItem takes the cheapest lot under the cap you set and returns the price paid, or 0 if no offer fits.
-- Buy a lot of 10 only if it costs less than 2,000 kamas
local OBJET = 287 -- Sesame Seed (ID 287)
hdv.openBuy()
hdv.listItem(OBJET) -- loads the market offers
local paye = hdv.buyItem(OBJET, 10, 2000)
if paye > 0 then
global.printMessage("Lot bought for " .. paye .. " kamas")
end
hdv.close()
For equipment, hdv.offers lists each offer with its stats and hdv.buyListing buys exactly the one you picked. The documentation gives a full example of finding the stats you want at the best price.
Good to know
- Selling prices are lot prices:
hdv.sellItem(id, 100, 25000)lists 100 units for 25,000 kamas in total. - Changing a price means withdrawing the listing and putting it back up for sale, which comes with the marketplace tax (
hdv.getTax()). That is why the floor price and the maximum drop matter. - Each marketplace only accepts certain item categories (
hdv.canSellItem(id)) and limits the number of listings:hdv.myFreeSlots()gives the free slots. - To stock the marketplace, see the profession bot for resources and the smithmagic bot for maged items. The pricing logic is explained in the farm kamas automatically guide.
Playing Dofus 3? The same principle applies on the Unity client: see the Dofus 3 marketplace bot.
Free or Standard
- Free tier: up to 5 bots, unlocked through validated Discord invites, with Lua scripting. Selling and the marketplace are not included, and they are not in the Beginner tier either. Details in the free Dofus bot article.
- Standard (€87 per month): 50 bots, with selling and 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.
Ready-to-run scripts. Don't feel like setting everything up yourself? The community publishes its selling and trading scripts for Dofus Retro on the MoonBot marketplace, free or paid: browse the Dofus Retro trading scripts. Each page describes what the script does; you then get it from the Marketplace tab of the app.
Getting started
- Create an account on retro.moon-bot.io and upgrade to the Standard tier.
- In the Marketplace tab, add your priority items with their lot size and floor price, then the items to exclude.
- Add
sale = trueto the step of your route located on the marketplace map, or runhdv.autoSell()from a script. - All the functions are described on doc.moon-bot.io, in the hdv section.


