error in 0: syntax error

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
enstain
Noob
Noob
Posts: 5
Joined: 20 Jun 2015, 09:20
Noob?: Yes

error in 0: syntax error

#1 Post by enstain »

I am having trouble with macros. This is the first macro I am trying to run, but I get this error in the console: "[macro] warper error: error in 0: syntax error"

My openkore is 2.1.0 and the macro plugin is 2.0.3.
I have tried older versions of plug in - no changes. I have tried re-saving the macros.txt file to UTF8 without BOM using Notepad++.

This is the macro I am trying to run:

Code: Select all

 macro warper {
inventory "Blue Gemstone" > 1
timeout 20 
	call {
      do ai manual
      pause 1
      do move 264 255
      do sl 27 265 256
      pause 2
      do warp 1
      pause 1
      do move 265 256
      do ai on
	} 
I have also tried another one

Code: Select all

 macro turnin {
   call {
      do ai manual
      pause 1
      do move 273 205
	  do talknpc 271 213 c c r0 
	  do move 35 28
      do talknpc 37 39 c c c
	  do talknpc 36 38 c r2 c r0
      pause 2
      do move 31 10
      do ai on
   }
timeout 20
} 

Same problem.

Can anyone help me out here?

Thank you
Last edited by enstain on 15 Feb 2016, 17:43, edited 1 time in total.

enstain
Noob
Noob
Posts: 5
Joined: 20 Jun 2015, 09:20
Noob?: Yes

Re: error in 0: syntax error

#2 Post by enstain »

I still have not found a solution to this problem. Is this something basic I am missing or something unique?
Still waiting for some help :)

razi
Noob
Noob
Posts: 2
Joined: 19 Feb 2016, 01:22
Noob?: Yes

Re: error in 0: syntax error

#3 Post by razi »

Did you missing } <--- on your macro warper?

Locked