Openkore.com

OpenKore Forums
It is currently 19 Oct 2019, 11:41

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: help me macro Addition and subtraction
PostPosted: 03 Apr 2019, 12:20 
Offline
Noob
Noob

Joined: 03 Apr 2019, 11:40
Posts: 8
反外挂验证人员#2: 12 - 6 〓 ( ? )
反外挂验证人员#2: 输入 'talk num <nomer #>' 指定对话内容.
NPC 反外挂验证人员#2 (0): 输入 'talk num <nomer #>' 指定对话内容.
talk num 12
反外挂验证人员#2: - 对不起,您验证出错.
NPC 反外挂验证人员#2 (0): 输入 'talk cont' 继续对话
反外挂验证人员#2: [ 反外挂剩余 2 次验证机会]
反外挂验证人员#2: - 您还剩余 1分15秒验证时间。
反外挂验证人员#2: 防止挂机,请用数字完成验证.
反外挂验证人员#2: 5 + 2 〓 ( ? )
反外挂验证人员#2: 输入 'talk num <nomer #>'

********************************************************************************************************************************
automacro {
console /What is the sum of (\d+) (?:\+) (\d+)/
call {
$num1 = $.lastMatch1
$num2 = $.lastMatch2
$num3= $.lastMatch3
$result = @eval($num1 $num2 $num2)

do num $result
}
}


Top
 Profile  
 
 Post subject: Re: help me macro Addition and subtraction
PostPosted: 03 Apr 2019, 15:19 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 631
Location: Genting Highland, Malaysia
http://openkore.com/index.php/Macro_plugin
Image

_________________

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image


Top
 Profile  
 
 Post subject: Re: help me macro Addition and subtraction
PostPosted: 03 Apr 2019, 15:54 
Offline
Noob
Noob

Joined: 03 Apr 2019, 11:40
Posts: 8
automacro haha {
console /反外挂验证人员#2: (.*) (.*) (.*)/
call {

do c @eval($.lastMatch1$.lastMatch2$.lastMatch3)
}
}


Top
 Profile  
 
 Post subject: Re: help me macro Addition and subtraction
PostPosted: 03 Apr 2019, 15:54 
Offline
Noob
Noob

Joined: 03 Apr 2019, 11:40
Posts: 8
fadreus wrote:
http://openkore.com/index.php/Macro_plugin
Image





How do I write this grammar?


Top
 Profile  
 
 Post subject: Re: help me macro Addition and subtraction
PostPosted: 04 Apr 2019, 03:13 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 631
Location: Genting Highland, Malaysia
Could you do some favor?
Stick to 1 thread, would you?

Do you chat with someone using 2 phones with the same person on the same topic?
If no, then don't use 2 thread asking for the same thing.

_________________

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group