Daffy's Mods
← All buildsBots

Pirates Online Bots

Bots that play Pirates of the Caribbean Online on the Custom Pirates Server, built on Pirates Online Classic (POC, the open-source client and server). There are two kinds:

  • Updated Nov 22, 2026
  • 2 pictures
  • 2 updates
Pirates Online Bots, first picture

Status: both work on our server; the player bots are new and still learning. · Visibility: public · Last updated: 2026-11-22

Contents

A player bot named Bot Crew walking ahead of the player in Port Royal

Player bots

One brain drives each bot (pbot/b_brain.py). Four times a second it looks at what is going on and picks what to do: stand by its captain, follow him, board his ship, man a cannon, fight, or play on its own.

A bot’s ship heading out to sea at night between Rumrunner’s Isle and Tortuga

Test bots

walker.py starts the real client offscreen and muted, picks the test pirate and runs a step script once the pirate is in the world. A step script defines run(H) and yields either seconds to wait or ('until', fn, timeout); a timeout is logged as a stall with a snapshot. H has what a script needs: quests, the current area, nearby objects, walking to a target, fighting, sailing, and magic words. A run ends on its own after its time limit or when nothing has happened for four minutes.

There are over 100 scripts. A few:

Script What it does
s_story.py follows the main story quest by quest
s_tutorial.py, s_newplayer.py a brand-new pirate’s first steps
s_dock.py, s_sail.py, s_launch.py launch, sail, steer back and dock a ship
s_seabattle.py, s_shipfight.py, s_sink.py sea battles against enemy ships
s_landfight.py, s_pistol.py, s_guards.py land fights
s_cards.py, s_stud.py, s_parlor.py the card tables
s_shop.py, s_sell.py, s_upgrade.py, s_repair.py shops and the shipwright
s_friendtele.py, s_crew2.py, s_board.py friends, crews and boarding another pirate’s ship
s_relog.py, s_survive.py logging out and back in, and surviving a server restart

The t_*.py files are offline tests for the bots’ own logic (pathing, quest picking, sea fights) that run without the game. paths.py, islands.py, maps/ and quest_spots.json are how the bots find their way around.

What you need

How to run them

The scripts expect the client in C:\PiratesOnline\pirates-online-classic and this repo in C:\PiratesBots; change the paths at the top of each .ps1 to match yours.

A test bot:

$env:BOT_ACCOUNT = 'bot1'
.\run_walk.ps1 -Tag story1 -Script s_story.py -Secs 600

A player bot:

.\pbot\run_bot.ps1 -Slot 1

Or set the environment yourself and run ppython walker.py from the client folder: PROOF_SCRIPT (the script), PROOF_EVOUT (event log), PROOF_SECS, PROOF_PIRATE, PROOF_OFFSCREEN=1, plus the client’s own POC_TOKEN, pocUsername, POC_GAMESERVER and GAME_ENVIRONMENT=DEV. Logins for player bots go in pbot/accounts.local.json, which is never committed.

Built with

Coming soon

Recent changes

Credits and license

Pirates of the Caribbean Online and its art, names and characters belong to Disney. This is a free, non-commercial fan project and is not affiliated with or endorsed by Disney. No game files are included.

All rights reserved for now.

More builds

BotsToontown Classic with BotsToontown Online as it played at its September 2013 shutdown, on your own PC, with a town full of bot toons that play like real players.Updated Oct 4, 20266 picturesBotsClub Penguin BotsBot penguins for a private Waddle Forever Club Penguin server.Updated Oct 28, 20263 picturesBotsCS:GO BotsSmarter bots for a private, offline CS:GO LAN server (the legacy 1.38.8.1 build).Updated Oct 28, 20264 pictures