Bayn's World of Warcraft Mods and Macros

Mods are current as of interface patch 4216.

AssistMe mod [download]

This mod will automatically set a global MainAssist variable whenever someone in your party or raid calls for assistance. You can then use this variable in other macros to assist that person. Make sure you have the people calling for assistance put "assist me" as the first alphabetic characters in their message. Case is not important. So, messages like these will work:
Messages like this will not work:
Download the mod, unzip it, and place the entire AssistMe folder into your World of Warcraft Interface\AddOns directory (usually something like C:\Program Files\World of Warcraft\Interface\AddOns). You may have to create this directory if it doesn't already exist in your World of Warcraft installation directory.

The designated main assist in the party can use a macro like one of these.

/p Assist me with %t
/ra Assist me with %t

You will want to set up an "Assist" macro.

/script AssistByName(MainAssist)

You may also want to have a "SetMA" macro that will set your MainAssist to the person you currently have targetted. You can use this when people aren't calling out for assistance in party or raid chat.

/script if (UnitIsPlayer("target") and UnitCanAssist("player","target")) then MainAssist=UnitName("target") end

Weapon switching macro

Equip one set of items as you normally would. Put your extra primary-hand item in the second-to-last slot of your leftmost bag. Put your extra secondary-hand item, if any, in the last slot of your leftmost bag. This macro will toggle between two weapon sets regardless of whether you use 1H or 2H weapons and whether you have anything in your off-hand or not.

/script local chi,pii,pci=CursorHasItem,PickupInventoryItem,PickupContainerItem; if (not chi()) then pii(17); if (chi()) then pci(4,16); end pci(4,15); pii(16); pci(4,16); if (chi()) then pii(17); end end

The macro does assume that your leftmost bag is a 16-slot bag. If not, you'll need to modify the "pci(4,15)" and "pci(4,16)" function calls in the macro, reducing the "16" to the number of slots in your bag, and reducing the "15 " to the number of slots in your bag minus one.

The nice thing about using the last two slots in your leftmost bag is that these are the very last slots that will get filled by all the loot that you pick up.