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.