Page 1 of 1

{ } info (unsure if it's a bug)

Posted: Sun Jul 07, 2002 10:38 pm
by Amadeus
I'm unsure if this was intended or not; however...

This code gives a parse error and will not execute:

Code: Select all

      /if "$cursor(name)"=="Plains Pebble" 
         {
            /click left auto
            /delay 1
            /call SpellSub 6 7
            /delay 1
            /click left auto
         }
However, this code seems to work just fine:

Code: Select all

      /if "$cursor(name)"=="Plains Pebble" {
          /click left auto
          /delay 1
          /call SpellSub 6 7
          /delay 1
          /click left auto
      }

Posted: Sun Jul 07, 2002 10:45 pm
by L124RD
Salutations,
readme wrote:Command can be { which will run everything up to the next }

Posted: Sun Jul 07, 2002 10:53 pm
by Amadeus
Ok, I had to read that a few times to see that in the readme, he was equating { to a / command. Therefore, then, the bracket has to come exactly one space after the /if statement.

I just saw the { } implementation and was off and running with my old C/C++ habits!! :P :oops:

Posted: Sun Jul 07, 2002 10:55 pm
by L124RD
Salutations,
same...