Download
(921 b)
Download
Updated: 11-18-22 04:28 PM
Pictures
File Info
Compatibility:
Dragonflight (10.0.2)
Updated:11-18-22 04:28 PM
Created:11-18-22 04:28 PM
Downloads:43
Favorites:0
MD5:

OnlyRepairs

Version: 1
by: adamwcz [More]

Automatically repairs all equipped gear when you talk to a vendor.

Very minimal addon and code. Here is all of it:

Code:
local OnlyRepairs_MerchantShowFrame = CreateFrame("Frame")
OnlyRepairs_MerchantShowFrame:RegisterEvent("MERCHANT_SHOW") -- Register the show-vendor-window event
OnlyRepairs_MerchantShowFrame:SetScript("OnEvent", function(self,event,...) OnlyRepairs_MERCHANT_SHOW() end) -- Set function to run when event is triggered

function OnlyRepairs_MERCHANT_SHOW() -- When you talk to a vendor
	if (CanMerchantRepair()) then -- If talking to a merchant who is able to repair gear
		RepairAllItems() -- Repair all items
	end
end

There have been no comments posted to this file.
Be the first to add one.



Category Jump: