# 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)