Syntax Error when doing Talk @NPC #

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

moxman
Noob
Noob
Posts: 2
Joined: 07 Feb 2010, 10:55
Noob?: Yes

Syntax Error when doing Talk @NPC #

#1 Post by moxman »

Hi,

There's this npc at mosk_fild01 that has two NPC IDs at the same location.
I need to talk to the second NPC number but doing the command
do talk @npc 113 108 keeps forcing me to talk to the first NPC #

Now, i see a command of
do talk @npc # but doing so will give me a syntax error

here's the code:

Code: Select all

automacro quest {
location mosk_fild01 110 114
run-once 1
call Quest-1
}

macro Quest-1 {
   do talk @npc 50876 c c r0 c c c c
   release Squirrelquest
}
the error i get is
Syntax Error in function 'talk' <talk to NPC>
Usage: Talk <NPC# : cont : resp : num : text : no> [<response #>:<number #>]
glennlevi
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 19 May 2011, 00:40
Noob?: Yes

Re: Syntax Error when doing Talk @NPC #

#2 Post by glennlevi »

moxman wrote:Hi,

There's this npc at mosk_fild01 that has two NPC IDs at the same location.
I need to talk to the second NPC number but doing the command
do talk @npc 113 108 keeps forcing me to talk to the first NPC #

Now, i see a command of
do talk @npc # but doing so will give me a syntax error

here's the code:

Code: Select all

automacro quest {
location mosk_fild01 110 114
run-once 1
call Quest-1
}

macro Quest-1 {
   do talk @npc 50876 c c r0 c c c c
   release Squirrelquest
}
the error i get is
Syntax Error in function 'talk' <talk to NPC>
Usage: Talk <NPC# : cont : resp : num : text : no> [<response #>:<number #>]
To get to mosk_fild01, you use warp command/are warped by NPC right?
Maybe you have another macro that warps you to mosk_fild01 110 114?
Well if you get there by warping, NPC number should be the same everytime.
Next time you warp there, check the openkore console and get the NPC number instead of the location.

Your macro should be like this:

Code: Select all

automacro quest {
location mosk_fild01 110 114
run-once 1

call {
   do talk (insert NPC number here) c c r0 c c c c
   release Squirrelquest
}
}
or you can change the talk sequence if youre having a hard time with that

Code: Select all

automacro quest {
location mosk_fild01 110 114
run-once 1

call {
   do talk (insert NPC number here)
   pause 2
   do talk resp 0
   pause 1
   release Squirrelquest
}
}
in the above macro, after you talk to the NPC, it will auto continue (if autotalkcont is set to 1), then it will respond 0, then auto continue again.


One last thing, the NPC number should be a low amount. For example, if there are only 3 NPCs in the immediate area, 3 should be the highest NPC number for talk command.

Use this format

Code: Select all

NPC NAME__LOCATION__NPC ID__NPC #
Kafra (123, 142) (ID 22288262) (0)
The last number "0" is the one you need to use for talk command.
moxman
Noob
Noob
Posts: 2
Joined: 07 Feb 2010, 10:55
Noob?: Yes

Re: Syntax Error when doing Talk @NPC #

#3 Post by moxman »

glennlevi wrote:
moxman wrote:Hi,

There's this npc at mosk_fild01 that has two NPC IDs at the same location.
I need to talk to the second NPC number but doing the command
do talk @npc 113 108 keeps forcing me to talk to the first NPC #

Now, i see a command of
do talk @npc # but doing so will give me a syntax error

here's the code:

Code: Select all

automacro quest {
location mosk_fild01 110 114
run-once 1
call Quest-1
}

macro Quest-1 {
   do talk @npc 50876 c c r0 c c c c
   release Squirrelquest
}
the error i get is
Syntax Error in function 'talk' <talk to NPC>
Usage: Talk <NPC# : cont : resp : num : text : no> [<response #>:<number #>]
To get to mosk_fild01, you use warp command/are warped by NPC right?
Maybe you have another macro that warps you to mosk_fild01 110 114?
Well if you get there by warping, NPC number should be the same everytime.
Next time you warp there, check the openkore console and get the NPC number instead of the location.

Your macro should be like this:

Code: Select all

automacro quest {
location mosk_fild01 110 114
run-once 1

call {
   do talk (insert NPC number here) c c r0 c c c c
   release Squirrelquest
}
}
or you can change the talk sequence if youre having a hard time with that

Code: Select all

automacro quest {
location mosk_fild01 110 114
run-once 1

call {
   do talk (insert NPC number here)
   pause 2
   do talk resp 0
   pause 1
   release Squirrelquest
}
}
in the above macro, after you talk to the NPC, it will auto continue (if autotalkcont is set to 1), then it will respond 0, then auto continue again.


One last thing, the NPC number should be a low amount. For example, if there are only 3 NPCs in the immediate area, 3 should be the highest NPC number for talk command.

Use this format

Code: Select all

NPC NAME__LOCATION__NPC ID__NPC #
Kafra (123, 142) (ID 22288262) (0)
The last number "0" is the one you need to use for talk command.
Thank for the response! I will give each one a try and see which ones work.

I can get to mosk_fild01 easy but i got problems talking to that squirrel. somehow it has two NPC #s in one location. One you cannot that doesnt respond and one that's key to the acorn quest.
glennlevi
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 19 May 2011, 00:40
Noob?: Yes

Re: Syntax Error when doing Talk @NPC #

#4 Post by glennlevi »

moxman wrote: Thank for the response! I will give each one a try and see which ones work.

I can get to mosk_fild01 easy but i got problems talking to that squirrel. somehow it has two NPC #s in one location. One you cannot that doesnt respond and one that's key to the acorn quest.
Just get the right NPC number. Everytime you ward to that map, the NPC number should be the same (unless your server changes their coordinates or adds NPCs in the area).