Page 1 of 2

[bypass Antibot] - How many is A + B

Posted: 29 Nov 2014, 17:14
by 4epT
Image


Solution:
1. add to your config following options:

Code: Select all

reactOnNPC_debug 0
reactOnNPC c talk num @eval(#3~1 #4~1 #3~2) {
	type number
	useColors 1
	delay 2
	msg_0 /[Kafra]/
	msg_1 /Solve the following problem:/
	msg_2 //
	msg_3 /> If: B=(\d+) A=(\d+) .../
	msg_4 /How many is A (.) B ?/
	msg_5 / * Attempt . of . */
}
2. add to the plugins folder next file:
reactOnNPC.pl

Сonsole log:
You are now: look: GM Perfect Hide
You are now: look: Ruwach
You are now: look: Orc Head
You are now: state: Frozen
You are now: ailment: Silenced
Image name >> "kafra_03.bmp"
Unknown #110036837: [Kafra]
Unknown #110036837: Solve the following problem:
Unknown #110036837:
Unknown #110036837: > If: B=1 A=1 ...
Unknown #110036837: How many is A + B ?
Unknown #110036837:
Unknown #110036837: * Attempt 1 of 5 *
Unknown #110036837: Auto-continuing talking
Kafra: You have 89 second(s) to respond.
Map loaded
NPC Exists: Unknown #110036837 (236, 264) (ID 110036837) - (0)
Unknown #110036837: Type 'talk text' (Respond to NPC)
Kafra: You have 88 second(s) to respond.
Kafra: You have 87 second(s) to respond.
Tested server: http://unitedro.vylowgaming.net

Re: [bypass Antibot] - Enter the colored symbols 1

Posted: 11 Dec 2014, 01:59
by aeronhyuwell
4epT wrote:read this
i'll try to use this .
reactOnNPC_debug 1
reactOnNPC c talk num @eval(#3~1 #4~1 #3~2) {
type number
useColors 1
delay 2
msg_0 /If A = (/d+) B = (/d+)/
msg_1 /How many is A (.) B ?/
}
Image

Re: [bypass Antibot] - How many is A + B

Posted: 12 Dec 2014, 17:15
by 4epT
try use:
reactOnNPC_debug 1
reactOnNPC talk num @eval(#0~1 #1~1 #0~2) {
type number
useColors 1
delay 5
msg_0 /If A = (\d+)\s+B = (\d+)/
msg_1 /How many is A (.) B ?/
}

Re: [bypass Antibot] - How many is A + B

Posted: 12 Dec 2014, 17:40
by aeronhyuwell
4epT wrote:try use:
reactOnNPC_debug 1
reactOnNPC talk num @eval(#0~1 #1~1 #0~2) {
type number
useColors 1
delay 5
msg_0 /If A = (\d+)\s+B = (\d+)/
msg_1 /How many is A (.) B ?/
}

oh its working 100% now sir :) thank you so much. more power! :D thanks thanks again .

Re: [bypass Antibot] - How many is A + B

Posted: 13 Dec 2014, 03:08
by aeronhyuwell
sir why sometimes there's a chance of these? if the question is subtraction or - ? see the pic.

Image

Re: [bypass Antibot] - How many is A + B

Posted: 13 Dec 2014, 13:22
by 4epT
what the correct answer?

Re: [bypass Antibot] - How many is A + B

Posted: 13 Dec 2014, 14:36
by aeronhyuwell
4epT wrote:what the correct answer?
-499 is the correct answer but if the openkore type talk num -499 it says You must Specify a number .

Re: [bypass Antibot] - How many is A + B

Posted: 15 Dec 2014, 05:26
by 4epT
aeronhyuwell, do it:
1. open ./src/Commands.pm
2. Find the lines:

Code: Select all

sub cmdTalk {
	if (!$net || $net->getState() != Network::IN_GAME) {
		error TF("You must be logged in the game to use this command '%s'\n", shift);
		return;
	}
	my (undef, $args) = @_;
	my ($arg1) = $args =~ /^(\w+)/;
	my ($arg2) = $args =~ /^\w+ (\d+)/;
3. Replace the last line on:

Code: Select all

my ($arg2) = $args =~ /^\w+ (-?\d+)/;
4. testing on negative numbers

Re: [bypass Antibot] - How many is A + B

Posted: 20 Dec 2014, 03:31
by aeronhyuwell
[reactOnNPC] Reacting to NPC. Executing command "talk num -3".
Error in function 'talk num' (Respond to NPC)
-3 is not a valid number.

Re: [bypass Antibot] - How many is A + B

Posted: 05 Jan 2015, 10:57
by 4epT
1. open ./src/Commands.pm
2. Find the lines:

Code: Select all

	} elsif ($arg1 eq "num" && !($arg2 =~ /^\d+$/)) {
		error TF("Error in function 'talk num' (Respond to NPC)\n" .
			"%s is not a valid number.\n", $arg2);

	} elsif ($arg1 eq "num" && $arg2 =~ /^\d+$/) {
		$messageSender->sendTalkNumber($talk{'ID'}, $arg2);
3. Replace the last line on:

Code: Select all

	} elsif ($arg1 eq "num" && !($arg2 =~ /^-?\d+$/)) {
		error TF("Error in function 'talk num' (Respond to NPC)\n" .
			"%s is not a valid number.\n", $arg2);

	} elsif ($arg1 eq "num" && $arg2 =~ /^-?\d+$/) {
		$messageSender->sendTalkNumber($talk{'ID'}, $arg2);
4. testing on negative numbers

or download the last OpenKore