Help with a macro if Possible

Help with a macro if Possible

by ryan5coote » Fri Jul 17, 2015 6:53 am

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
ryan5coote
Tester
 

Re: Help with a macro if Possible

by LYQ » Fri Jul 17, 2015 10:46 am

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)
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Help with a macro if Possible

by ryan5coote » Fri Jul 17, 2015 3:48 pm

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
Attachments
macroHelp.jpg
macroHelp.jpg (202.15 KiB) Viewed 3234 times
ryan5coote
Tester
 

Re: Help with a macro if Possible

by LYQ » Fri Jul 17, 2015 4:33 pm

Seems like the supermacro addon is indeed not working.

the error says he can't find "buffed()" which is the function provided by supermacro
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Help with a macro if Possible

by Youfie » Fri Jul 17, 2015 4:39 pm

The following should work without the need of SuperMacro :

/script if not(string.find(GetShapeshiftFormInfo(1), "Invis" )) then CastSpellByName("Backstab") else CastSpellByName("Gouge"); end
User avatar
Youfie
Knight-Lieutenant
Knight-Lieutenant
 

Re: Help with a macro if Possible

by ryan5coote » Fri Jul 17, 2015 6:39 pm

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.
ryan5coote
Tester
 

Re: Help with a macro if Possible

by Liandri » Sat Jul 18, 2015 9:50 am

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.
Liandri
Tester
 

Re: Help with a macro if Possible

by StafordDev » Sat Jul 18, 2015 11:05 am

Use UnitBuff("player", "Stealth") instead of buffed("Stealth).
Kerli, an Alliance rogue.
User avatar
StafordDev
Tester
 

Re: Help with a macro if Possible

by LYQ » Sat Jul 18, 2015 11:36 am

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
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Help with a macro if Possible

by Youfie » Sat Jul 18, 2015 1:19 pm

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;
User avatar
Youfie
Knight-Lieutenant
Knight-Lieutenant
 

Next

Return to Addons & macros