Search found 30 matches

by forbbs
03 Aug 2018, 20:30
Forum: Macro Plugin
Topic: Conditional statement fails
Replies: 4
Views: 3501

Re: Conditional statement fails

try to use some temporary var.
like that

Code: Select all

log $.lvl
templv=$.lvl
if(templv <= 85) {
}
by forbbs
02 Jun 2018, 21:18
Forum: Macro Plugin
Topic: [EventMacro]Doesn't automacro have var state condition?
Replies: 2
Views: 2600

Re: [EventMacro]Doesn't automacro have var state condition?

I would like do some state control logic using var condition. like that automacro assistme { party /^w([\d+])\+(stop|.*)/ hp > 10% sp > 5% timeout 2 priority 0 call { lock assistmetimer $followbuf = 1 $followlast = @config (followTarget) $followst = @config (follow) release assistmedo release assist...
by forbbs
24 May 2018, 21:37
Forum: Macro Plugin
Topic: [EventMacro]Doesn't automacro have var state condition?
Replies: 2
Views: 2600

[EventMacro]Doesn't automacro have var state condition?

In normal macro,it works.

Code: Select all

automacro mymacro {
    var myvar > 20
    call {
          log mymacro triggers
    }
}
Does eventMacro support it ?
by forbbs
21 Sep 2014, 06:03
Forum: Macro Plugin
Topic: How to open another openkore exe instance with macro?
Replies: 1
Views: 2455

Re: How to open another openkore exe instance with macro?

I know the problem:wxstart.exe can't call start.exe,and vice versa.
by forbbs
09 Sep 2014, 21:33
Forum: Macro Plugin
Topic: How to open another openkore exe instance with macro?
Replies: 1
Views: 2455

How to open another openkore exe instance with macro?

I tried following code: sub cmdRun { my ($exe) = @_; my $pid = fork(); if(not $pid){ exec($exe); exit(0); } return 1; } macro testit { $ret = cmdRun("start.exe --plugins=control\\plugins") log testit $ret } The new opened openkore reports error: Wide character in print at F:/MyDoc/kore/openkore_read...
by forbbs
07 Sep 2014, 07:38
Forum: Macro Plugin
Topic: syntax error in if statement
Replies: 3
Views: 3291

Re: syntax error in if statement

I have updated r8901,same problem.
by forbbs
23 Aug 2014, 06:24
Forum: Macro Plugin
Topic: syntax error in if statement
Replies: 3
Views: 3291

syntax error in if statement

macro plugin will report "syntax error in if statement" if somevar is undef or unset in codes like this

Code: Select all

if ($somevar == apple || $somevar == banana) {
 log  balabala
}
by forbbs
10 Aug 2014, 19:23
Forum: Discussion
Topic: Why packet header sent by Openkore is different from cilent?
Replies: 4
Views: 3067

Re: Why packet header sent by Openkore is different from cilent?

Seems all packet data sent by kore except header is same as client. here is the SocketSniff capture 'sync' log: openkore: Send: Return Code: 0x00000000 00000000 5F 03 9F 6D B8 00 _..m.. Return Code: 0x00000000 00000000 7F 00 C0 05 F3 EA ..... real client: Send: Return Code: 0x00000000 00000000 66 3...
by forbbs
10 Aug 2014, 12:13
Forum: Discussion
Topic: Why packet header sent by Openkore is different from cilent?
Replies: 4
Views: 3067

Why packet header sent by Openkore is different from cilent?

I'm in a private server,Openkore works fine.I noticed the header of pakcet send to server by openkore is different from real client.For example:the "sync" packet,openkore send "035F" to server,but real client exe send "3366" to server.They all works. If I changed openkore source to send " 3366" sync...