# Openkore.com

OpenKore Forums
 It is currently 17 Oct 2019, 07:30

 All times are UTC - 5 hours [ DST ]

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: help me . No work, no calculationPosted: 03 Apr 2019, 21:42
 Noob

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

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

 Post subject: Re: help me . No work, no calculationPosted: 03 Apr 2019, 21:43
 Noob

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

Top

 Post subject: Re: help me . No work, no calculationPosted: 04 Apr 2019, 03:15
 OpenKore Monk

Joined: 17 Nov 2017, 23:32
Posts: 629
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 ()

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
http://jkorpela.fi/perl/regexp.html

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
just google it, i don't know why i got redirected to ip4.google , that F* chaptcha

_________________

iRO Supporter.
Unless you're a cat.

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 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 forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ Announcements    Announcements Support    Frequently Asked Questions & Guides    Resolved Questions    Official Servers       bRO       fRO       iRO       idRO       kRO       jRO       tRO       twRO       pRO       Private Servers       Other OpenKore support Discussions    Discussion    Tips & Tricks    Feature suggestions Plugins    Howto write plugins    Macro Plugin       Share your macro's    Other Plugins Technical    Developers Corner    Development Help    Tester's corner    Bug reports       Fixed bugs       Unresolvable bugs    Commit Queue Off Topic    Misc    Trashcan Links    OpenKore Manual    Official GitHub    Download Openkore .zip    AJAX IRC Client (Chat)    Developer Manual