Page 1 of 2

Help with a macro if Possible

PostPosted: Fri Jul 17, 2015 6:53 am
by ryan5coote
Hello Nostalrius Community

I am completely new to the vanilla version of WOW, and as I have played Burning crusade I am trying to put my rouge skills when stealthed or not onto one button.

Currently here are some scripts I am trying

/script if buffed("Stealth") then cast Backstab(Rank 1) else cast Gouge(Rank 1)

/script if buffed("Stealth") then cast Pick Pocket(Rank 1) else cast Sinister Strike(Rank 2)

All I get is a window that repeats the code of the macro but in the place of 'script' I see 'string' and all of the text is in red letters

I tried unzipping the Supermacro files into my Addons folder, but no such luck.

If we cannot program multiple skills/spells to one button due to the old nature of the version so be it.

Sorry about the long post but any information, advice to help would be greatly appreciated

Thanks a lot

Re: Help with a macro if Possible

PostPosted: Fri Jul 17, 2015 10:46 am
by LYQ
first of all if cases must have an end, second of all cast spellname is wrong

/script if buffed("Stealth") then CastSpellByName("Backstab(Rank 1)") else CastSpellByName("Gouge(Rank 1)") end

this should work ( if you have supermacro, since buffed is a supermacro function)

Re: Help with a macro if Possible

PostPosted: Fri Jul 17, 2015 3:48 pm
by ryan5coote
LYQ

Definite thanks for the reply, so I tried the code you suggested, it seems like the game is trying to read it but I still get the error message on use, I attached a jpg showing it in game.

It could just be that the supermacro addon I installed is not working properly or was not extracted to the right destination.

Anyway once again thanks for all of the help in this small matter

Re: Help with a macro if Possible

PostPosted: Fri Jul 17, 2015 4:33 pm
by LYQ
Seems like the supermacro addon is indeed not working.

the error says he can't find "buffed()" which is the function provided by supermacro

Re: Help with a macro if Possible

PostPosted: Fri Jul 17, 2015 4:39 pm
by Youfie
The following should work without the need of SuperMacro :

/script if not(string.find(GetShapeshiftFormInfo(1), "Invis" )) then CastSpellByName("Backstab") else CastSpellByName("Gouge"); end

Re: Help with a macro if Possible

PostPosted: Fri Jul 17, 2015 6:39 pm
by ryan5coote
Hey LYQ is there a link for site where I can download the correct files for supermacro, all I saw online after doing a search was a .zip file where you had to unload it into the Add-ons folder of WOW.

Youfie great suggestion on the macro, it is working very well thanks a lot man.

Re: Help with a macro if Possible

PostPosted: Sat Jul 18, 2015 9:50 am
by Liandri
There is a nice repository for vanilla wow addons:
addons.us.to

You can download individual addons there, instead of having to download a huge file that contains thousands of other addons.

Re: Help with a macro if Possible

PostPosted: Sat Jul 18, 2015 11:05 am
by StafordDev
Use UnitBuff("player", "Stealth") instead of buffed("Stealth).

Re: Help with a macro if Possible

PostPosted: Sat Jul 18, 2015 11:36 am
by LYQ
StafordDev wrote:Use UnitBuff("player", "Stealth") instead of buffed("Stealth).


that's not how it works, Youfie had the best non-supermacro dependant version so far.
UnitBuff works with index not with Spellnames

Re: Help with a macro if Possible

PostPosted: Sat Jul 18, 2015 1:19 pm
by Youfie
Youfie wrote:The following should work without the need of SuperMacro :

/script if not(string.find(GetShapeshiftFormInfo(1), "Invis" )) then CastSpellByName("Backstab") else CastSpellByName("Gouge"); end


An alternative (no need of SuperMacro either) :

/script i=1;m=0;while(UnitBuff("target",i)~=nil) do if(strfind(UnitBuff("target",i),"Ability_Stealth")~=nil) then m=1; end;i=i+1;end; c=CastSpellByName; if(m~=1) then c("Gouge");end;