Skip to content
/ d2boot Public

Bot system for Diablo II 1.13d, Migrated d2bs to QuickJS javascript engine.

Notifications You must be signed in to change notification settings

io-mars/d2boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D2Boot

Bot system for Diablo II 1.13d, migrated d2bs to QuickJS javascript engine.

scripts based on kolbot;

d2bot# d2boot

  • DON'T USED D2Boot on battle.net!
  • the project is just for fun and try quickjs;

Requirements

  • vscode + mysys2(MINGW32) + gcc
  • cv2pdb the PDB file converter

the last version release.

Build

Step 1 - build quickjs

git clone https://github.com/io-mars/quickjs.git
./build.sh

just export JS_TriggerInterruptHandler function, and modified Makefile for windows build;

after builded, copy requirement files from the zip file:

  1. liblibquickjs.a/libquickjs.d.a/libquickjs.lto.a to lib directory;
  2. quickjs.h/quickjs-libc.h to include/quickjs/ directory;

Step 2 - build d2boot and config

make PREFIX=release clean
make PREFIX=release
make PREFIX=release pdb
  1. put the D2Boot.dll and D2Boot.pdb files at publish/D2Boot/ directory;
  2. put the Scripts directory at publish/D2Boot/ directory;

cancel version warning when building:

# /d/msys64/mingw32/lib
cp libwinpthread.a libwinpthread.a.org
ar -d libwinpthread.a version.o

Step 3 - run d2bot#

  1. add new profile at d2bot#;

  2. edit Scripts\libs\config\_BaseConfigFile.js/_CustomConfig.js/_StarterConfig.js for team play;

  3. set the stash size at Scripts\libs\common\Storage.js;

     init() {
       this.StashX = me.gametype === 0 ? 6 : 10;  //<------10x10
       this.StashY = me.gametype === 0 ? 4 : 10;  //<------10x10
       //....
       this.Stash = new Container("Stash", this.StashX, this.StashY, 7);
       //....
     },
  4. exclude the d2boot directory at Microsoft Defender.

Good fun everyone!