Openkore.com

OpenKore Forums
It is currently 17 Nov 2018, 12:57

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [bypass Antibot] - How many is A + B
PostPosted: 29 Nov 2014, 17:14 
Offline
Developers
Developers
User avatar

Joined: 30 Apr 2008, 14:17
Posts: 621
Location: Moskow (Russia)
Image


Solution:
1. add to your config following options:
Code:
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:
Quote:
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


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - Enter the colored symbols 1
PostPosted: 11 Dec 2014, 01:59 
Offline
Plain Yogurt
Plain Yogurt

Joined: 30 Jun 2013, 06:41
Posts: 53
4epT wrote:
read this


i'll try to use this .

Quote:
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


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - How many is A + B
PostPosted: 12 Dec 2014, 17:15 
Offline
Developers
Developers
User avatar

Joined: 30 Apr 2008, 14:17
Posts: 621
Location: Moskow (Russia)
try use:
Quote:
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


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - How many is A + B
PostPosted: 12 Dec 2014, 17:40 
Offline
Plain Yogurt
Plain Yogurt

Joined: 30 Jun 2013, 06:41
Posts: 53
4epT wrote:
try use:
Quote:
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 .


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - How many is A + B
PostPosted: 13 Dec 2014, 03:08 
Offline
Plain Yogurt
Plain Yogurt

Joined: 30 Jun 2013, 06:41
Posts: 53
sir why sometimes there's a chance of these? if the question is subtraction or - ? see the pic.

Image


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - How many is A + B
PostPosted: 13 Dec 2014, 13:22 
Offline
Developers
Developers
User avatar

Joined: 30 Apr 2008, 14:17
Posts: 621
Location: Moskow (Russia)
what the correct answer?

_________________
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - How many is A + B
PostPosted: 13 Dec 2014, 14:36 
Offline
Plain Yogurt
Plain Yogurt

Joined: 30 Jun 2013, 06:41
Posts: 53
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 .


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - How many is A + B
PostPosted: 15 Dec 2014, 05:26 
Offline
Developers
Developers
User avatar

Joined: 30 Apr 2008, 14:17
Posts: 621
Location: Moskow (Russia)
aeronhyuwell, do it:
1. open ./src/Commands.pm
2. Find the lines:
Code:
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:
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


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - How many is A + B
PostPosted: 20 Dec 2014, 03:31 
Offline
Plain Yogurt
Plain Yogurt

Joined: 30 Jun 2013, 06:41
Posts: 53
[reactOnNPC] Reacting to NPC. Executing command "talk num -3".
Error in function 'talk num' (Respond to NPC)
-3 is not a valid number.


Top
 Profile  
 
 Post subject: Re: [bypass Antibot] - How many is A + B
PostPosted: 05 Jan 2015, 10:57 
Offline
Developers
Developers
User avatar

Joined: 30 Apr 2008, 14:17
Posts: 621
Location: Moskow (Russia)
1. open ./src/Commands.pm
2. Find the lines:
Code:
   } 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:
   } 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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group