Efficient Macro Buff-Checking Buffer

A forum for macro code snippets to be used in writing other macros. Post routines or .inc files here only, completed macros go to the Macro Depot. MQ2Data format only!

Moderator: MacroQuest Developers

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Sat Aug 11, 2007 2:01 pm

Seems it can still be used that way, as I don't get any errors from it. I dunno if it's the same as .Stacks[0], but I'll see what differences happens when I experiment with it.

I Was aware of the change, just wansn't using it, as it didn't seem needed.

Yunto?
a grimling bloodguard
a grimling bloodguard
Posts: 502
Joined: Sat Nov 19, 2005 12:05 pm

Post by Yunto? » Sat Aug 11, 2007 6:07 pm

Night Hawk wrote:Seems it can still be used that way, as I don't get any errors from it. I dunno if it's the same as .Stacks[0], but I'll see what differences happens when I experiment with it.

I Was aware of the change, just wansn't using it, as it didn't seem needed.
You wont get errors, but ime either buffs wont recast, or buffs will chain recast (cant remember).
(10:02:10 AM) fearless: kate beckinsale
(10:02:18 AM) fearless: chick from underpants
(10:02:27 AM) fearless: er . . . world, underworld

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Sat Aug 11, 2007 6:48 pm

When I said "it seems to work that way", I mean that I've been using that way, and for a while.

I knew when the changes happened, and I implemented this change after that.
I'm using the code I posted, and it works fine.

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Mon Aug 20, 2007 8:15 pm

2 fixes for last posted code...

Fixed a typ-o on line 58

Code: Select all

      /if (!${Me.Pet.ID} {
Should be:

Code: Select all

      /if (!${Me.Pet.ID}[color=red])[/color] {

Add:

Code: Select all

/varset BuffLine ${BuffLine.Right[-5]}
to top of Event_Buffs sub. This is so it doesn't fine "2" in "MQ2" :roll:

Code changes are applied to last post as well.