Openkore.com

OpenKore Forums
It is currently 22 Sep 2019, 10:05

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: help me . No work, no calculation
PostPosted: 03 Apr 2019, 21:42 
Offline
Noob
Noob

Joined: 03 Apr 2019, 11:40
Posts: 8
No work, no calculation

反外挂验证人员#2: 5 + 2 〓 ( ? )
反外挂验证人员#2: 5 + 2 〓 ( ? )
反外挂验证人员#2: 12 - 6 〓 ( ? )
反外挂验证人员#2: 12 - 6 〓 ( ? )


It's not a number, it's not computational.



automacro haha {
console /反外挂验证人员#2: (\d+) (\D) (\d+)/
call {
do p $.lastMatch1
do p $.lastMatch2
do p $.lastMatch3
$num1 = $.lastMatch1
$num2 = $.lastMatch2
$num3 = $.lastMatch3
do p @eval($num1$num2$num3).
}
}


Top
 Profile  
 
 Post subject: Re: help me . No work, no calculation
PostPosted: 03 Apr 2019, 21:43 
Offline
Noob
Noob

Joined: 03 Apr 2019, 11:40
Posts: 8
How to convert numbers to calculate?


Top
 Profile  
 
 Post subject: Re: help me . No work, no calculation
PostPosted: 04 Apr 2019, 03:15 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 603
Location: Genting Highland, Malaysia
viewtopic.php?f=10&t=212794&p=281640#p281640
c4c1n6kr3m1 wrote:
ex:

console /Red Flame Compass.*: (\d+) + (\d+)/
or
console /Red Flame Compass.*: (\d+) (?:\+) (\d+)/

catch with ()
if start with this (?:) , will not catch

in macro, result for both is @eval($.lastMatch1+$.lastMatch2)

\d is number
\. is single dot
. is any single character
.* is hmmm try read somewhere else
try read perl regex
http://jkorpela.fi/perl/regexp.html
or google


c4c1n6kr3m1 wrote:
try edit this
Code:
console /110002250: .*?(\d+)/

or this
Code:
console /\[npc\] Unknown #110002250: .*?(\d+)/


you need to escape special metacharacters with \
but i forget the list :D
just google it, i don't know why i got redirected to ip4.google , that F* chaptcha

_________________

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  [ 3 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