Pet presence check ?

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

Moderator: MacroQuest Developers

Sporked
orc pawn
orc pawn
Posts: 28
Joined: Tue Jan 06, 2004 7:08 am

Pet presence check ?

Post by Sporked » Fri May 07, 2004 2:16 pm

DoCommand - Couldn't parse '&& if (!0) || if (!NULL = 0 ) /call "Aeldorb's Animation"'

I'm trying to do a check to see if i have a pet, if i dont have a pet (charmed OR summoned) then cast the stupid animation... I've tried multiple versions of this, including if (${petid} = 0).. it can't parse if (0 = 0), in a way where if i DO have a pet. it will just skip the line. which makes sense to me... Help?

Code: Select all

Sub petstuff
 /if (!${Me.Pet.ID}) && if (!${Int[${MyPet}]})  /call cast "Aeldorb's Animation" 
         /return

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

Post by ml2517 » Fri May 07, 2004 2:17 pm

Try this:

Code: Select all

Sub petstuff
    /if (!${Me.Pet.ID}>0) /call Cast "Aeldorb's Animation"
/return 

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 » Fri May 07, 2004 2:21 pm

err
just do /if (!${Me.Pet.ID}) /call Cast fldkjglfdg
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Fri May 07, 2004 2:23 pm

What's with the >0 in that statement? :?:

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

Post by ml2517 » Fri May 07, 2004 3:55 pm

Its just another way to make it spit out a true or false statement. Lax's way would work fine too.