Page 1 of 1

Warrior Macros

PostPosted: Mon Jan 11, 2016 10:06 pm
by Campana
Anyone that could help me with a weapon swapping macro?

I've tried: /equipslot 16 [weapon] /equipslot 17 [shield] and it doesn't seem to work.

Re: Warrior Macros

PostPosted: Mon Jan 11, 2016 10:27 pm
by Roadblock
I would suggest ItemRack and then the macro becomes as simple as /itemrack equip "1HShield"
(or whatever set name)

http://addons.us.to/addon/itemrack-0

Re: Warrior Macros

PostPosted: Tue Jan 12, 2016 1:24 am
by Dreez
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)