Page 1 of 1

Pet presence check ?

Posted: Fri May 07, 2004 2:16 pm
by Sporked
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

Posted: Fri May 07, 2004 2:17 pm
by ml2517
Try this:

Code: Select all

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

Posted: Fri May 07, 2004 2:21 pm
by Lax
err
just do /if (!${Me.Pet.ID}) /call Cast fldkjglfdg

Posted: Fri May 07, 2004 2:23 pm
by Preocts
What's with the >0 in that statement? :?:

Posted: Fri May 07, 2004 3:55 pm
by ml2517
Its just another way to make it spit out a true or false statement. Lax's way would work fine too.