Originally Posted by Phanx
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.