Give a Macro, Take a Macro!
has a lot of useful macros and is still growing
Description: Will use a simple repair hammer on any piece of gear that has fallen below 101 durability.
by Borella
|
Source code
|
1
|
/run for i = 0 , 16, 1 do local dV, dM, iN, dVF, dMF = GetInventoryItemDurable("player",i) if(dV < dM and dV < 101 and dM >= 102) then UseItemByName("Simple Repair Hammer"); PickupEquipmentItem(i); SendSystemChat("Hammered " .. iN); break; end end
|
not sure if that is exactly what you are looking for.
there is a line to specifically look at main hand and off hand, but i do not know it off the top of my head.
if you use diyce, there is a line for that too. again since im not at home, i don't know the actual code. can post that later if that is needed.
Also:
There is an addon to see what your dura is just by opening up character screen (c) instead of hovering over pieces of gear. if this helps at all
post by Yrcanos
Addon cDura