Buff checking

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Buff checking

Post by fearless » Mon May 03, 2004 6:13 pm

I am modifying Fuergrissa's stick.mac and I am trying to do some buff / spell gem checks. I do not have the context quite right and was hoping somebody could correct it for me.

Code: Select all

   /if (!${Me.Buff[Vampiric Embrace].ID}) && (${Me.Gem[Vampiric Embrace]}) {
   /cast "Vampiric Embrace"
   /delay 4s
   }
Thank you.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Mon May 03, 2004 6:16 pm

this should work

Code: Select all

   /if (!${Me.Buff[Vampiric Embrace].ID}) && (${Me.Gem[Vampiric Embrace].ID}) {
   /cast "Vampiric Embrace"
   /delay 4s
   } 
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Mon May 03, 2004 6:20 pm

Will this actually work now?

Code: Select all

/if (!${Me.Buff[Vampiric Embrace].ID}) && (${Me.Gem[Vampiric Embrace].ID}) {
I thought you had to have it a single result like:

Code: Select all

/if (!${Me.Buff[Vampiric Embrace].ID} && ${Me.Gem[Vampiric Embrace].ID}) {

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Mon May 03, 2004 7:16 pm

Lax you got the () a bit wrong:
You have to ethier take out the middle pair like ml2517 did or add another out side pair like this.

Code: Select all

 /if ((!${Me.Buff[Vampiric Embrace].ID}) && (${Me.Gem[Vampiric Embrace].ID})) { 

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon May 03, 2004 9:39 pm

Thank you for the responses.

Just to further automate this a little bit, is there a way to determine the correct casting time so that I don't have to set the delay for each buff?

ie:

Code: Select all

/delay ${Casting.Time[Vampiric Embrace]}
or something to that effect?

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Mon May 03, 2004 9:55 pm

Code: Select all

/delay ${Math.Calc[(${Spell[Vampiric Embrace].CastTime}*10)+1].Int}

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon May 03, 2004 10:51 pm

Thank you all for the replies. I figured I was close, but i just could not get it to work correctly.

Unfortunately it seems that something still is not working right. I keep getting "No such 'int' member 'ID'. This is when using any of the 4 above variations.

The context that this is being used is:

Code: Select all

:main
   /doevents
   /if (!${Me.Buff[Deadeye].ID}) {
   /cast "Deadeye"
   /delay ${Math.Calc[(${Spell[Deadeye].CastTime}*10)+1].Int}
   }
   /if (!${Me.Buff[Grim Aura].ID}) {
   /cast "Grim Aura"
   /delay ${Math.Calc[(${Spell[Grim Aura].CastTime}*10)+1].Int}
   }
   /if (!${Me.Buff[Vampiric Embrace].ID}) {
   /cast "Vampiric Embrace"
   /delay ${Math.Calc[(${Spell[Vampiric Embrace].CastTime}*10)+1].Int}
   }
   /if (${Me.Combat}) /goto :mob
   /goto :main
And I replaced the Vampiric Embrace if line with each of the suggestions to see if they would work. Yes, it would be better move that entire section out of main and into a sub buffs or something, but I am just trying to get a couple tweaks working correctly before I do structure changes to it.

As far as which build I am using, I am NOT using the latest build, I am trying that next. Any other suggestions would be greatly appreciated.

The delay string from ml works great however.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon May 03, 2004 11:06 pm

Just to confirm, none of the above strings work, I get the "No such 'Int' member'ID'" error, even with May 3 compile.

Suggestions?