r7820 | [Macro] If-call statement skipping next line

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Message
Author
kabayongtao
Noob
Noob
Posts: 8
Joined: 28 Jul 2011, 09:35
Noob?: No

r7820 | [Macro] If-call statement skipping next line

#1 Post by kabayongtao »

I just started to type some macros and I ran into something.

When I use if-call more than once consecutively, it has this tendency to skip the next line. Although It seems there is no problem when I use call alone. (without if)

Code: Select all

macro test{
   $true1 = 1
   $true2 = 2
   $true3 = 3
   
   call one
   call two
   call three
 
   if ($true1 == 1) call one
   log SKIP ME
   if ($true2 == 2) call two
   log SKIP ME
   if ($true3 == 3) call three
   log SKIP ME
     
   if ($true1 == 1) call one
   if ($true2 == 2) call two
   if ($true3 == 3) call three
 
   
}
 
macro one{  
   log one
}
 
macro two{
   log two
}
 
macro three{
   log three
}
Output

Code: Select all

[macro log] one
[macro log] two
[macro log] three
[macro log] one
[macro log] two
[macro log] three
[macro log] one
[macro log] three
serverType:pRO
To reproduce:
  • Download clean openkore r7820 and macro plugin
    Dump the macro code above into macro.txt
    Run openkore start.exe
    After logging into the game, run macro test

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: r7820 | [Macro] If-call statement skipping next line

#2 Post by EternalHarvest »

Fixed.

Post Reply