Page 1 of 1

Help with rogue macros

PostPosted: Sat Aug 08, 2015 10:06 pm
by Judo
Hey guys,

I was wondering if y'all could let me know if the follow macros (or the following types of macros) work for you. After combing through many posts I'm starting to think that these work for some but not others. I'm wondering if it has anything to do with my ping? I'm located in NA.

Intention: If I kill a target and am low on energy, I want to start my auto attack on the next target without left clicking the next target.
Problem: Spamming this macro will cause me to stop my attack
Code: Select all
/script if (not PlayerFrame.inCombat) then AttackTarget() end
/cast Sinister Strike


This one works, but it uses up a spot on my bar. I guess I'm just anal.
Code: Select all
/script if not IsCurrentAction(49) then UseAction(49) end;
/cast Sinister Strike


===================================================

Intention: I want to open with Garrote, but it doesn't work unless I'm behind my target. Sometimes, it's more important that I start DPSing instead of moving to the back of my target. So I want to Garrote, but if it fails, then Sinister Strike.
Problem: It attacks with Sinister Strike every time.

Code: Select all
/script CastSpellByName("Garrote")
/script SpellStopCasting()
/script CastSpellByName("Sinister Strike")


To troubleshoot, I took out the 3rd line. I get the error "Interrupted" if I'm behind the target. If I'm in front of the target, the error is "You must be behind your target".

Code: Select all
/script CastSpellByName("Garrote")
/script SpellStopCasting()


==================================================

Bonus Macros for enquiring rogues who happen upon this thread.

Use: Bandage self without losing combo points. My bandages are located in slot 1 of my backpack.
Code: Select all
/script UseContainerItem(0, 1)
/script SpellTargetUnit("player")


Use: Spammable macro to sap the closes enemy
Code: Select all
/script ClearTarget()
/script TargetNearestEnemy()
/cast sap


Thanks!
Judo

Re: Help with rogue macros

PostPosted: Sat Aug 08, 2015 11:03 pm
by Aunstic
Judo wrote:Intention: If I kill a target and am low on energy, I want to start my auto attack on the next target without left clicking the next target.
Problem: Spamming this macro will cause me to stop my attack
Code: Select all
/script if (not PlayerFrame.inCombat) then AttackTarget() end
/cast Sinister Strike


This one works, but it uses up a spot on my bar. I guess I'm just anal.
Code: Select all
/script if not IsCurrentAction(49) then UseAction(49) end;
/cast Sinister Strike


I don't understand your second problem here. Only thing I can think of for your first one is to detect both combat and if you're already auto-attacking:
Code: Select all
/script if(PlayerFrame.inCombat ~= nil and not IsCurrentAction(49)) then AttackTarget(); elseif(PlayerFrame.inCombat ~= nil and IsCurrentAction(49)) then CastSpellByName("Sinister Strike"); else CastSpellByName("Sinister Strike"); end;


Judo wrote:Intention: I want to open with Garrote, but it doesn't work unless I'm behind my target. Sometimes, it's more important that I start DPSing instead of moving to the back of my target. So I want to Garrote, but if it fails, then Sinister Strike.
Problem: It attacks with Sinister Strike every time.

Code: Select all
/script CastSpellByName("Garrote")
/script SpellStopCasting()
/script CastSpellByName("Sinister Strike")


To troubleshoot, I took out the 3rd line. I get the error "Interrupted" if I'm behind the target. If I'm in front of the target, the error is "You must be behind your target".

Code: Select all
/script CastSpellByName("Garrote")
/script SpellStopCasting()


Checking if you're behind a target requires registering an event to detect the error "You must be behind your target" or something along those lines. I can only assume the macro would be massive and pointless to use because you need a check to make sure you're stealthed or check for "You must be stealthed to use that" in order to not be spammed with spell cast errors.

Best thing I'll do for you is:
Code: Select all
/script if (IsCurrentAction(34)) then CastSpellByName("Garrote"); else CastSpellByName("Sinister Strike"); end;

Detects stealth, but doesn't fallback to SS if garrote fails.

Unless you want to test a hell of a one liner: http://www.ownedcore.com/forums/world-o ... ncept.html

Re: Help with rogue macros

PostPosted: Sun Aug 09, 2015 8:42 pm
by Judo
Detects stealth, but doesn't fallback to SS if garrote fails.


Thanks for taking the time to respond, but that's not quite the condition that I'm going for.

Unless you want to test a hell of a one liner: http://www.ownedcore.com/forums/world-o ... ncept.html


I tried to utilize that piece of code as a macro, but that doesn't seem right. Do I need SuperMacro addon or something?

Re: Help with rogue macros

PostPosted: Sun Aug 09, 2015 9:06 pm
by LYQ
the linked macro from owned core won't work on vanilla

edit: just looked at it, it would be shit anyways

Re: Help with rogue macros

PostPosted: Sun Aug 09, 2015 9:10 pm
by Aunstic
LYQ wrote:the linked macro from owned core won't work on vanilla

Noticed it doesn't use CreateFrame(), but it is feasible to detect the error and fallback to SS by registering an event to a frame. It's just retarded to do so since there's a stealth actionbar for a reason ... you can just put SS on it.

Re: Help with rogue macros

PostPosted: Sun Aug 09, 2015 10:00 pm
by Judo
there's a stealth actionbar for a reason ... you can just put SS on it.


All this was was just a convenience macro that worked for me on 3.3.5. I got used to it so I wanted it back for Vanilla.

It really is just as simple as a one-button special-attack. I would open with Garrote (if possible), but Sinister Strike if Garrote wouldn't start.

Thanks guys. I guess I'll just mash buttons.

Re: Help with rogue macros

PostPosted: Thu Aug 13, 2015 7:27 pm
by warcraftselblatt
I am pretty new to it myself, but I recommend just getting LazyRogue, from what I can tell you could do all this as one macro with the lazyrogue script.

Re: Help with rogue macros

PostPosted: Fri Aug 14, 2015 6:31 pm
by Judo
I looked at LazyRogue, I looked through the macros/scripting. The way this server works, I don't think it will work properly. I have yet to see posts from people who say "I use LazyRogue on Nost and it works great!"

Re: Help with rogue macros

PostPosted: Fri Aug 14, 2015 9:42 pm
by warcraftselblatt
I use LazyRogue on Nost and it works great!

Seriously, works great for me. I think a lot of reason people dont use it is because at some point is was banned by Blizzard (I think during TBC), so there is no support left for it, and the website for it is dead.

If you look at the premades and the help page the addon has its pretty easy to figure out what each function does and how to use it.

Re: Help with rogue macros

PostPosted: Sat Aug 15, 2015 2:01 am
by Judo
warcraftselblatt wrote:I use LazyRogue on Nost and it works great!


Alright... I'm in!