Open app

Build your first macro

Build a macro that sells your bot's loot whenever its inventory fills up, then test it and let it run.

Available on all plans.

Compare plans
On this page

Overview

This tutorial builds a three-part macro: when the bot's inventory is full, it waits a moment and sends /sell all. The same moves work for every other macro. Building and saving are available on all plans; testing it and turning on Auto need Starter, Plus or Pro.

Use the sell command your server has, such as /sell all or /sellall. Every step here is one any paid plan can run; see Macros for the full step list.

Before you start

  • A bot with a saved server. Every macro belongs to a server profile; if the Macros page reads "No server profiles yet", add one under Servers first.
  • The bot online, for the test. Building works while it's stopped.

Build the macro

  1. Open Macros in the sidebar and click New macro. On a phone, tap the round +. The editor opens on "Untitled macro", with Join as its trigger and no steps.
  2. Click the pencil next to the name, type Sell when full and press Enter.
  3. Open the bot picker next to the name and tick your bot. Save stays off until a bot is picked.
  4. Click the When card, open Runs when and pick Inventory full under Inventory. Keep "Also fire if the inventory is already full" ticked.
  5. Set Don't run again for to 1 min, so a failed sale can't send the command over and over.
  6. Click the + after the trigger and pick Wait. Set Pause for to 2 sec, so the command doesn't go out the instant the last slot fills.
  7. Click the + after the Wait card and pick Chat. Type /sell all into Message.
  8. Click Save. A message reads "Created Sell when full".

The canvas now reads When: Inventory full, then Step 1: Wait 2 sec, then Step 2: Chat /sell all. Steps run along the wires from left to right; dragging a card only moves it on the canvas.

The finished Sell when full macro in the editor, with Kestrel_77 picked, Inventory full, Test on Kestrel_77 and Auto on in the header. The flow reads When Inventory full, Step 1 Wait 2 sec, Step 2 Chat /sell all, with a + on each wire, inside a dashed frame with only Add stop condition.

On a phone, the steps show as a list: tap Add step at the end of it instead of a +, and tap the When row in the card at the top to change the trigger.

This macro needs no stop condition. It ends after the Chat step, and the next full inventory starts it again.

Test it

A test runs the saved macro once on one bot, whatever the trigger. It sends the real command on the real server.

  1. Check that the button in the header reads Test on with your bot's name. If the macro has several bots, use the arrow beside it to pick one.
  2. Click Test on. The button changes to "Running…" while the bot works through the steps.
  3. Open the bot's Chat tab to check the result: the server's reply to /sell all appears in the log as a server message.

When the run ends, the button goes back to Test on with your bot's name. To end a run early, click Running… (on a phone, Stop test run). If the button is greyed out, hover it for the reason, such as "The bot is offline".

On the Free plan, clicking Test on opens "Running macros is on Starter and up" instead. The macro stays saved.

Let it run on Auto

With Auto on, the macro starts by itself every time the trigger fires, on every bot it's picked for.

  1. Check the Auto switch in the editor header. A new macro starts with Auto on when your plan can run macros.
  2. Click Save if you changed the switch. In the editor, Auto saves with the macro.
  3. Open Macros and find the row. Its status reads "Waiting for trigger" while the bot is online.

After the next full inventory, Last run shows when it ran and counts the runs, such as "Ran once since the bot started". To stop the macro, turn off its switch in the list; it saves at once and a message reads "Sell when full: Auto off".

A bot runs one macro at a time. If another macro is running when the inventory fills, this one waits its turn, since Override other macros is off.

Next ideas

  • Answer a server message: use the Chat message trigger with a line such as "has entered your claim", then a Chat step.
  • Shop in a menu: Chat /shop, then Wait for set to Window opens, then Use GUI to click the slot, then Close GUI. See Server menus for how menus work.
  • Farm in a loop: put Left click once and Wait inside a Repeat set to Forever, and add a Death stop condition.
  • Check first: wrap the Chat step in an If with Has an item, so the bot only sells when it carries what you farm.

FAQ

Can I build this macro on the Free plan?

Yes. Every plan can build and save macros, up to 5 on Free. Testing it or turning on Auto needs Starter, Plus or Pro.

Why didn't the macro run when the inventory filled?

  • Auto is off, or the bot is offline.
  • The macro ran less than a minute ago, inside Don't run again for.
  • Another macro was running, so this one is still waiting its turn.

Updated

Still stuck?Ask in our Discord or check the FAQ.