View Single Post
01-12-16, 02:36 PM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by Phanx View Post
For selling items, you could hook UseContainerItem; something like:

Code:
hooksecurefunc("UseContainerItem", function(bag, slot)
    -- if the merchant frame is shown, and not to the buyback panel,
    -- then you are selling the indicated item
end)
You might want to hook PickupMerchantItem() as well since that sells any item that's being held by mouse cursor.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote