Back to Index
II./Lead Developer · Live Economies · Progression Systems

A-BSO & A-OSB

Independent MIT-licensed forks of Bot School Old (BSO) and Old School Bot (OSB), developed and maintained under my leadership.

The Basics

My first step into independent game systems development was contributing to the original Old School Bot repository starting in 2020. Later, I created A-BSO (Bot School Old) and A-OSB (Old School Bot) as separate forks built on the MIT-licensed codebase, where I now serve as lead developer.

Because both bots run active player communities, every progression tweak, economy sink, and event rule gets tested immediately. Below are the major systems I designed and shipped on A-BSO, starting with the Dungeoneering expansion, the 220-file QoL and Party Room update, and the animated Lottery engine.

Specs & Scope
Role
Lead Developer (A-BSO & A-OSB)
History
OSB Contributor since 2020; Independent MIT Forks
Stack
TypeScript, Node.js, Discord.js, Prisma, PostgreSQL
Testing
Vitest (Unit & Economy Tests), Biome
Major A-BSO Updates
Dungeoneering (83 files), QoL/Party Room (220 files), Lottery, Auto-Farm
Collaboration
Async Git, 10+ Contributor PRs Reviewed & Merged
01Dungeoneering & Major QoL Updates
Progression Overhaul & Live Social Systems

10-Floor Dungeoneering Expansion & 220-File QoL Update

Two of the largest updates on A-BSO reworked endgame Dungeoneering progression from the ground up and shipped a broad quality-of-life pass across Party Room drop parties, Item Contracts, Box Frenzy, Tames, and item pricing.

Commit 2c2e16390 · 83 Files · +2,942 / -430 Lines

Dungeoneering 7 → 10 Floor Rework

Rebuilt Dungeoneering into a 10-floor progression ladder with separate combat and non-combat skill gates per floor, Kinship Ring tier progression (checkKinshipFloorSpread), and /dg floors diagnostics that list exact missing skills.

  • Added piecewise-linear Gorajan shard XP boost interpolation (0% to +30% between 13M and 500M Dungeoneering XP) and double-shard rolls on Floors 9 and 10.
  • Recalibrated token payouts (XP x 0.1 plus +15%, +25%, and +40% floor bonuses on Floors 8 to 10) and scaled Alyra pet drops from 1/9,400 to 1/4,000.
Commit 974cd0a3c · 220 Files · +12,303 / -4,842 Lines

Balloon Party Room & Broad QoL Pass

Built a 674-line interactive Balloon Party Room (partyRoom.ts) supporting patron and player-funded drop parties: 20 clickable balloon buttons per 25-second wave, 3-second per-user pop cooldowns, and 2-second dirty-flag UI throttling so simultaneous clicks do not hit Discord rate limits.

  • Reworked Box Frenzy (225 lines), Item Contracts (260 lines), Gathering Pet Tables (157 lines), Challenge Items, and Tame activity tasks.
  • Added a 338-line automated item price updater (updateItemPrices.ts) and unified custom trip durations across 37 minigame files (41cc19ad5).
02PR #12 · Multi-Lottery & Animated Draw
2,326 Lines · Virtual Economy & Live Event

Repeat-Win Decay Lottery & 5-Slot Discord Draw Reel

In MMO economies, flat ticket lotteries let the wealthiest accounts win consecutive prizes and discourage regular players from entering. I built a multi-lottery engine with exponential repeat-win weight decay and a 5-slot animated Discord draw.

Live Hype-Roll & Anti-Whale Decay Simulator

Exact repeat-win decay math from src/lib/bso/commands/lottery.ts. Spin 2–3 rounds to watch repeat winners lose effective weight automatically.

repeatWinDecayFactor×0.40 per win
0.0 (1 win max)0.4 (steep decay)1.0 (no decay)
maxWinsPerUser Cap
Discord Animated Draw Reel (5-Slot Window)
DragonWhale99 (400 tickets)
IronAlabastor (160 tickets)
>> Press "Spin Draw" to run buildHypeRollFrames() <<
ClueHunter_V (40 tickets)
FreshF2P (15 tickets)
Ticket Holder Poolweight = base · decay^wins
DragonWhale99 (400 tix)57.1%
IronAlabastor (160 tix)22.9%
SailingEnjoyer (85 tix)12.1%
ClueHunter_V (40 tix)5.7%
FreshF2P (15 tix)2.1%
Entry Rules & Pricing

