Guide

Dofus Retro marketplace bot: automatically sell and buy at the Marketplace (HDV)

MoonBot account manager: the status, script and connection of each Dofus Retro account
Marketplace selling is started from each account's route or script, like any other task.
Contents
  1. What the bot does at the marketplace
  2. Setting up automatic selling
  3. Staying the cheapest without underselling
  4. Buying under a price cap
  5. Good to know
  6. Free or Standard
  7. Getting started

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

  1. Create an account on retro.moon-bot.io and upgrade to the Standard tier.
  2. In the Marketplace tab, add your priority items with their lot size and floor price, then the items to exclude.
  3. Add sale = true to the step of your route located on the marketplace map, or run hdv.autoSell() from a script.
  4. All the functions are described on doc.moon-bot.io, in the hdv section.

Frequently asked questions

Is there a marketplace bot for Dofus Retro?

Yes. MoonBot sells automatically every time it visits the Marketplace (HDV), according to the Marketplace tab of the dashboard, and the hdv Lua API lets you sell, adjust prices and buy from a script.

How does the bot set its prices?

With the -1 kama strategy, each listing is placed one kama under the cheapest offer from the other sellers, without going below the floor price you chose, in kamas or as a percentage of the server's average price.

Can the bot buy at the marketplace?

Yes. hdv.buyItem buys the cheapest lot under a maximum price, and hdv.buyListing buys a specific offer, for example a piece of equipment chosen for its stats.

Is the marketplace bot included in the free tier?

No. Selling and the marketplace are included starting with the Standard tier, at €87 per month for 50 bots. The free tier gives you up to 5 bots with Lua scripting.

Does botting comply with the rules of Dofus?

No. 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 automate Dofus Retro?

Create an account, add your characters and launch your first script in minutes. The free tier unlocks up to 5 bots through Discord invites, with nothing to install.

Start for freeSee pricing

Automate your game

The most complete Dofus bot

100% cloud: nothing to install, no VPS. Combat, gathering, marketplace, crafting, multi-account and Lua scripting.

  • 100% cloud — nothing to install
  • Free up to 5 bots
Start for free
← Back to the blog