Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26-04)

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by warlock45 » Sun Nov 06, 2016 6:28 pm

http://www.macroquest2.com/wiki/index.php/TLO:Bool
Description
Creates a bool object using text. Value is set to TRUE unless text is "NULL" "FALSE" or "0" (capitalization does not count).
I do not think Bool will accomplish what you are after.

I am not currently having an issue with comparison using RD, but through out the process of working on RD I sometimes get some wonky behavior.

Some things to note: It pays to end MQ and restart it now and again. Same for your machine, it pays to reboot now and again. Some things can go nuts after a bit.

I would put in a

Code: Select all

	/declare Debug				int		outer 0
into the macro you are working on, so you can add some debugging messages to help you narrow down issues. Can even make them more section specific like

Code: Select all

	/declare HealDebug			int		outer 0
	/declare BardDebug			int		outer 0
or what ever you want to call them ( obviously heal or bard stuff wont be in this macro)

Then while your macro is running you can "/Varset Debug 1" to get the debugging working.
--------------------

Then of course you can add the lines of code to help you out. For instance

Code: Select all

/if (${Target.PctHPs}<${assistpct} && ${Target.Animation}!=32 && ${Target.Animation}!=110) { 
     /if (${Debug}) {
          /echo  Target ${Target.PctHPs} < ${Target.PctHPs}
          /echo Target Animation is ${Target.Animation}
         }
In other words you can add in helper messages to display information as the macro is running, that you would not normally see/want to see, or other things. You can put in "now entering this section" and "now leaving this section" type things, or "activating this" or "skipping that"

If nothing else, taking the time to follow through the macro and added some debugging lines here and there will help you understand the macro better.

kmcgrath
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu May 31, 2007 3:26 am

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by kmcgrath » Sun Nov 06, 2016 7:07 pm

woobs wrote:I don't see any posts from you in the ModBot thread about your problems. There are several examples of Sneak Attack, Hide, etc, in the Wiki, and most likely there is someone else who is using them.

Maybe you should post over there with your issues/questions, if you are still interested in using it.
Hi woobs,

I did see one example in the wiki which had some custom subs for sneak/hide. I used that ini but still couldn't get it to work. I'll look for more inis and see what I can shake loose.

I'm still going to try to sort this code out though, just to challenge myself.

kmcgrath
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu May 31, 2007 3:26 am

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by kmcgrath » Sun Nov 06, 2016 8:03 pm

Hi warlock45,

Thanks for taking a look.

I had a closer look at the Bool TLO after I posted and agree that I was using it incorrectly. It look like it simply evaluates a text string.

But I'm still stumped why the int comparisons in the if statement is constantly evaluating as TRUE. I have performed a full restart recently and in the middle of my testing and it didn't seem to change behaviour in any way but I'll do so again.

I might try explicitly casting the two comparees as ints and see what happens as my next step.

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by warlock45 » Sun Nov 06, 2016 10:18 pm

Code: Select all

:LastAttackCheck
|- Do we have an NPC targeted and is it hurt enough to attack?
			/if (${Target.PctHPs}<=${assistpct} && ${Target.Animation}!=32 && ${Target.Animation}!=110) {
				/if (${verbosity}>=1) /${channel} --> Assisting ${mainassist} on ${Target.CleanName} @ (${Target.PctHPs}%) HPs
				/echo Seeking a Victim...
				/goto :Foreverloop
				}
			}
		}
:EndAutoassist
I put this into my Notepad++ and spaced it out some so I can follow it a bit better. Found the section with the line you were referring to.

Looks like it already has verbosity functions to help with stuff, that helps, heh.

But it also looks like that is just checking if you have a target... and if so then go to the top of the macro again.

Hm....actually not seeing anything that plainly says "/attack on" except to re-engage (IE where does it initially engage?) Doesn't appear to use MQ2Melee's "/killthis"

....has an announce attack on and off...
...seems to have an auto attack when hit...
... looks like it turns attack off and back on when doing some abilities...

