πŸ“‹ AH Logic

by anon · 2026-11-14 18:23:01
← all clips πŸ–¨οΈ print / PDF
Table of contents First, the correction The curve is never exercised Why "mats under pressure" can't emerge from this model The demand cohort you described does exist β€” it just never spends The one concrete bug in the way of all of it How I'd transition it, cheapest first

Investigated, nothing changed. And two numbers I gave you earlier were wrong, which actually reframes the question.

First, the correction

The curve is chance = min(100, 100^(1 + (1 βˆ’ price/(1.4Β·vendor))/ChanceFactor)) with ChanceFactor = 2, and that 1.4 sits inside the divisor, so the 10% point isn't 2Γ— vendor:

price vs vendor sell

1.0–1.4Γ—

1.6Γ—

1.8Γ—

2.0Γ—

2.5Γ—

3.0Γ—

chance to buyout

100%

72%

52%

37%

16%

7%

So "2Γ— = 10%" was wrong (it's ~2.8Γ— that lands at 10%). The only hard edge is the guaranteed buyout at ≀1.4Γ—. Which matters, because…

The curve is never exercised

Seller prices at vendor unit value Γ— the class/quality ratio Β± 4% jitter. Measured on the live 25,002-listing house:

share ≀1.4Γ— unit vendor

average ask

Trade goods

99.2%

1.28Γ—

Consumables

99.5%

1.01Γ—

Misc

100%

1.00Γ—

Everything the AHBot lists is already inside the instant-buy band. The buyer's price sensitivity is decorative β€” it never gets a chance to say no. So the thing to fix isn't the shape of the curve, it's that every item on the server is priced off one number that has nothing to do with usefulness.

Why "mats under pressure" can't emerge from this model

Three structural reasons, in order of how much they matter:

  1. One anchor for everything. Cloth, a grey dagger, and a level-19 twink BiS are priced by the same formula on SellPrice. A real AH's prices are mostly relative to each other: cloth is expensive because recipes eat it, not because a vendor pays 1s75c for it. There is no term in the model that can say "this is in demand".
  2. The seller never reacts. Every copy of an item is within Β±4% of the same formula β€” no undercutting, no per-item cap, and it restocks to target forever. Measured supply distribution: 4,904 entries listed once (53%, which looks right), but a tail of 104 copies of one item ("Dread Pirate" Costume), 94 of another, then 89/88/87/75. In a real economy 104 copies means the price collapses; here they all sit at 1.3Γ— vendor indefinitely.
  3. There is no demand side. Playerbots only walk to auctioneers as an RPG town errand (CAT_AUCTION, weight 40 in NewRpgBaseAction.cpp) β€” no bot buys or sells, ever. Customers = the AHBot buyer (which only touches player listings, i.e. ~130 of 25,000) plus you.

The demand cohort you described does exist β€” it just never spends

bot level band

chars

avg gold

max

1–20

562

17

571

21–40

241

455

1,623

41–60

284

1,087

2,573

61–80

269

2,154

4,201

81–90

195

2,658

4,483

1.53M gold held by bots, concentrated exactly where you'd expect: the level-90 with 2,600g who'd buy Winterfall Firewater mats to power-level alchemy. Gear supply also covers every band (req 1–20: 2,314 listings … 81–90: 1,369), so alt gear has stock but no desirability signal.

The one concrete bug in the way of all of it

Seller divides by BuyCount; buyer doesn't. ItemPrototype.h:824-826 returns the raw columns, so SellPrice for a vendor bundle item (cloth/ore/leather, BuyCount = 20) is the bundle price. The seller prices SellPrice Γ— stack / BuyCount (correct per-unit). The buyer compares a per-unit ask against 1.4 Γ— SellPrice (no division) β€” so for those items it will pay up to 1.4 Γ— BuyCount β‰ˆ 28Γ— the true unit value. The core itself knows this (Item::GetSpecialPrice does cost /= 4 * proto->BuyCount). Affects 3.8% of trade-good listings, 5.7% of consumables, 33% of misc β€” and it's exactly the bulk mats you're asking about. Any market model needs the two sides to mean the same thing by "price" first.

How I'd transition it, cheapest first

tier

change

what you get

effort

T0

Class.TradeGood.Price.Ratio / Consumable.Price.Ratio up (e.g. 250–400), Weapon/Armor down, ChanceFactor 2β†’4, ChanceMultiplier per quality

At-a-glance levels that look like a real AH instead of vendor parity. Zero dynamics

config, live via .ahbot reload

T1a

Stop skipping bot listings in SameItemInfo, and use the house's own min/avg price for that entry as the buyer's reference instead of vendor

Kills the BuyCount asymmetry, gives actual price discovery, and the buyer starts paying market rather than vendor

~20 lines

T1b

Per-item supply cap + undercut (new listing at house-min Γ— 0.95 when there's competition)

The 104-costume tail disappears; mats behave like contested goods. Needs a prune pass, since the seller can only add

~40 lines

T2

Demand table built from real game data: walk SpellInfo::Reagent[8] / ReagentCount[8] (SpellInfo.h:411) over profession spells once at startup β†’ per-item recipe-demand weight by skill tier; price = base Γ— (1 + Ξ±Β·demand/supply)

Cloth/ore/leather become worth multiples of vendor price because recipes consume them β€” the mechanic you're describing, with no invented constants

one startup pass (~1–2 s) + a multiplier

T3

ahbot_sales ledger β†’ rolling median per item per level band, both sides price off it

The only version that learns. With one real buyer it learns that buyer, which on a 4-account server is arguably what you want

new table + writes

The 80/20 is T1a + T2. T1a makes the reference price mean something; T2 makes mats valuable for a reason that's actually in the game data. T0 alone is cosmetic but it's free and reversible.

The real lever is outside the AHBot though: bots have professions (4Γ— skill gain), gold, and town errands that already walk them to auctioneers. Letting a fraction of them buy a stack of the reagent for their next skill-up while they're in town would create genuine demand, drain 1.53M gold, and make your AH look inhabited β€” but that's a playerbots feature, not an AHBot config change, and it's a much bigger lift.

What I'd skip: a full order book (bids/outbids/arbitrage), hand-tuned per-item constants, or trying to mirror retail price levels. None of it survives contact with a population of one human and a thousand bots who don't shop.

Written up in BotTalk 3b8c11d4d81ab42d6e000000 (with the two corrections and the BuyCount asymmetry), so it's there when you want to pick a tier.