Getting started
CloudBot is a bot for Tibia that runs on CloudBot's own machines in the cloud. You do not install anything on your PC, and you do not need to keep your computer turned on. You prepare a script, start it from the console, and CloudBot runs your character on a remote machine.
This page is for first-time users. You do not need to know how to program. It walks through your first run in order: how CloudBot works, what goes into setup.json, how to create and start a script, and the Tibia client settings that make the bot reliable.
In a hurry? Create a config in My Scripts, start your machine on the console home, start the script, and press Connect. The Client Setup section explains the in-game settings.
How CloudBot works
CloudBot runs entirely in the cloud. Your key is linked to one or more machines: remote computers that already have the Tibia client and CloudBot installed. When you start a run, CloudBot opens Tibia on a machine and controls your character there.
Four pieces make up a run:
- Script — a folder with two files:
waypoints.in(the route and actions) andsetup.json(combat, healing, looting and refill rules). - Config — the entry you create in My Scripts. A config gives the script a name, stores both files, and optionally stores your Tibia login for auto start. You can create several configs, for example one per character or one per hunt.
- Machine — the cloud computer that runs Tibia and CloudBot. Machines are assigned to your key and use the hours on your key.
- Session — one run of a config on a machine. A session starts when you press Start New and ends when the script finishes, when your hours run out, or when the machine is stopped or rebooted.
While a session is running, CloudBot reads the game screen (minimap, battle list and inventory) and sends the same keyboard and mouse input a player would. That is why the client settings in Client Setup matter: the bot needs to see the game the same way every time.
Press Connect on the console home to open the machine's remote desktop in your browser. From there you can log in, pause or start the but and watch the hunt.
What you need
Every script needs two files:
waypoints.in— the route. It contains the coordinates the bot walks to, plus actions such as using a rope, using a shovel, opening a door or talking to an NPC. It is a plain text file, even though its extension is.in.setup.json— the configuration. It describes which monsters to attack, what to loot, how to heal, which hotkeys to use and when to leave the hunt.
Ready-made scripts are available in the CloudBotScripts repository. A good first example is the Salamander Cave script.
Download the script folder, then upload both files when you create your script in My Scripts.
setup.json basics
Most scripts come with a working setup.json. For your first run you usually only need to check that the backpack names, tools, items and spells match your character.
Each section below shows a small snippet followed by an explanation of what it does. The full file is available in the Complete example section.
1. general
"general": {
"loot_type": "auto",
"fast_target": true
}
This section sets the looting mode and general targeting behaviour.
loot_typeis either"auto"or"manual". Auto uses the bot's built-in looting and auto-deposit. Manual is only recommended for free accounts; it uses thelootlist at the bottom of the file to decide what to pick up.fast_targetmakes the bot attack by pressing the spacebar instead of clicking a monster. This is usually faster, so leave it astrueunless you have a specific reason not to.
2. script_options
"script_options": {
"hours_leave": [9.5],
"duration_hours": 8
}
These options control how long the script runs and when it should stop.
hours_leaveis the hour at which the bot should leave the hunt.9.5means 9 hours and 30 minutes, which is 30 minutes before server save. You can provide more than one time in the list.duration_hoursis the maximum number of hours the script should run.
It is recommended to leave these values as the script author provided them.
3. containers
"containers": {
"loot_bp": "Brocade Backpack"
}
This section tells the bot which backpack to use and must match the name shown in the game window exactly. Names are case-sensitive: write "Brocade Backpack", not "brocade backpack".
loot_bpis the backpack where loot is placed. With auto loot it is also used for auto-deposit.gold_bpis a common extra backpack for gold when using manual looting.
If the loot section uses a dest name, that backpack must be defined here too.
loot_bp must stay visible for auto-deposit. For manual loot, keep loot_bp and gold_bp open so items can be dragged into them.4. tools
"tools": {
"rope": {"name": "rope"},
"shovel": {"name": "shovel"}
}
Tools are only needed when the script uses a rope or a shovel. The name should be the actual item your character will use.
For example, if you carry an elvenhair rope, write "elvenhair rope" instead of "rope". If the script does not use tools, this section can be removed.
5. items and spells
"items": {
"mana potion": {"hotkey": "f1", "use": "self"},
"meat": {"hotkey": "f12", "use": "use"}
},
"spells": {
"exura infir ico": "r"
}
These sections assign hotkeys inside the client. The bot presses these keys when it needs to use an item or cast a spell.
- Item and spell names should be written in lowercase, exactly as they appear in the game.
- Every hotkey must be unique. Do not assign the same key to two different items or spells.
- A hotkey must be a single keystroke. Combinations such as
ctrl + xare not supported. - For items,
usetells the bot how to use the item:"self"uses it on your character (for example a mana potion), while"use"uses it normally (for example food).
6. healing
"healing": [
{"type": "hp", "below_percent": 90, "use_spell": "exura infir ico", "min_mana_percent": 20, "priority": 2},
{"type": "mp", "below_percent": 20, "use_item": "mana potion", "priority": 1}
]
The healing list contains the rules the bot follows to recover HP and mana. Each entry has a type ("hp" or "mp"), a threshold in below_percent, and the spell or item to use.
Any spell referenced by use_spell must have a hotkey in the spells section. Any item referenced by use_item must have a hotkey in the items section.
min_mana_percent prevents a healing spell from being cast when mana is too low. priority controls the order in which rules are checked.
7. hunt_config
"hunt_config": {
"cap_leave": 80,
"mana_name": "mana potion",
"take_mana": 5,
"mana_leave": 1
}
These are the refill options. They decide when the bot should leave the hunt and how much to buy from the NPC.
cap_leaveis the capacity percentage that makes the bot leave the hunt.mana_nameis the mana potion used for refills.take_manais how many potions to take when refilling.mana_leaveis the potion count at which the bot should leave to refill.
8. persistent_actions
"persistent_actions": [
{"action": "eat_food", "min_interval": 60, "max_interval": 100, "args": {"hotkey": "f12"}}
]
Persistent actions run in the background at set intervals. The example eats food every 60 to 100 seconds by pressing the configured hotkey. These are mostly used by more advanced scripts, so for your first run you can simply leave the section as provided.
9. target_monsters
"target_monsters": [
{"name": "Wasp", "action": "follow", "loot": true},
{"name": "Wolf", "action": "follow", "loot": true},
{"name": "Starving Wolf", "action": "follow", "loot": true},
{"name": "Poacher", "action": "follow", "loot": false}
]
This is the list of monsters the bot will attack when they appear in the battle list. Each entry has a name, an action such as "follow", and whether the monster should be looted (loot: true or false).
Monsters that are not in this list will not be targeted.
10. target_spells
"target_spells": [
{"name": "exori ico", "min_mana_percent": 30, "distance": 1, "priority": 1, "cooldown": 6,
"monsters": ["Elf", "Elf Scout", "Elf Arcanist"]},
{"name": "exori infir min", "min_mana_percent": 30, "priority": 1, "cooldown": 6, "min_monster_count": 2}
]
These are the spells the bot may use while fighting. There are two common forms:
- Targeted spell (first example): set
distanceto the maximum distance and list the valid targets inmonsters. - Area spell (second example): set
min_monster_countto the minimum number of monsters that must be nearby.
min_mana_percent, priority and cooldown work the same way as in the healing section. If the script does not use attack spells, leave the list empty: [].
11. loot
"loot": [
{"name": "meat", "action": "use"}
]
The loot list is only used when loot_type is "manual". With auto loot it can be left empty, because the bot handles looting by itself.
Each entry has a name, an action ("loot" or "use"), and optionally a dest backpack. The dest must match a container defined in the containers section.
"action": "loot"picks the item up and places it in the destination backpack."action": "use"uses the item on the spot, for example food or a consumable.
Complete example
This is the complete setup.json with all the sections shown above. You can copy it and adjust the names, hotkeys and monsters for your character.
{
"general": {
"loot_type": "auto",
"fast_target": true
},
"script_options": {
"hours_leave": [9.5],
"duration_hours": 8
},
"containers": {
"loot_bp": "Brocade Backpack"
},
"tools": {
"rope": {"name": "rope"},
"shovel": {"name": "shovel"}
},
"items": {
"mana potion": {"hotkey": "f1", "use": "self"},
"meat": {"hotkey": "f12", "use": "use"}
},
"spells": {
"exura infir ico": "r"
},
"healing": [
{"type": "hp", "below_percent": 90, "use_spell": "exura infir ico", "min_mana_percent": 20, "priority": 2},
{"type": "mp", "below_percent": 20, "use_item": "mana potion", "priority": 1}
],
"hunt_config": {
"cap_leave": 80,
"mana_name": "mana potion",
"take_mana": 5,
"mana_leave": 1
},
"persistent_actions": [
{"action": "eat_food", "min_interval": 60, "max_interval": 100, "args": {"hotkey": "f12"}}
],
"target_monsters": [
{"name": "Wasp", "action": "follow", "loot": true},
{"name": "Wolf", "action": "follow", "loot": true},
{"name": "Starving Wolf", "action": "follow", "loot": true},
{"name": "Poacher", "action": "follow", "loot": false}
],
"target_spells": [
{"name": "exori ico", "min_mana_percent": 30, "distance": 1, "priority": 1, "cooldown": 6,
"monsters": ["Elf", "Elf Scout", "Elf Arcanist"]},
{"name": "exori infir min", "min_mana_percent": 30, "priority": 1, "cooldown": 6, "min_monster_count": 2}
],
"loot": [
{"name": "meat", "action": "use"}
]
}
Create and start a script
This section takes a script folder from your computer to a running bot. It only takes a few minutes, and most of it is only needed the first time.
1. Create the script
Log in to the console and open My Scripts. Press Add New Config.
Fill in the form:
- Character Name — a label for the character, for example
Char 1. - Config Name — the name you will see in the console, for example
Oramond Minos. - Category — choose Custom Script to use your own files. Choose Official Scripts or User Scripts only when the script already exists in one of those lists.
With Custom Script selected, add the two files you prepared: click Add next to Waypoints for waypoints.in, and Add next to Setup for setup.json. You can paste the file contents into the editor or upload the files, depending on the form. Press Save. The new config now appears in My Scripts.
If you want CloudBot to log in by itself, enable Auto start and enter your email, password and character list index. Two-factor authentication must be disabled for this, and the credentials are stored in plain text, so only use it if you are comfortable with that.
2. Start the machine (first time)
Open the console home. Your assigned machines are listed under Machines.
The first time, you will have to press Start to boot your machine. After a moment, the Start button is replaced by a Connect link. That link is how you remotely access the machine.
You only need to do this the first time, or whenever the machine shows Start instead of Connect.
3. Start the script
On the console home, press Start Bot next to the machine you want to use. This opens My Scripts for that machine.
Find the config you created and press Start New. CloudBot queues the session and starts it as soon as the machine is available. The run then appears under Active Sessions on the console home.
If you have more than one config, this is where you choose which one to run. Starting a session does not delete the config, so you can reuse it as often as you like.
4. Connect to the client
When the session is running, press Connect on the machine row on the console home. The remote desktop opens in a new browser tab and shows the Tibia client running on the machine.
Use it to log in if auto start is not configured, watch the bot, take over when needed, or start and stop the bot manually. Closing the tab does not stop the session; it keeps running on the machine.
Client Setup
Since this is a new machine, you will have to setup the client the first time you login. Here is the recommended way to setup the Tibia client before you start your first session. Click any image to open it at full size.
Minimap zoom
Zoom the minimap all the way out, then zoom in exactly one step. This gives CloudBot the minimap view it expects when reading the map.
Battle list
Open the battle list and set it up in these three ways:
a. Resize it to fit around 6–10 monsters
The battle list should be large enough to show the monsters around you, but not so large that it wastes screen space.
b. Show only monsters
Filter the battle list so that it only displays monsters. Players, NPCs and summons should not appear, otherwise they can confuse targeting.
c. Order monsters by distance
Sort the battle list by distance so the closest monster appears first. This helps the bot pick a sensible target.
Loot backpack
Keep the backpack used for loot open and visible inside your main backpack. CloudBot needs to see it to deposit loot quickly.
If you use manual loot (recommended for free accounts), also open the loot containers inside that backpack. The containers section shows the expected setup.
Scripting Coming soon
You now know enough to download a script, prepare your client and run it safely. The more advanced material — creating your own waypoints, writing custom actions, advanced setup.json options, spell rotations and looting strategies — will be covered in the Scripting section.
Advanced scripting documentation is on the way.