Auto Sell Grey

Addon for automatic sale of gray items.

File Details

AutoSellGrey_15-02-26.zip

  • R
  • Feb 15, 2026
  • 4.25 KB
  • 3.8K
  • 12.0.1+4
  • Retail + 3

File Name

AutoSellGrey_15-02-26.zip

Supported Versions

  • 12.0.1
  • 12.0.0
  • 5.5.3
  • 2.5.5
  • 1.15.8

Bug Fixes

  • Fixed SavedVariables being reset on every login. The settings initialization was running at file load time — before ADDON_LOADED fires — so saved preferences were always overwritten with defaults. Initialization now happens inside the ADDON_LOADED handler with proper default merging.
  • Fixed broken merchant validation logic. The condition not MerchantFrame.selectedTab == 1 suffered from operator precedence issues (not binds tighter than ==), making the check always evaluate to false. Removed this flawed guard entirely — the MERCHANT_SHOW event only fires for actual merchants.
  • Fixed sell queue continuing after closing the merchant window. C_Timer.After callbacks would keep firing even after the player walked away from the vendor, causing errors. Added MERCHANT_CLOSED event handling and an isSelling flag to gracefully stop the queue.
  • Fixed potential nil error from GetItemInfo. If an item isn't cached, GetItemInfo can return nil. Added a nil-check on itemRarity before comparing it.
  • Removed chat spam on every vendor visit. The "Sell limit disabled" message was printed every time a merchant window opened. Removed this redundant notification.
  • Optimized sell queue processing. Replaced table.remove(sellQueue, 1) (O(n) per call) with an index-based counter for better performance with large inventories.
  • Unregisters ADDON_LOADED after initialization to avoid unnecessary event processing for other addons.

New Features

  • Slash commands: /asg or /autosellgrey with the following subcommands:
    • /asg on — enable auto sell
    • /asg off — disable auto sell
    • /asg limit — toggle the 12-item sell limit
    • /asg settings — open the settings panel
    • /asg (no args) — display help
  • Item count in sell summary. The completion message now shows how many items were sold (e.g., "Sold 5 grey items for: 1g 23s 45c").
  • Full localization of all new strings (Ukrainian / English).