Topic: Super Duper Macro Thread
Post your macros and explain what they do so that others can use them!
Change to Battle Stance and equip 2h weapon
For: Warriors
Macro Name: Agg
Macro Icon: Battle Stance image
Raw macro: [blockquote]/cast Battle
/script PickupInventoryItem(17);if(CursorHasItem()) then PickupContainerItem(3,10);PickupContainerItem(4,1);PickupInventoryItem(16);else PickupContainerItem(4,1);PickupInventoryItem(16);PickupContainerItem(3,10);PickupInventoryItem(17);end [/blockquote]
Change to Defensive Stance and equip 1h weapon and shield
For: Warriors
Macro Name: Def
Macro Icon: Defensive Stance image
Raw macro: [blockquote]/cast Defensive
/script PickupInventoryItem(17);if(CursorHasItem()) then PickupContainerItem(3,10);PickupContainerItem(4,1);PickupInventoryItem(16);else PickupContainerItem(4,1);PickupInventoryItem(16);PickupContainerItem(3,10);PickupInventoryItem(17);end [/blockquote]
Description of the script in the above 2 macros:[blockquote] /cast Battle -- Switch to Battle Stance
/script -- starts the script function
PickupInventoryItem(17); -- Picks up the item in the offhand
if(CursorHasItem()) then -- If there was something in the off hand slot and the mouse cursor has it, continue, if not, jump to "else" statement
PickupContainerItem(3,10); -- Place item into bag #3, slot #10. (Bags are numbered 0 - 4 from right to left. Slots are numbered 1 - 16 starting from the top left.)
PickupContainerItem(4,1); -- Pick up item in bag #4, slot #1
PickupInventoryItem(16); -- Place item into main hand slot
else -- Spot to start script at if no offhand item was picked up in the beginning of the script.
PickupContainerItem(4,1); -- Pick up item in bag #4, slot #1
PickupInventoryItem(16); -- Place item into main hand slot
PickupContainerItem(3,10); -- Pick up item in bag #3, slot #10
PickupInventoryItem(17); -- Place item into off hand slot.
end -- Stop[/blockquote]

