[bypass Antibot] - How many is A + B

Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.

Moderator: Moderators

Message
Author
User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

[bypass Antibot] - How many is A + B

#1 Post 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
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

aeronhyuwell
Plain Yogurt
Plain Yogurt
Posts: 50
Joined: 30 Jun 2013, 06:41
Noob?: No

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

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

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

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

#3 Post 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 ?/
}
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

aeronhyuwell
Plain Yogurt
Plain Yogurt
Posts: 50
Joined: 30 Jun 2013, 06:41
Noob?: No

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

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

aeronhyuwell
Plain Yogurt
Plain Yogurt
Posts: 50
Joined: 30 Jun 2013, 06:41
Noob?: No

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

#5 Post by aeronhyuwell »

sir why sometimes there's a chance of these? if the question is subtraction or - ? see the pic.

Image

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

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

#6 Post by 4epT »

what the correct answer?
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

aeronhyuwell
Plain Yogurt
Plain Yogurt
Posts: 50
Joined: 30 Jun 2013, 06:41
Noob?: No

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

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

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

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

#8 Post 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
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

aeronhyuwell
Plain Yogurt
Plain Yogurt
Posts: 50
Joined: 30 Jun 2013, 06:41
Noob?: No

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

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

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

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

#10 Post 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
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

Post Reply