Looks like the first time it tries to attack (if not already attacking is

Code: Select all

|- It's possible we're poised for a Strike, check and fight if so

	/call Check_Behind
	/varset behindTarget ${Macro.Return}
	/if (${Target.ID} && ${Target.Type.Equal[NPC]} && ${Me.Standing} && ${Me.State.NotEqual[BIND]} && !${Me.Casting.ID} && ${behindTarget}) {
		/if (${strikeReady} && ${Me.AbilityReady["Backstab"]}) {
			/doability "Backstab"
			/if (${verbosity}>=1) /${channel} Executing a strike: ${Target.CleanName}
			/varset strikeReady FALSE
			/attack on
			}
		}
|- It's also possible we never got behind a target and strike expired!

	/if (${strikeReady} && ${Target.ID} && !${strikeTimer.Value} && ${Target.Type.Equal[NPC]}) {
		/if (${verbosity}>=2) /${channel} Didn't find the back of a target in 30 seconds!
		/varset strikeReady FALSE
		/attack on
		}
And that is provided you have a target, it is an NPC, you are standing, you are behind the target, and backstab is ready. I don't see a check for HPs there.

Then the next section looks to turn on attack, if strike is ready, you have a target, ther is no strike timer, and the target is an NPC. Not seeing a check for HPs there either.


Is your dude circling the mob and BSing right away?
Last edited by warlock45 on Sun Nov 06, 2016 10:46 pm, edited 1 time in total.

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by warlock45 » Sun Nov 06, 2016 10:29 pm

kmcgrath wrote:Hi warlock45,
But I'm still stumped why the int comparisons in the if statement is constantly evaluating as TRUE. I have performed a full restart recently and in the middle of my testing and it didn't seem to change behaviour in any way but I'll do so again.

I might try explicitly casting the two comparees as ints and see what happens as my next step.
To help determine if that is indeed the culprit lets add a debug line. Something like

Code: Select all

:LastAttackCheck
|- Do we have an NPC targeted and is it hurt enough to attack?
         /if (${Target.PctHPs}<=${assistpct} && ${Target.Animation}!=32 && ${Target.Animation}!=110) {
            /if (${verbosity}>=1) /${channel} --> Assisting ${mainassist} on ${Target.CleanName} @ (${Target.PctHPs}%) HPs
			/if (${Debug}) /cecho \ao  Target + Assist = \ar ${Target.PctHPs}<=${assistpct} \ao Animation = \ay ${Target.Animation}
            /echo Seeking a Victim...
            /goto :Foreverloop
            }
         }
      }
:EndAutoassist

make sure to add the declare at the top with the other declares

Code: Select all

 /declare Debug            int      outer 0
can either just save it as 1 while you are debugging, or wait till after the macro is started then "/varset Debug 1"

Then watch the MQ window to see what that section is reporting the target HP, engage HP, and target animations are.

I am sure other folks have better advice, I am just tossing out where I would start. If you think this is the issue, lets echo what the macro is seeing, and make sure =)

kmcgrath
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu May 31, 2007 3:26 am

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by kmcgrath » Mon Nov 07, 2016 12:25 am

warlock45 wrote:
Hm....actually not seeing anything that plainly says "/attack on" except to re-engage (IE where does it initially engage?) Doesn't appear to use MQ2Melee's "/killthis"

....has an announce attack on and off...
...seems to have an auto attack when hit...
... looks like it turns attack off and back on when doing some abilities...

Looks like the first time it tries to attack (if not already attacking is
...snip...
And that is provided you have a target, it is an NPC, you are standing, you are behind the target, and backstab is ready. I don't see a check for HPs there.

Then the next section looks to turn on attack, if strike is ready, you have a target, ther is no strike timer, and the target is an NPC. Not seeing a check for HPs there either.


Is your dude circling the mob and BSing right away?
The flow is a bit hard to follow with the gotos all over the place, but my reading of it was that first if condition that I am troubleshooting checks that we have a target and that the HP condition is met. Only then does it jump into foreverloop where melee starts. I think the target acquisition and HP check is a precondition for foreverloop.

Yes, my guy was initially running up, circling behind, and attacking anything my Autoassist person was targeting, even when the autoassist person wasn't engaging.

Now, he doesn't engage until some bizarre condition (that I haven't yet identified) is met. This started to happen after I configured MQ2Melee in an attempt to use Modbot, so I am chalking this particular behaviour up to MQ2Melee.

