Skip to content

coko7/op-tcg-auto-scripts

Repository files navigation

🏴‍☠️ op-tcg-auto-scripts

Collection of bash scripts to farm cards on op-tcg website

Setup

⚠️ Required

These dependencies are required for all scripts to function properly:

🌈 Optional

These dependencies are only for making things prettier:

Note

With a tiny bit of tweaking, you can remove all usages of gum, figlet and lolcat and the script will continue working well.

Usage

Two automatic scripts:

The other scripts are sub-scripts that are called by the two main scripts.

🃏 auto-open-boosters.sh

  1. Open auto-open-boosters.sh
  2. Set PACK_ID to the pack you want to farm
  3. Run:
bash auto-open-boosters.sh

🃏 auto-seller.sh

  1. Simply run and it will do all the work for you:
bash auto-seller.sh

Note

Some info on how it behaves:

  • Automatically sells cards of the following rarities: common, uncommon, rare, leader, super_rare
  • Sells card by sorting them by most profit ((.quantity - 1) * .sell_price)
  • Stops selling when profit of a sell order is not greater than 10
  • Will always keep at least one copy of any given card (imposed by the op-tcg server)

⏳ Wait and Rate limiting

Both automatic scripts rely on a very specific timeout between automated actions:

  • WAIT_LONG: Based on per-hour action limit
  • WAIT_MEDIUM Based on per-minute action limit
  • WAIT_LOW Based on min delay action limit

The longer the wait, the slower the script will execute. But if you do things slowly, you also reduce the chances of the server imposing rate limiting on you. If the server deems you too suspicious, your account can get blocked for some time.

If you stick to WAIT_LONG, you should be able to run these scripts forever without the server detecting anything.

If you want to switch gears, it's at your own risk 💀

image

About

🏴‍☠️ Collection of bash scripts to farm cards on op-tcg website

Topics

Resources

Stars

Watchers

Forks

Languages