Im need help in figuring to auto answer the following bot check.
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.
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.
Welp, I don't play private, it's troublesome coz of the customization. Too lazy
That reactOnNPC.pl would be better if you know how.
I like easy solution
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.
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.
Oh!!
This what I've been looking for; simple & neat.
It just I don't know what to ask google for this
I always found a piece of remnant for some usage while some long text just doesn't make sense to me hahahaha..
Thanks for the link.
iRO Supporter. Read before you ask is the wisest thing human can do. Unless you're a cat.
Oh!!
This what I've been looking for; simple & neat.
It just I don't know what to ask google for this
I always found a piece of remnant for some usage while some long text just doesn't make sense to me hahahaha..
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
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.
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
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.