Rotation (Autoplay) Shadow Priest 7.0.3 WIP

Rotation (Autoplay) Shadow Priest 7.0.3 WIP

i need help for my project


Sequences[‘Autoplay’] = {
specID = 258,
author = “LegionOfDOom”,
helpTxt = “Dps Single - Talent: 1212231”,
icon = “Ability_Mage_FireStarter”,
PreMacro = [[
/targetenemy [noharm][dead]
]],

Public int targetenemy
public bool swp
public bool vt
public int swd

if targetenemy <= 3 then

'/Cast Mindbender',
'/Cast Void Eruption',
'/Cast Mind Blast',
'/Cast Void Bolt',

if swd &lt;= 50 then
'/cast shadow word: death',

else
end if

if swp = 0 then
'/cast shadow word: pain',

else
end if

if vt = 0 then
'/cast vampic touch',

else
end if

if target=mouseover,nodead swp = 0 then
'/cast shadow word: pain',

else
end if

if target=mouseover,nodead vt = 0 then
'/cast vampiric touch',

else
end if

'/Cast Mind Flay',

else

'/Cast Mindbender',
'/Cast Void Eruption',
'/Cast Mind Blast',
'/Cast Void Bolt',

if swd &lt;= 50 then
'/cast shadow word: death',

else
end if

if swp = 0 then
'/cast shadow word: pain',

else
end if

if vt = 0 then
'/cast vampic touch',

else
end if

if target=mouseover,nodead swp = 0 then
'/cast shadow word: pain',

else
end if

if target=mouseover,nodead vt = 0 then
'/cast vampiric touch',

else
end if

'/Cast Mind Sear',	

end if

PostMacro = [[
/startattack
]],
}

I had the understanding that if/then/else statements were not possible/allowed nor supported?