Openkore.com

OpenKore Forums
It is currently 15 Nov 2018, 19:53

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: bot check math ADDITION CAPTCHA
PostPosted: 08 Oct 2018, 16:05 
Offline
Noob
Noob

Joined: 08 Oct 2018, 15:54
Posts: 5
Hello all,

Im need help in figuring to auto answer the following bot check.
Image

the server has bot check (that pop up automatically) that needed us to provide correct answer within 3 chances. Failure to do so will result in 3000hours skill mute.


Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 08 Oct 2018, 20:06 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 464
Location: Genting Highland, Malaysia
You can use these:

Code:
@eval($num1+$num2)


Use with condition console

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 09 Oct 2018, 01:01 
Offline
Noob
Noob

Joined: 08 Oct 2018, 15:54
Posts: 5
fadreus wrote:
You can use these:

Code:
@eval($num1+$num2)


Use with condition console



Thanks fellow malaysian, I will give it a try. :D


Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 09 Oct 2018, 08:49 
Offline
Noob
Noob

Joined: 08 Oct 2018, 15:54
Posts: 5
fadreus wrote:
You can use these:

Code:
@eval($num1+$num2)


Use with condition console


dear sir is there any example u can show me? i have been reading the wiki for hours now still no clue especially the console condition part.


Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 09 Oct 2018, 09:00 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 464
Location: Genting Highland, Malaysia
headlesscarmen wrote:
dear sir is there any example u can show me?



Example:

control/macros.txt (Fixed) ;)
Code:
automacro {
   console /What is the sum of (\d+) + (\d+)/
   call {
      $num1 = $.lastMatch1
      $num2 = $.lastMatch2

      $result = @eval($num1+$num2)

      do talk num $result
      }
}


headlesscarmen wrote:
i have been reading the wiki for hours now still no clue especially the console condition part.



http://openkore.com/index.php/Macro_plugin
it's macro.
Most problems can be solved by macro since macro is easier than plugins but plugins way better than macro.

Welp, I don't play private, it's troublesome coz of the customization. Too lazy :roll:
That reactOnNPC.pl would be better if you know how.
I like easy solution :lol:

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Last edited by fadreus on 09 Oct 2018, 11:13, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 09 Oct 2018, 10:49 
Offline
Been there done that!
Been there done that!

Joined: 24 Mar 2012, 04:13
Posts: 123
no no no fadreus !!!
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


Last edited by c4c1n6kr3m1 on 09 Oct 2018, 11:24, edited 4 times in total.

Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 09 Oct 2018, 10:59 
Offline
Been there done that!
Been there done that!

Joined: 24 Mar 2012, 04:13
Posts: 123
Code:
automacro qgreen {
   console /Forest Compass.*: (\d+) (?:\+) (\d+) (?:x) (\d+) /
   #exclusive 1
   #run-once 1
   #overrideAI 1
   #priority 1
   macro_delay 0.01
   timeout 2
   delay 1
call {

   [
   $hasilg = @eval($.lastMatch1+$.lastMatch2*$.lastMatch3)
   log result $hasilg
   ]
   do talk num $hasilg

}
}


Last edited by c4c1n6kr3m1 on 09 Oct 2018, 11:06, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 09 Oct 2018, 11:06 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 464
Location: Genting Highland, Malaysia
c4c1n6kr3m1 wrote:
http://jkorpela.fi/perl/regexp.html


Oh!!
This what I've been looking for; simple & neat. :o
It just I don't know what to ask google for this :D
I always found a piece of remnant for some usage while some long text just doesn't make sense to me hahahaha.. :lol:

Thanks for the link.

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 09 Oct 2018, 11:15 
Offline
Been there done that!
Been there done that!

Joined: 24 Mar 2012, 04:13
Posts: 123
fadreus wrote:
c4c1n6kr3m1 wrote:
http://jkorpela.fi/perl/regexp.html


Oh!!
This what I've been looking for; simple & neat. :o
It just I don't know what to ask google for this :D
I always found a piece of remnant for some usage while some long text just doesn't make sense to me hahahaha.. :lol:

Thanks for the link.


but is not complete
ex : it does not have ?:

alot of perl document i've ever seen in www is bad for my eyes , especially perldoc.perl.org
bad font
bad structure
bla bla bla
and make it hard to understand


Top
 Profile  
 
 Post subject: Re: bot check math ADDITION CAPTCHA
PostPosted: 09 Oct 2018, 11:26 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 464
Location: Genting Highland, Malaysia
c4c1n6kr3m1 wrote:
but is not complete
ex : it does not have ?:


Still better than what I usually found; your link give more than what could found. :D
I usually found +/- 10 examples; need to go through various sites just to get more but end up more confused.

c4c1n6kr3m1 wrote:
alot of perl document i've ever seen in www is bad for my eyes , especially perldoc.perl.org
bad font
bad structure
bla bla bla
and make it hard to understand


Totally agree. Hahaha :lol:
I prefer short-briefed explanation and followed by example and result. Easier to understand.

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 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