if more than one spell is checked for ?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

if more than one spell is checked for ?

Post by Fuergrissa » Mon Apr 26, 2004 1:59 pm

ok i have this code to check for BB and if not cast my FJBoots

Code: Select all

 /if (!${Me.Buff[Bootstrutter's Blessing].ID}) { 
   /cast item "Fabled Journeyman's Boots" 
   /delay 4s 
   } 
what i want to do is also check for either Spirit of the wolf or Spirit of Eagle as well, any kind soul help me please.

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 Apr 26, 2004 2:13 pm

just add &&
/if (!${Me.Buff[Bootstrutter's Blessing].ID} && !${Me.Buff[Spirit of Wolf].ID} && ${Me.Buff[Spirit of Eagle].ID}) {
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Tue Apr 27, 2004 1:51 am

thank you lax

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

almost !

Post by Fuergrissa » Tue Apr 27, 2004 5:35 pm

ok its not actually casting now as i think it is checking for ALL of the spells listed is there an OR instead of &&

Code: Select all

 /if (!${Me.Buff[Bootstrutter's Blessing].ID} && !${Me.Buff[Spirit of Wolf].ID} && ${Me.Buff[Spirit of Eagle].ID}) {

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 » Tue Apr 27, 2004 5:52 pm

Sorry, typo in there

Code: Select all

/if (!${Me.Buff[Bootstrutter's Blessing].ID} && !${Me.Buff[Spirit of Wolf].ID} && !${Me.Buff[Spirit of Eagle].ID}) { 
Problem was there was no ! before the spirit of eagle check. This means it would only do the /cast if you had Spirit of Eagle on.

but the answer to your question is, || is for logical OR
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Wed Apr 28, 2004 2:47 am

again, thank you Lax.