looking for some help on my macro...

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

w00tz0r
orc pawn
orc pawn
Posts: 18
Joined: Sun Dec 14, 2003 2:37 am

looking for some help on my macro...

Post by w00tz0r » Sun Jan 18, 2004 2:24 pm

Ive been working on a "keep a mob charmed" macro for my enchanter. After looking on the boards i found a couple ideas.

As far as i can tall the macro SHOULD work, but MQ gives me an error and im not sure why.

Code: Select all

Sub CheckPet
   /if n $char(pet)!=@PetID
    /call Recharm @PetID 
     /Call ChatOut 5 @MasterName "CHARM HAS BROKEN ON @PetName SNARE IT."
/return
Is where the error seems to be.

MQ Gives me the following. "couldn't parse '(pet)!=734'" (734 being the id of the pet i set as the Var @PetID)

any help would be greatly appreciated

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Sun Jan 18, 2004 5:31 pm

Code: Select all

Sub CheckPet
   /if n $char(pet)!=@PetID [color=cyan][b]{[/b][/color]
      /call Recharm @PetID
      /Call ChatOut 5 @MasterName "CHARM HAS BROKEN ON @PetName SNARE IT."
   [color=cyan][b]}[/b][/color]
/return
Try that. =)
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!