usefull ingame macros

11/29/2004 20:05 Lowfyr#1
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
11/29/2004 21:56 mRs#2
hört sich echt nciht schlecht an =)
02/26/2005 03:16 csar#3
Kennt jmd ne gute Seite über LUA und/oder Blizzard Macro Commands/Guide/etc?
02/28/2005 11:15 Exitus#4
das offzielle wow forum is gut...
da gibt es nen extra forum fuer skripts...
wenn man sich reinliest versteht man es
02/28/2005 11:57 mRs#5
aber nur das englisch =)
02/28/2005 23:27 Exitus#6
jops
is ja eh egal ob deutsch oder englisch
03/03/2005 09:19 Sine Nomine#7
Wie kann muss ich das priest macro
Quote:
"/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;
ändern, das ich auch leute heilen kann, die nicht in meiner gruppe sind? also quasi alle bis auf gegner?

2. Frage:
Wie muss ich das Pulling macro
Quote:
/script TargetNearestEnemy();
/p Pulling %t
/script AttackTarget();
/v inc
abändern, das ich
1. einen gegner sheepe,
2. nur das "sheepe %t" sage, wenn ich auch in einer gruppe bin
3. der letzte ausgewählte mob anvisiert wird?
Für hilfe wäre ich sehr dankbar!
Gruß, Sine