WoW OnlyRepairs addon Dragonflight/Wrath of the Lich King Classic 2024
logo
wow addon OnlyRepairs

OnlyRepairs

Game Version: 10.0.2
Total Downloads: 43
Updated: Nov 20, 2022
Created: Nov 20, 2022
download OnlyRepairsDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
OnlyRepairs.zip release 921 Bytes Nov 20, 2022 10.0.2 42 download OnlyRepairs OnlyRepairs.zip releaseDownload

Description

Share this:

Automatically repairs all equipped gear when you talk to a vendor. Never again forget to repair.

Very minimal code. No extra garbage; it only repairs. Here is all of it:

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

Comments

Add a comment