WoW:Most Used Macros: Difference between revisions
(Most Used Macros moved to Most used macros) |
No edit summary |
||
Line 1: | Line 1: | ||
Priest Macros | |||
1. Shield to a target's level<br> | |||
/script r=10;l={6,12,18,24,30,36,42,48,54,60};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10)then CastSpellByName("Power Word: Shield(Rank "..i..")");break;end;end; | |||
<br><br> | |||
2. Renew to a target's level<br> | |||
/script r=9;l={8,14,20,26,32,38,44,50,56};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Renew(Rank "..i..")");break;end;end; | |||
<br><br> | |||
3. Power Word: Fortitude to a target's level<br> | |||
/script r=6;l={1,12,24,36,48,60};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Power Word: Fortitude(Rank "..i..")");break;end;end | |||
<br><br> | |||
4. Shadow Protection to a unit's level (if possible)<br> | |||
/script r=3;l={30,42,56};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Shadow Protection(Rank "..i..")");break;end;end | |||
<br><br> |
Revision as of 19:43, 6 January 2006
Priest Macros
1. Shield to a target's level
/script r=10;l={6,12,18,24,30,36,42,48,54,60};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10)then CastSpellByName("Power Word: Shield(Rank "..i..")");break;end;end;
2. Renew to a target's level
/script r=9;l={8,14,20,26,32,38,44,50,56};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Renew(Rank "..i..")");break;end;end;
3. Power Word: Fortitude to a target's level
/script r=6;l={1,12,24,36,48,60};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Power Word: Fortitude(Rank "..i..")");break;end;end
4. Shadow Protection to a unit's level (if possible)
/script r=3;l={30,42,56};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Shadow Protection(Rank "..i..")");break;end;end