- Code: Select all
/run local i,j p=PickupContainerItem e=EquipCursorItem for i=0,4,1 do for j=1,18,1 do d=GetContainerItemInfo(i,j) if d=="Interface\\Icons\\INV_Stone_04"then p(i,j)e(16)end if d=="Interface\\Icons\\INV_Potion_54"then p(i,j)e(17)end end end
replace the textures by your weapon / shield texture, make sure to add 2 \ (not sure why but only works with 2)
you can get the texture from either a database or putting it in your main backpack, first slot and using this macro:
- Code: Select all
/run ChatFrame1:AddMessage(GetContainerItemInfo(0,1))
(using itemrack is easier)