Parse error....ARGH

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

Genoius
a lesser mummy
a lesser mummy
Posts: 49
Joined: Sat Jul 13, 2002 8:20 am

Parse error....ARGH

Post by Genoius » Sat Jul 13, 2002 10:16 am

Okay, I am making a fletching macro to skill you up in fletching. I am trying to set my current skill in fletching to a variable, and I am getting a
"Couldn't parse '/setvar v0 $char(skill,"Fletching")'"...please help!

Code: Select all

      /setvar v0 $char(skill,"Fletching")
      /if n $v0<=15 { /goto :16 } else
      /if n $v0<=35 { /goto :36 } else
      /if n $v0<=45 { /goto :46 } else
      /if n $v0<=55 { /goto :56 } else
      /if n $v0<=67 { /goto :68 } else
      /if n $v0<=81 { /goto :82 } else
      /if n $v0<=101 { /goto :102 } else
      /if n $v0<=121 { /goto :122 } else
      /if n $v0<=134 { /goto :135 } else
      /if n $v0<=161 { /goto :162 } else
      /if n $v0<=181 { /goto :182 } else
Also, I know I could probably take out the {}/else also, just put em in to play with it :P

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Sat Jul 13, 2002 1:52 pm

Salutations,

Code: Select all

      /setvar v0 $char(skill,"Fletching")
      /if n $v0<=15 {
        /goto :16 
      } else /if n $v0<=35 { 
       /goto :36 
      } else /if n $v0<=45 { 
        /goto :46 
      } else /if n $v0<=55 { 
       /goto :56 
      } else /if n $v0<=67 { 
       /goto :68 
      } else /if n $v0<=81 { 
       /goto :82 
      } else /if n $v0<=101 { 
       /goto :102
      } else /if n $v0<=121 { 
       /goto :122 
      } else /if n $v0<=134 { 
       /goto :135 
      } else /if n $v0<=161 { 
       /goto :162 
      } else /if n $v0<=181 {
       /goto :182 
      }

Genoius
a lesser mummy
a lesser mummy
Posts: 49
Joined: Sat Jul 13, 2002 8:20 am

........dumb -A- me

Post by Genoius » Sat Jul 13, 2002 2:33 pm

okay, I see the problem now that I have had some sleep. Thanks for the help L124RD ;)

We both missed it.

I was using /setvar instead of /varset......CRIKEY! now to debug the other tired errors that late night/early mornings will get ya!

Thanks thanks!

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Sat Jul 13, 2002 3:20 pm

Salutations,
well... this should fix another error of yours... i don't think that the /if's work the way you had em...

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sat Jul 13, 2002 3:43 pm

I think the brackets do work as long as they come exactly one space after the /if statement.

For example, This works:

Code: Select all

/if foo { bar }
But, this does not:

Code: Select all

/if foo
   { 
      bar
   }
At least, that's how I interpret the readme.

Genoius
a lesser mummy
a lesser mummy
Posts: 49
Joined: Sat Jul 13, 2002 8:20 am

Working

Post by Genoius » Sat Jul 13, 2002 3:55 pm

I think i got it working, but gonna wait till tonight to post the final product. Work sucks! Anyway, gotta be there soon, so adios for now, and thanks for the help. The IFs are working how they are set up, I just dont have the plat right now! ARGH...