Thanks again for your insight. I'll try your debug line tonight.

kmcgrath
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu May 31, 2007 3:26 am

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by kmcgrath » Mon Nov 07, 2016 1:39 am

Ok, I get:

Code: Select all

DoCommand - Couldn't parse '/cecho \ao  Target + Assist = \ar 99<=90 \ao Animation = \ay 144'

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by warlock45 » Mon Nov 07, 2016 6:26 am

hm, odd. you playing live? colored echo ought to be part of the main download now

okay we will take out the fancy colored echo and just use plain old echo

Code: Select all

/echo Target + Assist = ${Target.PctHPs}<=${assistpct} Animation =  ${Target.Animation}

Matter of fact, lets test your build

Code: Select all

| Test1.mac
Sub Main
:MainLoop
    /if (${Target.PctHPs}<=90) {
		/echo Target + Assist = ${Target.PctHPs}<=90 Animation = ${Target.Animation}
		/delay 050
		/goto :MainLoop
		} else {
		/echo Nothing to see here, move along
		/delay 050
		/goto :MainLoop
		}
see which message you are getting. You will obviously want to target something that is over 90%, so you can test this even in the lobby. This ought to make sure your build is working right. I happen to have a rogue camped out in the Crypt of Decay, with it's zonewide debuff that knocks your toons hp/mana down to 80%, so while hide/sneaking I could target anything for 100%, then myself for 80%.. it switched messages appropriately for me.

kmcgrath
decaying skeleton
decaying skeleton
Posts: 8
Joined: Thu May 31, 2007 3:26 am

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by kmcgrath » Tue Nov 08, 2016 6:25 am

Alrighty then, I tried the Test1 macro. Yes, I am using a vanilla build for LIVE except for the MQ2Utilities provided as part of Modbot.

When targetting myself at 100%, or any full health mob:

Code: Select all

[MQ2] Nothing to see here, move along
When targetting a dead snake:

Code: Select all

[MQ2] Target + Assist = 0<=90 Animation = 32
When targetting a mostly dead snake:

Code: Select all

[MQ2] Target + Assist = 12<=90 Animation = 110
When targetting nothing:

Code: Select all

[MQ2] Target + Assist = NULL<=90 Animation = NULL
So, my build appears to be behaving fine with that macro.

I didn't get a chance to try the debug line in RH but will attempt to do that tomorrow.

