12-20-2004, 05:16 PM
How to set up a macro
1. Type /macro
2. Press New
3. Enter a name
4. Select an icon
5. Type in your macro
Once your macro is made, you can either drag the icon to a toolbar or access it by typing /macro <name> from the command line.
Note on the /script command. You may include a /script [string] command in your macro, where [string] can be any valid chunk of Lua code. Multiple statements should be delimited with a semi-colon. The World of Warcraft API page lists global Lua functions that may be called.
A one button toggle (to switch from 2H to sword+board or vice versa): cut & paste the following 2 lines into your macro: (Ref. 3)
/script if( not GetInventoryItemQuality("player",17)) then PickupContainerItem(X,1) PickupInventoryItem(16) UseContainerItem(X,2) else PickupInventoryItem(17) PickupContainerItem(X,2) UseContainerItem(X,1);end
Usage
X = bag#
1,2 = slot#
Example: for a 10 slot bag in (leftmost) position 4
1. Equip 1H weapon & shield
2. Place 2H weapon in bag 4, slot 9
3. Don't put loot items in slot 10!
/cast Bloodrage
/script if( not GetInventoryItemQuality("player",17)) then PickupContainerItem(4,9) PickupInventoryItem(16) UseContainerItem(4,10) else PickupInventoryItem(17) PickupContainerItem(4,10) UseContainerItem(4,9);end
I cast Bloodrage first, you don't have to. I put the macro icon in the - (minus) position on the buttonbar and Shield Bash in position 0 (zero) to do a quick swat to interrupt a cast.
References
1. http://wowvault.ign.com/
2. http://www.wowwiki.com/
3. http://forums.worldofwarcraft.com/thread.a...&tmp=1#post7427
1. Type /macro
2. Press New
3. Enter a name
4. Select an icon
5. Type in your macro
Once your macro is made, you can either drag the icon to a toolbar or access it by typing /macro <name> from the command line.
Note on the /script command. You may include a /script [string] command in your macro, where [string] can be any valid chunk of Lua code. Multiple statements should be delimited with a semi-colon. The World of Warcraft API page lists global Lua functions that may be called.
A one button toggle (to switch from 2H to sword+board or vice versa): cut & paste the following 2 lines into your macro: (Ref. 3)
/script if( not GetInventoryItemQuality("player",17)) then PickupContainerItem(X,1) PickupInventoryItem(16) UseContainerItem(X,2) else PickupInventoryItem(17) PickupContainerItem(X,2) UseContainerItem(X,1);end
Usage
X = bag#
1,2 = slot#
Example: for a 10 slot bag in (leftmost) position 4
1. Equip 1H weapon & shield
2. Place 2H weapon in bag 4, slot 9
3. Don't put loot items in slot 10!
/cast Bloodrage
/script if( not GetInventoryItemQuality("player",17)) then PickupContainerItem(4,9) PickupInventoryItem(16) UseContainerItem(4,10) else PickupInventoryItem(17) PickupContainerItem(4,10) UseContainerItem(4,9);end
I cast Bloodrage first, you don't have to. I put the macro icon in the - (minus) position on the buttonbar and Shield Bash in position 0 (zero) to do a quick swat to interrupt a cast.
References
1. http://wowvault.ign.com/
2. http://www.wowwiki.com/
3. http://forums.worldofwarcraft.com/thread.a...&tmp=1#post7427