Files
pfUI/modules
Brues 2619b0bd77 autovendor: all paths through C_MerchantFrame
Two-part collapse:

Button-click sell path: was a 0.1s-per-item manual iteration via
UseContainerItem (with processed[] tracking + a merchant-state flag +
OnShow/OnUpdate/OnHide handler trio). Now calls SellJunkAndReport
which fires C_MerchantFrame.SellAllJunkItems and a 0.3s deferred
GetMoney delta reporter. Engine handles per-frame sell pacing.

Button enable/disable check: HasGreyItems() iterated bags 0..4 with
C_Item.GetItemQuality manually. Replaced with
C_MerchantFrame.GetNumJunkItems() > 0 (the engine's canonical answer
to the same question). The button's Update only runs from MERCHANT_SHOW
/ MERCHANT_UPDATE handlers so the "merchant must be open" gate on
GetNumJunkItems is always satisfied.

Side effect: the MERCHANT_SHOW auto-sell path NOW reports income to
chat. Previously only the manual button reported it.

Deleted: HasGreyItems, processed/count/gold state, GetNextGreyItem,
autovendor.merchant flag, OnShow/OnUpdate/OnHide handlers, the
MERCHANT_CLOSED branch.

170 → 104 lines.
2026-05-21 17:24:14 -05:00
..
2026-05-16 13:02:38 -05:00
2026-05-21 10:40:42 -05:00
2026-05-16 13:02:38 -05:00
2026-01-03 12:58:31 +01:00
2026-05-21 02:35:46 -05:00
2026-05-21 03:10:59 -05:00
2026-05-21 02:35:46 -05:00
2026-05-16 13:02:38 -05:00
2026-01-25 08:44:16 +01:00
2017-07-19 10:35:01 +02:00
2026-05-21 02:35:46 -05:00
2026-03-20 21:02:13 +01:00
2026-04-10 16:33:06 +02:00
2026-03-20 17:25:15 +01:00
2026-03-09 03:06:41 +01:00
2026-05-16 13:02:38 -05:00
2026-01-10 15:28:16 +01:00
2026-02-17 16:59:30 +01:00
2026-05-21 02:35:46 -05:00
2026-05-16 13:02:38 -05:00
2026-01-08 12:25:18 +01:00
2026-05-21 02:35:46 -05:00
2026-02-06 16:32:13 +01:00
2026-05-21 02:35:46 -05:00
2026-02-06 08:07:33 +01:00
2026-01-11 17:00:11 +01:00
2026-03-23 11:37:31 +01:00
2026-05-16 13:02:38 -05:00