Thanks again.

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: Rogue Helper v6.0 [Complete Rogue Macro] (Updated: 10-26

Post by warlock45 » Tue Nov 08, 2016 6:32 am

occurs to me to ask, do you have EQ's "auto attack when assisting" turned on? it is by default, and is turned off using "/assist off"

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

Top Interior Design Tips

Post by FrankJScott » Thu Aug 10, 2023 11:07 pm

Why don't you Google it! before you post

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

High Rated Product Info

Post by FrankJScott » Sat Jan 06, 2024 8:12 pm

Please try Google before asking about Awesome Product Website 52a1b86

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

Cool 322TOTO Site

Post by FrankJScott » Fri Apr 25, 2025 8:08 am

To the guy talking about bri ke bni, tf bank bri ke bca, transfer dari dana ke link aja, cara transfer bank bri ke bank mandiri, cara transfer dari bank bca, cara menambahkan dana, bank online terpercaya, bank terpercaya, transfer dari bank mandiri ke bri, cara mengisi akun, I highly suggest this continue on 322TOTO site or cara mengisi saldo bank mandiri, transfer ke bank bri, bank mandiri online, cara transfer bank bri ke bni, transfer ke bca dari mandiri, cara transfer mandiri ke bank bca, cara mengisi akun dana, perbankan mandiri, e money bank mandiri, mengisi saldo, not to mention this your input here about 322TOTO info on top of cara transfer dari bank, transfer dari bca ke mandiri, cara transfer rekening mandiri ke bri, kode untuk transfer bank bri, pembayaran e money, transfer cepat, website link aja, bank lpk, bank mandiri transfer, slot bank bni, not to mention this awesome 322 toto site which is also great. Also, have a look at this best 322 toto forum as well as cara transfer rekening bri, e money bank bri, cara transfer bank bni ke bank bca, cara mengisi saldo bank bri, bank termurah, cara transfer dari bank bni ke bank bri, bank saldo, transfer bank bri ke dana, cara transfer dari bank mandiri ke bank bca, tf bank mandiri ke bca, bearing in mind this great 322TOTO site as well as dg bank indonesia, cara deposit, cara memasukan saldo ke dana, cara transfer dari bank bni ke bri, cara mengisi, additional info for which is worth considering with setiap transaksi, kebijakan bank mandiri terbaru, cara mengisi saldo shopee, cara transfer lewat shopee pay, cara deposit bank, for good measure. Check more @ Best Natural Pet Supplements Guide ce3c8de

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

Excellent 322 Toto Blog

Post by FrankJScott » Fri Apr 25, 2025 12:25 pm

In reply to the man asking about situs togel lengkap, bandar togel terbesar dan terpercaya di indonesia, joker tembak ikan, togel game online, pasang togel online, situs judi terpercaya, 4 d slot, aplikasi slot terpercaya, permainan pragmatic slot, anda slot, I can vouch for this Tajir4D Togel for situs togel indonesia, toto terbesar, situs slot via pulsa, apa itu pragmatic slot, game slot joker gaming, main slot aman, situs slot dan togel, game slot online terbaru, via togel, game slot mudah menang, aplikasi game slot online, agen casino online, dewa togel slot online, judi togel slot, pragmatic play slot gampang menang, permainan slot online, bandar togel slot terbesar, slot asli, game slot yang mudah menang, semua situs slot online, situs togel online resmi terpercaya, also.
In response to the man asking about web judi slot online, bandar togel dan slot, situs togel idn, slot game slot, pragmatik play slot, cara main slot tembak ikan, situs slot, judi online 24 jam, slot agen, game online aman, I recommend this TAJIR4D for ahli slot login, nama situs slot online, dewa togel, game slot online, agent slot online, situs slot to, game online slot resmi, toto slot online, situs togel terbaik, dewa togel online, situs situs slot terbaik, permainan slot, game slot web, situs togel dan slot, tentang judi slot online, situs agen slot, tembak ikan online, togel singapore slot, permainan casino yang mudah menang, mudah menang, slot online joker, also. See More New 322TOTO Tips 6b3ce3c

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

Recommended Asset Klaim Bonus Eksklusif Blog

Post by FrankJScott » Thu Jun 05, 2025 8:10 pm

In response to the guy talking about slot terpercaya resmi, slot bgaming, permainan bisa, situs terbaik slot, situs slot yang ada bonus, situs bonus deposit, slot hari ini gacor, no slot, situs slot dunia, situs slot terbaik gacor, I highly suggest this her comment is here for judi online tips or bonus besar slot, slot bersama, rtp slot hari ini semua situs, roulette live, game slot terbaru dan terpercaya, situs slot gratis, online slot terpercaya, web slot resmi, slot rtp live, situs resmi game slot, as well as this weblink about kasino online details not to mention situs khusus slot, rtp slot adalah, rtp slot yang bagus, situs slot gratis deposit, online slot terpercaya, live zeus slot, mencari situs slot, slot sederhana, slot play online, daftar situs slot terpercaya, alongside all this straight from the source on virtual sports tips which is also great. Also, have a look at this dig this about table games info alongside all situs resmi slot gacor, situs gacor slot terpercaya, rtp slot hari ini gacor, slot sport, slot game gacor, situs slot ternama, situs casino88, slot ol, link slot yang gacor, rtp buku mimpi, and don't forget this see post on roulette online info together with situs situs slot terbaik, situs roulette terpercaya, slot terpercaya dan aman, slot baru online, slot online slot, that guy for alongside all dunia games slot, situs casino88, game slot online, situs slot yang terpercaya, permainan yang tidak, for good measure. Check more @ Best 7 RAJA TOGEL Tips 3c8dec9