node.js Botting (CaracAL) - lordachoo/adventureland GitHub Wiki

CaracAL Botting

Install

  • assumes NVM installed ( curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash )
  • CaracAL Repo suggests Node 14, but i'm running node v21.6.1 and it's working -- nvm install node 14
$ git clone https://github.com/numbereself/caracAL.git
$ cd caracAL
$ npm install

#if you want caracAL to autostart run
#chmod +x ./start_on_boot.sh
#./start_on_boot.sh
# This installs a systemd unit 

# To start 
$ node main.js

Config

  1. This will prompt you for email/passwd and login to your account
  2. THIS WILL CREATE A config.js FILE FOR YOU TO EDIT
  3. You can choose which characters to enable here in a tui interface - select & enable.
  4. Select Deploy and hit enter when ready
  5. CTRL+C and end
  6. vi config.js
  7. Edit the script locations for each character:
  8. If you put in the path /scripts/characterName.js
    1. it will default to caracAL/CODE/scripts/characterName.js pathing
  9. Set the options you want -- e.g enable_bwi , enable_minimap, and the port for the webUI if you want them on
  10. node main.js and start again and your character should login and start processing their scripts.
  11. you can still access the characters via /comm interface

Start Script

#!/bin/bash
dt=$(date +"%Y_%m_%d_%I_%M_%p");
#echo $dt
node main.js > $dt.log

WebUI Example