WoW:Item equipping: Difference between revisions

m
Move page script moved page Item equipping to WoW:Item equipping without leaving a redirect
m (Move page script moved page Item equipping to WoW:Item equipping without leaving a redirect)
 
(8 intermediate revisions by 8 users not shown)
Line 2: Line 2:


Note that the need for macro juggling to switch equipment is all but gone with the advent of AddOns such as
Note that the need for macro juggling to switch equipment is all but gone with the advent of AddOns such as
[[http://www.curse-gaming.com/en/wow/addons-2045-1-itemrack.html ItemRack]] or [[http://wow.curse-gaming.com/en/files/details/4784/outfitter/ Outfitter]]. Heck, it can even be controlled from a macro if you like :-)
ItemRack or Outfitter. These addons can themselves be controlled with macros if you like :-)<!--[http://www.curse-gaming.com/en/wow/addons-2045-1-itemrack.html ItemRack] or [http://wow.curse-gaming.com/en/files/details/4784/outfitter/ Outfitter]. These addons can themselves be controlled with macros if you like :-)-->


== Basics ==
== Basics ==
Line 43: Line 43:




Please be very careful when using the UseContainerItem(bag,slot) command.  If you are talking to a vendor and use this macro (assuming no safety measures in the script) then all your macro items will be sold.  Just managed to sell 7 items to a vendor.  Fortunately, I was able to retrieve the last item and blizzard restored the other equipment items for me.
Please be very careful when using the UseContainerItem(bag,slot) command.  If you are talking to a vendor and use this macro (assuming no safety measures in the script) then all your macro items will be sold.  I just managed to sell 7 items to a vendor.  Fortunately, I was able to retrieve the last item and Blizzard restored the other equipment items for me.




Line 109: Line 109:


<code>
<code>
 
/script if ( not CursorHasItem() ) then PickupInventoryItem(16); if ( CursorHasItem() ) then PickupContainerItem(mainhandBag, mainhandBagSlot); end PickupContainerItem(offhandBag, offhandBagSlot); PickupInventoryItem(17); PickupContainerItem(offhandBag, offhandBagSlot); end
 
/script if ( not CursorHasItem() ) then PickupInventoryItem(17); if ( CursorHasItem() ) then PickupContainerItem(offhandBag, offhandBagSlot); end PickupContainerItem(mainhandBag, mainhandBagSlot); PickupInventoryItem(16); PickupContainerItem(mainhandBag, mainhandBagSlot); end
 
 
</code>
</code>


Line 159: Line 155:
/script if ( not CursorHasItem() ) then PickupInventoryItem(17); PickupInventoryItem(16); end
/script if ( not CursorHasItem() ) then PickupInventoryItem(17); PickupInventoryItem(16); end
</code>
</code>
== Simple Macro with item slots ==
<code> /equipslot <inventory number> <bag number> <bag slot number> </code>
Basically this equips the item specified in your bag to the inventory slot indicated by the first number in your macro. An example would be:
<code> /equipslot 16 4 1 </code>
This equips a weapon to your main hand found in your last bag in the first slot. Essentially this accomplishes the same as the scripts from above but with much less characters, leaving your macros free to do other things.


== With Cosmos ==
== With Cosmos ==
Line 166: Line 171:
  /loadset <Number>
  /loadset <Number>


== Simple Swap Without Itemslots==
Halow's Item Switch (1h+Shield to 2h)
I don't know about you guys but I cant stand item slot specific macros, to complicated for me and a waste of macro space. So I made this little gem...
<code>
/equip [nomodifier] <1H Item Name>
/equip [nomodifier] <OH Item Name>
/equip [modifier:shift] <2H Item Name>
</code>
Note** make sure you don't put the <> around your weapons.
This macro will equip your 1handed weapon and your shield/offhand weapon when you click it, and when you click it while holding down shift it will equip your 2handed weapon. This should also work for dual wield to 2hander though I haven't tested it.
== Weapon Swap Using Equipment Manager==
NOTE: You'll have to activate your the Equipment Manager first (Options > Interface > Features > [X] Use Equipment Manger), it will appear at the top right corner of your character frame.
The next step is to create a set for each weapon you want to use in your macros. It's important to deactivate all the other item slots, you simply click the yellow arrow at each slot and choose "Ignore this slot", this will prevent Error messages in combat.
After you've created the weapon sets, you can include them in your macros using this command:
<code>
/equipset SetName
</code>
Replace SetName with the exact name of your own weapon set. The advantage of this method is, in comparison to the /equip and /equipslot commands, that it works better when lags appear. Of course it's possible to include multiple sets in one macro using modifiers as shown above.
[[Category:Macros]]
[[Category:Macros]]
Anonymous user