# Macros

# Macro pve / pvp

<span style="color: #ff0000;">***IMPORTANT***</span>

<span style="color: #ff0000;">*Avant tout , aussi bien pour les macros orientées PVP et/ou PVE,* </span>  
<span style="color: #ff0000;">*Vous devez obligatoirement avoir les sorts :*</span>

<span style="color: #0000ff;">**Camouflage**</span> <span style="color: #000000;">en position **59** dans vos barres de sorts, ce qui correspond a la barre d'action **5,** emplacement **11**</span>  
<span style="color: #0000ff;">**Attaque automatique**</span> <span style="color: #000000;">en position **60** dans vos barres de sorts, ce qui correspond a la barre d'action **5**, emplacement **12**</span>

---

<span style="color: #000000;">Every *Vanilla* macro that includes (59) only works if you have Stealth in slot 59 on your action bar. Same goes for having Attack in slot (60) on the action bar. If you want to change the slot just look up wow spellslots, and put the correct number. In order to use /unbuff you need the addon Super Macro (*Vanilla* only).  
 *For an explanation on the macros:  
[https://youtu.be/iwnwusrhQUE](https://youtu.be/iwnwusrhQUE)  
[https://youtu.be/07ZbX5MeuNE](https://youtu.be/07ZbX5MeuNE)*</span>

---

<span style="color: #000000;">Respectant le travail fait en amont par les auteurs, je ne modifie en rien leurs textes, le but est de regrouper ces macros pour notre facilité de jeux. Ayant testé celles-ci sur le serveur ***Nostalgeek,*** </span>elles fonctionnent dans leur version originale en Anglais.   
Pou ma part, je me suis amusé également a remplacer le nom des sorts par leur correspondance française, cela fonctionne également.

---

<span style="color: #ff0000;"> ***Ces macros ne fonctionnent que pou***</span><span style="color: #ff0000;">***r la version 1.12 de WOW***</span>

---

<span style="color: #ff0000;">***<span style="color: #0000ff;">(\*) non testé </span>  
(\*) testé mais ne fonctionne pas   
<span style="color: #339966;">(\*) testé et fonctionne</span>***</span>

<span style="color: #000000;">***Poison MH <span style="color: #ff0000;"><span style="color: #339966;">(\*) testé et fonctionne</span></span>***</span>

<span style="color: #000000;">*/use Poison instantané VI  
/script PickupInventoryItem(16)*</span>

<span style="color: #000000;">***Poison OH <span style="color: #ff0000;"><span style="color: #339966;">(\*) testé et fonctionne</span></span>***</span>

<span style="color: #000000;">*/use Poison instantané VI  
/script PickupInventoryItem(17)*</span>

<span style="color: #ff0000;">***<span style="color: #000000;">**Spammable Stealth <span style="color: #339966;">(\*) testé et fonctionne  
</span>**</span>*** <span style="color: #000000;">/run if not IsCurrentAction(59) then CastSpellByName("Stealth") end</span>  
</span>

<span style="color: #000000;">***ATTACK MACROS*** </span><span style="color: #000000;">*****Hemorrhage <span style="color: #ff0000;"><span style="color: #339966;">(\*) testé et fonctionne  
</span></span>***** /run if GetUnitName("target")==nil then TargetNearestEnemy() end  
/run if not IsCurrentAction(60) then UseAction(60) end  
/cast Hemorrhage</span>

<span style="color: #000000;">***Ghostly Strike <span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne  
</span>**</span>*** /run if GetUnitName("target")==nil then TargetNearestEnemy() end  
/run if not IsCurrentAction(60) then UseAction(60) end  
/cast Ghostly Strike  
</span>

<span style="color: #000000;">***Riposte/SS <span style="color: #ff0000;">**<span style="color: #0000ff;">(\*) non testé   
</span>**</span>*** /run if GetUnitName("target")==nil then TargetNearestEnemy() end  
/run if not IsCurrentAction(60) then UseAction(60) end  
/cast Riposte  
/cast Sinister Strike</span>

<span style="color: #000000;">**Riposte/Eviscerate *<span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne</span>**</span>*<span style="color: #ff0000;">***<span style="color: #0000ff;">  
</span>***</span>**  
/run if GetUnitName("target")==nil then TargetNearestEnemy() end  
/run if not IsCurrentAction(60) then UseAction(60) end  
/cast Riposte  
/cast Eviscerate</span>

<span style="color: #000000;">***Riposte/Rupture <span style="color: #ff0000;">**<span style="color: #0000ff;"><span style="color: #339966;">(\*) testé et fonctionne</span>  
  
</span>**</span>***/run if GetUnitName("target")==nil then TargetNearestEnemy() end  
/run if not IsCurrentAction(60) then UseAction(60) end  
/cast Riposte  
/cast Rupture</span>

<span style="color: #000000;">***Backstab <span style="color: #ff0000;">**<span style="color: #0000ff;"><span style="color: #339966;">(\*) testé et fonctionne</span></span>**</span><span style="color: #ff0000;">**<span style="color: #0000ff;">  
</span>**</span>*** /run if GetUnitName("target")==nil then TargetNearestEnemy() end  
/script if not IsCurrentAction(59) then if not IsCurrentAction(60) then UseAction(60) end end  
/cast Backstab</span>

<span style="color: #000000;">***Throw/Shoot <span style="color: #ff0000;">**<span style="color: #0000ff;">(\*) non testé   
</span>**</span>*** /run local ,,i=strfind(GetInventoryItemLink("player",18),"\\124Hitem:(%d+)")local ,,,,\_,p=GetItemInfo(i)local t={}t.Bows="Bow"t.Guns="Gun"t.Crossbows="Crossbow"t.Thrown="Throw"CastSpellByName((string.gsub(t\[p\],"<sup class="_1jsgSPRO0cMQfs1UZrSovE">\[^T\]</sup>","Shoot %1")))</span>

<span style="color: #000000;">**OPENERS**   
**Cheap Shot *<span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne</span>**</span>***  
  
/cast Cheap Shot  
/run if not IsCurrentAction(59) then CastSpellByName("Stealth") end</span>

<span style="color: #000000;">**Ambush *<span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne  
  
</span>**</span>***/cast Ambush  
/run if not IsCurrentAction(59) then CastSpellByName("Stealth") end</span>

<span style="color: #000000;">**Garrote *<span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne</span>**</span><span style="color: #ff0000;">**<span style="color: #0000ff;">  
</span>**</span>***  
/cast Garrote  
/run if not IsCurrentAction(59) then CastSpellByName("Stealth") end</span>

**Sap <span style="color: #000000;">*<span style="color: #ff0000;">**<span style="color: #0000ff;">(\*) non testé   
</span>**</span>*</span>**  
/cast Sap  
/run if not IsCurrentAction(59) then CastSpellByName("Stealth") end

**Spam Sap <span style="color: #000000;">*<span style="color: #ff0000;">**<span style="color: #0000ff;">(\*) non testé   
</span>**</span>*</span>**  
/run ClearTarget()  
/run TargetNearestEnemy()  
/cast Sap  
/run if not IsCurrentAction(59) then CastSpellByName("Stealth") end

**Sap fufu PVP** <span style="color: #000000;">***<span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne</span>**</span>***</span>

/script ClearTarget()  
/script TargetNearestEnemy()  
/lancer Assommer(Rang 3)

**Spam Pick Pocket <span style="color: #ff0000;">***(\*) testé mais ne fonctionne pas*** </span>**   
/run ClearTarget()  
/run TargetNearestEnemy()  
/cast Pick Pocket  
/run if not IsCurrentAction(59) then CastSpellByName("Stealth") end

**Vanish <span style="color: #000000;"> *<span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne  
</span>**</span>*</span>**  
/run StopAttack()  
/run if UnitAffectingCombat("player") then CastSpellByName("Vanish") else if not IsCurrentAction(59) then CastSpellByName("Stealth") end end

**Evasion <span style="color: #000000;"> *<span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne  
</span>**</span>*</span>**  
/script if not IsCurrentAction(59) then CastSpellByName("Evasion") end  
  
**Cannibalize <span style="color: #000000;">*<span style="color: #ff0000;">**<span style="color: #339966;">(\*) testé et fonctionne</span>**</span>*</span>**   
/script if not IsCurrentAction(59) then CastSpellByName("Cannibalize") end

**(PVP) Drop Flag+Vanish+Cheap **<span style="color: #000000;">*<span style="color: #ff0000;"><span style="color: #0000ff;">(\*) non testé </span></span>*</span>****   
/unbuff Silverwing Flag  
/cast Vanish  
/cast Cheap Shot

**Expose Armor <span style="color: #ff0000;">***(\*) testé mais ne fonctionne pas*** </span>**  
  
/cast Expose Armor  
/script StopAttack()

*VERSION 2 ****<span style="color: #000000;">*<span style="color: #ff0000;"><span style="color: #0000ff;">(\*) non testé </span></span>*</span>*****

/cast Expose Armor  
/script AttackTarget()  
/script ClearTarget()  
/script TargetLastTarget()

<span style="color: #000000;">***Blind + Bandage **<span style="color: #ff0000;"><span style="color: #0000ff;">(\*) non testé </span></span>***** /cast Blind  
/use Heavy Runecloth Bandage</span>

# Macro script 1.12

Beaucoup d'informations ici,   
Je n'ai pas eu beaucoup de temps pour vérifier si ces macros fonctionnaient  
Juste essayé deux concernant les poisons en MH et OH.   
J'ai du les adapter afin qu'elles puissent fonctionner

Plutôt que de recopier bêtement celle-ci,   
Voici le lien de cette page  
L'article est assez intéressant pour qui s’intéresse a la programmation,   
C'est d'ailleurs en partie pour cela que le système des macros de Vanilla à été "restreint" a la seconde mise à jour.

Exemple :

**A simple Rotation**

```prettyprint
/run SnD=false for i=1,16,1 do db=UnitBuff("player",i) 
```

```prettyprint
if(db~=nil and string.find(db,"SliceDice"))
```

```prettyprint
then SnD=true end end
/run if GetComboPoints("target")==5  
```

```prettyprint
then CastSpellByName("Eviscerate()");
```

```prettyprint
elseif SnD then CastSpellByName("Sinister Strike()");
```

```prettyprint
elseif GetComboPoints("target")==0 
```

```prettyprint
then CastSpellByName("Sinister Strike()"); 
```

```prettyprint
else CastSpellByName("Slice and Dice()"); end
```

  
it Checks if Slice and Dice is up, if not he casts slice and dice.  
if the Target has 5 combo points and SnD is up, he uses eviscerate  
only pressing one button, a simple beginning, but more is following !  
  
*This Rotation is meant for Pve Sword Rogues who got improved SnD*  
<span class="bbc_underline">*you als no need SuperMacro because it exceeds the 255 char limit*</span>

Je vous invite donc a consulter ce site et cette page en particulier

[http://vanilla60.blogspot.com/2012/02/ambush-and-weaponchange-cast-ambushrank.html](http://vanilla60.blogspot.com/2012/02/ambush-and-weaponchange-cast-ambushrank.html)