failed to parse

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

Moderator: MacroQuest Developers

captainhollywooddave
orc pawn
orc pawn
Posts: 10
Joined: Sun Nov 21, 2004 7:24 am

failed to parse

Post by captainhollywooddave » Mon Dec 06, 2004 7:08 pm

im getting msg
could not parse /if command. could not find command to execute.

im not sure why, what im trying to do is add the ability to heal pet to sircheese druid macro

Code: Select all

/if (${Group[${i}].Pet.PctHPs} < 101} && ${Group[${i}].Name.NotEqual[${MainAssist}])
	/target id ${Group[${i}].Pet.ID}
	/gsay ${SpellCompHeal} on >> %T << 

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 » Mon Dec 06, 2004 7:40 pm

Where's the closing } for the second ${Group[]}?

anon_coward
a lesser mummy
a lesser mummy
Posts: 40
Joined: Wed Mar 24, 2004 11:11 pm

Post by anon_coward » Mon Dec 06, 2004 7:49 pm

It's next to the 101 :roll:

Try this

Code: Select all

/if (${Group[${i}].Pet.PctHPs} < 101 && ${Group[${i}].Name.NotEqual[${MainAssist}]})
   /target id ${Group[${i}].Pet.ID}
   /gsay ${SpellCompHeal} on >> %T <<

JP5
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Jul 06, 2004 10:32 pm

Post by JP5 » Tue Dec 07, 2004 2:41 pm

Not sure I understand this code. Wouldn't you want to have a check for pet health that's like <50, or <40 before you trigger a complete heal?

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Tue Dec 07, 2004 3:00 pm

What are you talking about? If they're under 101% HPs, they need a heal where I come from!

I'm guessing it was lower before he started jacking around to figure out why the hell it wasn't working with his brackets all over the place.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Tue Dec 07, 2004 4:45 pm

Perhaps where he comes from, pets normally give 6000%?

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Dec 07, 2004 5:16 pm

There are no brackets around the conditional code:

Code: Select all

/if (${Something}) {
   /dosomething
}

insanitywiz
a hill giant
a hill giant
Posts: 250
Joined: Mon Jul 08, 2002 7:50 am

Post by insanitywiz » Wed Dec 08, 2004 5:30 pm

If my pet isn't working at 110% I kill him off as an example to all future pets to work harder.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Wed Dec 08, 2004 6:11 pm

I do that to people at work.