In addition to what (Ohie)Mitzen said, I would like to give you some useful scripts:
Use this script if you have a 2-hand weapon:
Code:
/run local t,c,u,k=0,0,UnitExists("target")and"target"or"player"for i=1,18 do k=GetInventoryItemLink(u,i)if i~=4 and k then local ilvl=select(4,GetItemInfo(k))t=t+ilvl c=c+1 if i==16 then t=t+ilvl c=c+1 end end end c=c>0 and print(t/17)
Use this script in all other cases:
Code:
/run local t,c,u,k=0,0,UnitExists("target")and"target"or"player"for i=1,18 do k=GetInventoryItemLink(u,i)if i~=4 and k then t=t+select(4,GetItemInfo(k))c=c+1 end end c=c>0 and print(t/17)
Also, make sure to enable the ilvl setting (escape -> interface -> display -> show item level), so that you know which items need to be replaced.