GP, Item Trade-Ins & Pool Tax

Each lottery is independently configured in lottery.ts: GP ticket pricing, item-value deposits with curated override prices (eggs, Twisted bows, Dwarven warhammers, clue caskets), custom trade-in rules, Ironman flags, and multi-spin general prize pools.

Concurrency & Animation

Async Lock + Live Reel Frames

All state mutations pass through withLotteryLock so concurrent deposits and draws cannot race. During draws, buildHypeRollFrames() renders a weighted 5-slot reel scrolling past a pointer directly in Discord chat.

03PR #2 & PR #4 to #6 · Automation
Player Workflow Systems

3,217-Line Auto-Farm Engine & Persistent Trip Queue

Built two systems to reduce repetitive manual commands across farming runs and multi-trip sessions.

PR #2 · 32 Files · +3,217 Lines

Per-Patch Auto-Farm Preferences

Added per-patch seed selection (preferences.ts) supporting highest_available, a pinned seedID, or leaving a patch empty, with Farming Contract priority overrides, custom autocomplete, and normalized storage.

PR #4, #5, #6 · 431 Lines + PostgreSQL + Tests

Multi-Activity Trip Queue

Added a PostgreSQL-backed trip queue (DAILY_QUEUE_CAP = 4) across 22+ activities (bosses, raids, Colosseum, Inferno, clues, skilling, fishing, and questing). When a trip ends, the next queued run dispatches automatically, covered by tripQueue.test.ts.

04PR #13 · Live World Event
685-Line Event Engine + Unit Tests

The Cursed Pumpkin: 1-of-1 Hot-Potato World Event

Built a Halloween PvP event where one Cursed Pumpkin existed across the entire server, rewarding the current holder during trips while other players attempted to steal it.

Tracked hold-time leaderboards, steal cooldowns, greased and immunity windows, Scared Crow and Alluring modifiers, and trip reward boxes.

To stop simultaneous steal attempts from duplicating the item, every transfer ran through a promise-chain lock (withPumpkinLock) backed by a PostgreSQL JSONB bank check across all users, followed by a clean teardown script (despawn_cursed_pumpkin.sql) at event end.

Event State (events/halloween.ts)
currentHolderId: string | null
heldSince / immunityUntil / greasedUntil
hasScaredCrow & scaredCrowAttempts
lastStealAttempt: Record<userId, ms>
totalHoldTimes: Record<userId, ms>
ticketsAwarded & boxesAwarded
05Commit & PR Index
Codebase Touchpoints

Inspect Major A-BSO & A-OSB Updates

83 files · +2,942 / -430 lines (2c2e16390)

7 to 10 Floor Expansion, Kinship Rings & Gorajan Scaling

Expanded Dungeoneering from 7 to 10 floors with combat and non-combat skill requirements across every tier. Added Kinship Ring progression tracking, piecewise-linear Gorajan shard XP boost interpolation (0% to +30% from 13M to 500M XP), scaling token bonuses (+15% on Floor 8, +25% on Floor 9, +40% on Floor 10), Alyra pet scaling (1/9,400 to 1/4,000), and /dg floors missing-skill diagnostics.

Files & Scope
  • src/lib/bso/commands/dg.ts (+288 lines)
  • src/lib/bso/skills/dungoneering/dungData.ts & dungDbFunctions.ts
  • docs/src/content/docs/bso/Skills/Dungeoneering.md (+70 lines)
  • Boss food math, Invention, and 8+ BSO boss/demi-boss adjustments
06Team & History
Collaboration & Maintenance

PR Reviews, Historical Contributions & Live Debugging

Original Repo (2020 to 2026)

Upstream Contributions

Contributed to the original Old School Bot repository starting in 2020, including BSO ToA Fix (#6770), Shades Mini Rework (#6773), Quality Passover (#6791), Weapon Poison Alias (#6908), and Verdant Island updates (#7043 to #7046, #7121).

Fork Leadership

10+ Contributor PRs Merged

Reviewed and integrated contributor PRs across A-BSO and A-OSB, including Maggot King, Hunter Rumours, Mixology, Stealing Artefacts, Dated Gambling P&L, Decant All, and Vorkath Head 50kc.

Backend Fixes

CI, Economy & Boost Order

Traced CI failures back to missing Prisma database constraints, built the 524-line Bonds economy integration and Patron Redux refactor, fixed quad-loot double application, and corrected boss boost evaluation order.