Needing help with Board Quest Macro

International

Moderator: Moderators

Message
Author
JulianTi
Noob
Noob
Posts: 12
Joined: 12 Jul 2013, 12:49
Noob?: Yes

Needing help with Board Quest Macro

#1 Post by JulianTi »

I'm having trouble with a macro quest in which the it keeps on displaying:

[macro] tempMacro3 error: error in 3: syntax error in if statement

Can anybody help me?

Here is my macros.txt:

Code: Select all

automacro checkQuest {
#   hook packet/quest_update_mission_hunt
   hook target_died
   call {
      $metal = @eval($::questList->{62745}->{missions}->{1613}->{count})
      $raff = @eval($::questList->{62746}->{missions}->{1162}->{count})
      $stemworm = @eval($::questList->{62747}->{missions}->{1215}->{count})
      if ($metal == 150 && $raff == 150 && $stemworm == 150) {call questTurnIn}
      else {goto end}
      :end
   }
}

macro questTurnIn {
   do move lighthalzen 200 155
   pause 1
   do talk @npc (194 161) c c r1 c r1 c c
   :end
}

licielg
Human
Human
Posts: 37
Joined: 17 Oct 2013, 12:45
Noob?: No

Re: Needing help with Board Quest Macro

#2 Post by licielg »

You ca use in automacro

Code: Select all

automacro checkQuest {
eval $::questList->{62745}->{'missions'}->{1613}->{'count'} eq 150 && $::questList->{62746}->{'missions'}->{1162}->{'count'} eq 150 && $::questList->{62747}->{'missions'}->{1215}->{'count'} eq 150
exclusive 1
call {
   do move lighthalzen 200 155
   pause 1
   do talk @npc (194 161) c c r1 c r1 c c
}

JulianTi
Noob
Noob
Posts: 12
Joined: 12 Jul 2013, 12:49
Noob?: Yes

Re: Needing help with Board Quest Macro

#3 Post by JulianTi »

I have changed the codes to:

Code: Select all

automacro checkQuest1 {
   eval $::questList->{62745}->{missions}->{1613}->{count} eq 150 
   exclusive 1
   run-once 1
   call {
     do move lighthalzen 200 155
     pause 1
     do talknpc 194 161 c w1 c w1 r1 w1 c w1 r0 w1 r0 w1 c
     do talknpc 194 161 c w1 c w1 r0 w1 c w1 r5 c
   }
}

automacro checkQuest2 {
   eval $::questList->{62747}->{missions}->{1215}->{count} eq 150
   exclusive 1
   run-once 1
   call {
     do move lighthalzen 200 155
     pause 1
     do talknpc 194 161 c w1 c w1 r1 w1 c w1 r0 w1 r2 w1 c
     do talknpc 194 161 c w1 c w1 r0 w1 c w1 r5 c
   }
}

automacro checkQuest3 {
   eval $::questList->{62746}->{missions}->{1162}->{count} eq 150 
   exclusive 1
   run-once 1
   call {
     do move lighthalzen 200 155
     pause 1
     do talknpc 194 161 c w1 c w1 r1 w1 c w1 r0 w1 r1 w1 c
     do talknpc 194 161 c w1 c w1 r0 w1 c w1 r5 c
   }
}
But the problem is that it keeps on running checkQuest2 and loops it all over again. There is also the munch, munch, unkown keyword problem exists at the lines of the eval$::questList part for all of the 3 macros.

Oh yeah, what does the "eq 150" means?

JulianTi
Noob
Noob
Posts: 12
Joined: 12 Jul 2013, 12:49
Noob?: Yes

Re: Needing help with Board Quest Macro

#4 Post by JulianTi »

I have finally solved it.. It was my outdated macro plugins.. :shock:
Btw, thanks for trying to solve my problem and sorry for wasting your time.

:mrgreen: :mrgreen:

Enseladang_Talong
Noob
Noob
Posts: 5
Joined: 05 Feb 2016, 19:56
Noob?: Yes

Re: Needing help with Board Quest Macro

#5 Post by Enseladang_Talong »

Hello!! After getting the quest how can you make your character move to the where you need to kill the monster for the quest?

Post Reply