Pulling Macro
Code:
/script TargetNearestEnemy();
/p Pulling %t
/script AttackTarget();
/v inc
Hunter Melee Macro
Code:
/cast Aspect of the Monkey
/script PetAttack();
/script AttackTarget();
Feed Pet Macro
Code:
/script if (not PlayerFrame.inCombat) then if (not
GetContainerItemLink(4, 1)) then OpenBag(4); else CastSpellByName("Feed Pet"); PickupContainerItem(4, 1); end end
Priest Macro
Code:
"/script if (UnitName("target") ~=nil and UnitInParty("target")) then CastSpellByName("Power Word: Shield(Rank 1)") else TargetUnit("player") CastSpellByName("Power Word: Shield(Rank 1)") TargetLastEnemy(); end;
Example to put on 1H-weapon and offhand weapon when you are wearing 2H-weapon
Code:
/script PickupContainerItem(4, 1);
/script -- 1H weapon now on cursor.
/script PickupInventoryItem(16);
/script -- 1H weapon now equipped, 2H weapon on cursor.
/script PickupContainerItem(4, 3);
/script -- 2H weapon in inventory, no item on cursor.
/script PickupContainerItem(4, 2);
/script -- offhand item on cursor.
/script PickupInventoryItem(17);
/script -- off hand item now equipped, no item on cursor.
Example to put on 2H-weapon when you are wielding 2H-weapon
Code:
/script PickupInventoryItem(17);
/script -- off hand item now on cursor.
/script PickupContainerItem(4, 2);
/script -- off hand item now in inventory
/script PickupContainerItem(4, 3);
/script -- 2H weapon now on cursor.
/script PickupInventoryItem(16);
/script -- 1H weapon now on cursor, 2H weapon equipped
/script PickupContainerItem(4, 1);
/script -- 1H weapon now in inventory, no item on cursor.
follow your nearest friend
Code:
/script TargetNearestFriend();
/follow
spell/buff cast
Code:
/cast Buff1 (Rank 1)
/cast Buff2 (Rank 2)
/cast Buff3 (Rank 3)
If you want to cycle through your team-mates, that is a bit more advanced. In-Game you would just have to press F1 (yourself) to F5, in a macro you have to use some /script commands. *Evil* already gave a similar example.
Code:
/script if (UnitName("target") ~=nil and UnitInParty("target")) then CastSpellByName("Power Word: Shield(Rank 1)")
pulling with ranged macro
Code:
/script TargetNearestEnemy();
/p Pulling %t
/cast ShootBow(Rank 1)
/v inc