Couldn't parse 'if $v53>=$a(2,0) /return

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

boredom
a lesser mummy
a lesser mummy
Posts: 49
Joined: Thu Jun 19, 2003 3:45 pm

Couldn't parse 'if $v53>=$a(2,0) /return

Post by boredom » Wed Jun 25, 2003 10:39 pm

I am new to MacroQuest, so I apoligize in advance. I've been getting some error messages I just don't know how to fix when modifying the cleric bot posted in the Macro section, hopefully someone can stear me in the right direction.

2 error messages I get are:
Couldn't parse 'if $v53>=$a(2,0) /return
Couldn't find label "WatchLoop"

here is the sub where this code is found:

Sub CheckHealth
||| Personalized |||
/if n "$IsHealer"==0 /return
/varset GroupMember 1
:WatchLoop
/doevents
/if n $spawn($a(2,$GroupMember),hp,pct)<41 {
/if n $spawn($a(2,$GroupMember),hp,pct)>=1 {
/stand
/delay 5
||||||||||||||||||||||||||||Begin Edit|||||||||||||||||||||||||||||||||||||||
/tell "$MasterName" Casting Complete Heal on %T. 10 seconds.
/call SpellSub "Complete Healing"
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/delay 3
/if "$SitAfterCast"=="1" /sit on
/delay 15
/press esc
}
}
if $GroupMember>=$a(2,0) /return
/varadd GroupMember 1
/goto WatchLoop
||| UN-Personalized |||
/return

GroupMember is #defined as v53

getting some other errors as well, but I'd like to take care of these first.

Boredom Overwhelming

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Jun 25, 2003 10:49 pm

if n $GroupMember>=$a(2,0) /return

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Wed Jun 25, 2003 10:49 pm

need a / before if...

Code: Select all

[b]/[/b]if $GroupMember>=$a(2,0) /return
and a : before WatchLoop...

Code: Select all

/goto [b]:[/b]WatchLoop