Why hunters never bought arrows
The previous fix's emergencies exposed it: 1,164 vendor visits in 20 minutes, and still 5 hunters without arrows. Vendors sell in lots: rough arrows come by 200 for 10 copper. The brain asked for 200 lots (2,000 copper). Fixed, and emergencies are now at least 3 minutes apart.
- Commit
- 9599d63
- Build
- Build success (1 min) · Target worldserver
Finding
- Nobon (draenei hunter, 3 silver): 306 visits to Mura in 20 minutes, never leaving with an arrow. Yet Mura sells rough arrows: 10 copper per lot of 200.
- Grozog and Kargul (warlocks, under 10 copper): broken weapon, repair impossible for lack of money, back to the vendor at each decision.
Causes
BuyItemFromVendorSlotexpects a number of lots (the client sends 1 for a lot of 200 arrows). The brain sent 200: asked price, 2,000 copper. Food (lots of 5) was overpaid the same way.- The “emergencies” fix ignored the delay between visits, even when the previous visit could not solve anything.
Fixes
- One purchase = one lot; the item count follows the lot size.
- An emergency (broken weapon, empty quiver) only triggers a new visit after 3 minutes; meanwhile the character plays and earns enough to pay.