Repository navigation
API extended for Reign of the Warlock
- Methods:
StashTab.withdraw(),StashTab.deposit(),getDesecratedZones(), an optionalgameTypeargument oncreateCharacter() - Enums:
GameType.RotW,CharacterClass.Warlock,StashWithdrawTarget,DesecratedZoneSource, the Chronicle bits inItemFlag
1.14d API changes
createCharacterworks on 1.14d: types the name, sets hardcore / ladder / expansion and confirms, also from an empty character list (#86, #87)me.ladderis a boolean from the character's Ladder flag; it was a number that was always 0 (#69)me.maxdiffno longer includes the weapon-switch bit (#69)getTradeInfo(1)returns the trade partner's name instead of your own (#77)createGamedefaults to the highest available difficulty (#64)sendDDEthrows when DDE cannot be set up, as d2bs did (#85)StashTab.click(item)(#65)unit.preciseX/preciseY, and fractional drawable positions (#66)- SQLite reads and binds BLOBs as
ArrayBuffer(#73) legacySkillNamesflag (on by default):getSkillByNamekeeps the 1.14d skill names (#67)
Fixes
quitOnErrorleaves the game on an error in the bot's own script; it only fired for console scripts (#85)say()no longer overruns the game's stack or chat buffers; long messages are cut to what the game accepts (#85)getUIFlag()with an id past the game's UI table returns false instead of reading past it (#85)- Room data shared between scripts is no longer freed while another script still uses it (#84)
Improvements
- Teleport paths: about 40% fewer casts, no more one-cell hops along walls (#72)
- "Pause all" keeps heartbeat scripts running (#75)
- Character-state snapshot: adds
backend,gameType,lastUsedSkilland stack counts; the backend version string is now"LOD/1.14d"(#68)
Docs and typings
- Enum-typed values in the docs and
d2bsng.d.tswhere they were plain numbers (#60, #64) - A description for every enum (#82)
- Corrected docs for
revive,clickMap,getMouseCoordsandscreenToAutomap(#76)
Full changelog: v2.2.0...v2.3.0
Full Changelog: v2.2.0...v2.3.0