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).
}
}
help me . No work, no calculation
Moderator: Moderators
Re: help me . No work, no calculation
How to convert numbers to calculate?
- fadreus
- The Kore Devil
- Posts: 708
- Joined: 17 Nov 2017, 23:32
- Noob?: No
- Location: Genting Highland, Malaysia
- Contact:
Re: help me . No work, no calculation
http://forums.openkore.com/viewtopic.ph ... 40#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 thisor thisCode: Select all
console /110002250: .*?(\d+)/
you need to escape special metacharacters with \Code: Select all
console /\[npc\] Unknown #110002250: .*?(\d+)/
but i forget the list
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.