Page 1 of 1

bot check math ADDITION CAPTCHA

Posted: 08 Oct 2018, 16:05
by headlesscarmen
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.

Re: bot check math ADDITION CAPTCHA

Posted: 08 Oct 2018, 20:06
by fadreus
You can use these:

Code: Select all

@eval($num1+$num2)
Use with condition console

Re: bot check math ADDITION CAPTCHA

Posted: 09 Oct 2018, 01:01
by headlesscarmen
fadreus wrote:You can use these:

Code: Select all

@eval($num1+$num2)
Use with condition console

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

Re: bot check math ADDITION CAPTCHA

Posted: 09 Oct 2018, 08:49
by headlesscarmen
fadreus wrote:You can use these:

Code: Select all

@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.

Re: bot check math ADDITION CAPTCHA

Posted: 09 Oct 2018, 09:00
by fadreus
headlesscarmen wrote: dear sir is there any example u can show me?

Example:

control/macros.txt (Fixed) ;)

Code: Select all

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:

Re: bot check math ADDITION CAPTCHA

Posted: 09 Oct 2018, 10:49
by c4c1n6kr3m1
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

Re: bot check math ADDITION CAPTCHA

Posted: 09 Oct 2018, 10:59
by c4c1n6kr3m1

Code: Select all

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

}
}

Re: bot check math ADDITION CAPTCHA

Posted: 09 Oct 2018, 11:06
by fadreus
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.

Re: bot check math ADDITION CAPTCHA

Posted: 09 Oct 2018, 11:15
by c4c1n6kr3m1
fadreus wrote:
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

Re: bot check math ADDITION CAPTCHA

Posted: 09 Oct 2018, 11:26
by fadreus
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.