bot check math ADDITION CAPTCHA

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Message
Author
headlesscarmen
Noob
Noob
Posts: 17
Joined: 08 Oct 2018, 15:54
Noob?: Yes
Location: Kuala Lumpur,Malaysia

bot check math ADDITION CAPTCHA

#1 Post 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.

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: bot check math ADDITION CAPTCHA

#2 Post by fadreus »

You can use these:

Code: Select all

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

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

headlesscarmen
Noob
Noob
Posts: 17
Joined: 08 Oct 2018, 15:54
Noob?: Yes
Location: Kuala Lumpur,Malaysia

Re: bot check math ADDITION CAPTCHA

#3 Post 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

headlesscarmen
Noob
Noob
Posts: 17
Joined: 08 Oct 2018, 15:54
Noob?: Yes
Location: Kuala Lumpur,Malaysia

Re: bot check math ADDITION CAPTCHA

#4 Post 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.

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: bot check math ADDITION CAPTCHA

#5 Post 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:
Last edited by fadreus on 09 Oct 2018, 11:13, edited 1 time in total.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: bot check math ADDITION CAPTCHA

#6 Post 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
Last edited by c4c1n6kr3m1 on 09 Oct 2018, 11:24, edited 4 times in total.

c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: bot check math ADDITION CAPTCHA

#7 Post 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

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

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: bot check math ADDITION CAPTCHA

#8 Post 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.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: bot check math ADDITION CAPTCHA

#9 Post 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

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: bot check math ADDITION CAPTCHA

#10 Post 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.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

Post Reply