reactOnNPC v.2.0.2 by hakore

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

Mushroom
Perl Monk
Perl Monk
Posts: 427
Joined: 04 Apr 2008, 14:04
Noob?: No
Location: Brazil

Re: reactOnNPC v.2.0.0 by hakore

#321 Post by Mushroom »

Test Again:

Code: Select all

automacro answerNPC {
   console /(\d+)\s+(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{5})/i
   eval ($::Macro::Data::varStack{".lastMatch2"} =~ /\^\d+/ || $::Macro::Data::varStack{".lastMatch3"} =~ /\^\d+/ || $::Macro::Data::varStack{".lastMatch4"} =~ /\^\d+/ || $::Macro::Data::varStack{".lastMatch5"} =~ /\^\d+/ || $::Macro::Data::varStack{".lastMatch6"} =~ /\^\d+/)
   exclusive 1
   call {
      do talk num $.lastMatch1
      pause 3
      do c @warp prontera
      do release all
      }
}
Quit.
BrianRockzYou
Human
Human
Posts: 21
Joined: 16 Aug 2009, 01:41
Noob?: No
Location: Brazil

Re: reactOnNPC v.2.0.0 by hakore

#322 Post by BrianRockzYou »

Still doesn't work, the macro don't start.[3]
alwaysmommo
Noob
Noob
Posts: 1
Joined: 19 Sep 2009, 04:14
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#323 Post by alwaysmommo »

Mushroom wrote:@oppiex
Try

Code: Select all

reactOnNPC talk num #1~1 {
type number
msg_0 /\[Penjaga\]/i
msg_1 /nomormu adalah (\d+) !/i
msg_2 /jangan sampai salah/i
}
I've try this code, but this plugin does'nt work for my bot. then i try to change it for several time untill i find that the code work is this.

Code: Select all

 reactOnNPC talk text #1~1 {
	type text
	msg_0 /\[Penjaga\]/i
	msg_1 /nomormu adalah (\d+) !/i
	msg_2 /jangan sampai salah/i
}
but new problem i find is that the plugin work for everytime i talk with any npc. so what sould i must do?
bkmc
Noob
Noob
Posts: 6
Joined: 06 Feb 2009, 04:06
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#324 Post by bkmc »

why don't u put ur console log in here?
so other member can investigates ur log conversation...

i've seen ur post that NPC Penjaga want u to input text...
correct me if i'm wrong
tikman
Noob
Noob
Posts: 3
Joined: 20 Sep 2009, 06:01
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#325 Post by tikman »

I need some help on how to bypass this:

Image

Image

I've tried this BUT it doesn't work:
###########################
# Anti-Anti-Bot 3 plugin for RO by Mucilon
# Based on reactOnNPC by hakore and Anti-Anti-Bot by _vit
# Version 0.4
# 05.03.2008
###########################

package aabot3;

use strict;
use Plugins;
use Globals;
use Log qw(message warning error);
use I18N qw(bytesToString);

Plugins::register('aabot2', 'Anti-Anti-Bot plugin', \&onUnload);

my $hooks = Plugins::addHooks( ['packet/npc_talk', \&onMsg, undef],
['packet/npc_talk_number', \&onAction, undef]);
my $color;
my $answer;
my $run;

sub onUnload {
Plugins::delHooks($hooks);
};

sub onMsg {
my (undef, $args) = @_;
my $msg = I18N::bytesToString(unpack("Z*", substr($args->{RAW_MSG}, 8)));

message "[AntiBot] NPC Message: $msg.\n", "success";

if($msg =~ /\^([0-9]{6})(\d+)\^F/){
$answer = $2;
message "[AntiBot] Answer: $answer found with color $1.\n", "success";
$run = 1;
}
}

sub onAction {
my (undef, $args) = @_;
my $randtime;

if ($run == 1) {
$randtime = 1 + rand(3);
message "[AntiBot] Exexuting command: talk num $answer, in $randtime secs.\n", "success";
sleep($randtime);
Commands::run("talk num $answer");
}
$run = 0;
}

return 1;
Closing connection to Character Server
Disconnecting (72.11.144.163:6121)...disconnected
Connecting to Map Server...
Connecting (72.11.144.163:5121)... connected
You are now in the game
Your Coordinates: 225, 53
[Guild] You have 0 new emails (0 unread)
Unknown #2000029: **
Unknown #110000006: [Bot Check]: Type this number:
[AntiBot] NPC Message: ^000066[Bot Check]: ^990000Type this number:^000000.
Unknown #110000006: |000000000000000000000000000000000|
[AntiBot] NPC Message:
^000000|0000000^1466410000^0000000000^1671830000^00000000000000000000|.
Unknown #110000006: 6310|045951267785221638173730|
[AntiBot] NPC Message:
^F7F7F56310^000000|^1212000^F7F7F5459512677^F4F6F48522^F7F7F5163817373^000000^1
212000^000000|.
[AntiBot] Answer: 0 found with color 121200.
Unknown #110000006: 18091|07291280997581826379340|
[AntiBot] NPC Message:
^F7F7F518091^000000|^1212000^F7F7F572912809^F6F4F99758^F7F7F5182637934^000000^1
212000^000000|.
[AntiBot] Answer: 0 found with color 121200.
Unknown #110000006: 9113|033731802587611682328420|
[AntiBot] NPC Message:
^F7F7F59113^000000|^1212000^F7F7F5337318025^F0F9F6^0000008761^F7F7F5168232842^0
00000^1212000^000000|.
[AntiBot] Answer: 0 found with color 121200.
Unknown #110000006: 6897|060151936598331936529750|
[AntiBot] NPC Message:
^F7F7F56897^000000|^1212000^F7F7F5601519365^F9F0F09833^F7F7F5193652975^000000^1
212000^000000|.
[AntiBot] Answer: 0 found with color 121200.
Unknown #110000006: |000000000000000000000000000000000|
[AntiBot] NPC Message:
^000000|000000000000^1671830000^0000000000^1466410000^000000000000000|.
NPC Exists: Unknown #110000006 (225, 53) (ID 110000006) - (0)
Unknown #110000006: Type 'talk num <number #>' to input a number.
[AntiBot] Exexuting command: talk num 0, in 3.98480224609375 secs.
Allowed other player invite to Party
Not allowed other player view Equipment
Calculating random route to: Prontera Field(prt_fild01): 366, 154
Attacking: Monster Lunatic (1)
Target lost
Attacking: Monster Lunatic (0)
Unknown #110000006: Auto-continuing talking
Unknown #2000029: **
Unknown #2000029: **
Unknown #110000006: [Bot Check]:
[AntiBot] NPC Message: ^000066[Bot Check]:^F7F7F5.
Unknown #110000006: Failed.
[AntiBot] NPC Message: ^990000Failed.^F7F7F5.
Unknown #110000006: Press [ESC]
[AntiBot] NPC Message: ^990000Press [ESC]^F7F7F5.
Unknown #110000006: Choose [Character Select]
[AntiBot] NPC Message: ^990000Choose [Character Select]^F7F7F5.
Unknown #110000006: And Try Again...
[AntiBot] NPC Message: ^990000And Try Again...^F7F7F5.
Unknown #110000006: Auto-continuing talking
Unknown #2000029: **
BrianRockzYou
Human
Human
Posts: 21
Joined: 16 Aug 2009, 01:41
Noob?: No
Location: Brazil

Re: reactOnNPC v.2.0.0 by hakore

#326 Post by BrianRockzYou »

I have to make the bot choose the response that contains the hex color ^544546 this is the sixth option at that time.

Ps: The ^544546 are random, but they're always number, when they're at the end of the line are ^5 numbers, if they're on start are ^6 numbers.

Code: Select all

3vs3Party#3: [Arena Guide]
3vs3Party#3: Welcome to the 3 vs 3 Party Arena!!!
3vs3Party#3: Would you like to compete?
3vs3Party#3: Continuando a conversa automaticamente.
----------Respostas-----------
#  Resposta
0  Oooh Yeeaahh!!!
1  Nuuu
2  Cancel Chat
-------------------------------
3vs3Party#3: Digite 'talk resp #' para escolher uma resposta.
----------Respostas-----------
#  Resposta
0  ^FFEDFFEntEr^FFFEDDeNTER^DFDFDDEnter^EFFDDEEnTer^FDFDD
1  ^EFEFFDeNTER^FDDEFDenTer^DEDDFFENTER^EFFEEDenTeR^FFDED
2  ^DDEFEDENTer^EEEFFFENTer^DEEEEFeNTer^FDDFDEENTER^FDEEE
3  ^DDFFDEEntER^DFEDEFEnteR^FFFFDDENTer^DEFEEEeNtER^FEFED
4  ^DEDEDFenTEr^DEEEFEENTEr^FEEEFDeNtEr^EFFFFEENTeR^FFFDD
5  ^DEEFFFeNTEr^EFEFDFENter^EDDFEFeNteR^DDFDEFenTeR^FEEFF
6  ^FFEFDEenTER^544546ENTeR^DEDFDFEnTer^DDDEDEenTeR^FEEFE
7  ^DEEDDEENtEr^EDEDFDeNTEr^FFEFDFeNTEr^FDFEEDEnTEr^FDFFD
8  ^DFFFFEenTEr^EFDEFDenTer^EFDFDDENTer^FEFDEEEntER^DDEEF
9  ^EFEEFEenTEr^DFEFEDENter^DFDDDEenter^DFFDEEENTer^FDFDD
10 ^DDDEDEentEr^DDDEDFeNTer^FDFDDEeNter^EFEFDFenTER^EFFDF
11 ^FDFDFFeNTer^EFDDDFEnTER^FDFFEEenteR^FEFFFDenter^DEDFD
12 ^EDDFFDEnTEr^EFFDDEENtEr^FDDEFDenteR^FFFDFFENTER^DFEEF
13 ^EFFDDDeNTeR^EFDEDFENtER^FDDFEDenteR^FDFDDEENTeR^DEDFF
14 ^DFFDFFenTer^DDFEFDeNTER^FDEEEFeNTER^DEEFFDeNteR^FDFDE
15 ^FDDEEDENtEr^EFEEEEeNTEr^EFFDEEeNTER^DDEDFEeNtER^FFFDD
16 ^DDEDDFENter^FFDDDFENter^DEFDEDenTEr^EEEEFDenTer^EEEDE
17 ^EFDFEFENTer^EFEFFFENter^FEDEDFenTEr^EDFEFFEnTer^DDFFD
18 ^FDEDEDEnTER^FFFDFFenTER^EFDEEDENter^DFEEEFEnTER^FDDED
19 ^EDEEFEEnteR^FEFDEEenter^FFDFDDeNtEr^DDDFDEEnter^EDDDE
20 Cancel Chat
-------------------------------
3vs3Party#3: Digite 'talk resp #' para escolher uma resposta.
Sorry about my fucking low english, i use translator.
bkmc
Noob
Noob
Posts: 6
Joined: 06 Feb 2009, 04:06
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#327 Post by bkmc »

BrianRockzYou

Post subject: Re: reactOnNPC v.2.0.0 by hakore Reply with quote
I have to make the bot choose the response that contains the hex color ^544546 this is the sixth option at that time.

Ps: The ^544546 are random, but they're always number, when they're at the end of the line are ^5 numbers, if they're on start are ^6 numbers.

Code:
3vs3Party#3: [Arena Guide]
3vs3Party#3: Welcome to the 3 vs 3 Party Arena!!!
3vs3Party#3: Would you like to compete?
3vs3Party#3: Continuando a conversa automaticamente.
----------Respostas-----------
# Resposta
0 Oooh Yeeaahh!!!
1 Nuuu
2 Cancel Chat
-------------------------------
3vs3Party#3: Digite 'talk resp #' para escolher uma resposta.
----------Respostas-----------
# Resposta
0 ^FFEDFFEntEr^FFFEDDeNTER^DFDFDDEnter^EFFDDEEnTer^FDFDD
1 ^EFEFFDeNTER^FDDEFDenTer^DEDDFFENTER^EFFEEDenTeR^FFDED
2 ^DDEFEDENTer^EEEFFFENTer^DEEEEFeNTer^FDDFDEENTER^FDEEE
3 ^DDFFDEEntER^DFEDEFEnteR^FFFFDDENTer^DEFEEEeNtER^FEFED
4 ^DEDEDFenTEr^DEEEFEENTEr^FEEEFDeNtEr^EFFFFEENTeR^FFFDD
5 ^DEEFFFeNTEr^EFEFDFENter^EDDFEFeNteR^DDFDEFenTeR^FEEFF
6 ^FFEFDEenTER^544546ENTeR^DEDFDFEnTer^DDDEDEenTeR^FEEFE
7 ^DEEDDEENtEr^EDEDFDeNTEr^FFEFDFeNTEr^FDFEEDEnTEr^FDFFD
8 ^DFFFFEenTEr^EFDEFDenTer^EFDFDDENTer^FEFDEEEntER^DDEEF
9 ^EFEEFEenTEr^DFEFEDENter^DFDDDEenter^DFFDEEENTer^FDFDD
10 ^DDDEDEentEr^DDDEDFeNTer^FDFDDEeNter^EFEFDFenTER^EFFDF
11 ^FDFDFFeNTer^EFDDDFEnTER^FDFFEEenteR^FEFFFDenter^DEDFD
12 ^EDDFFDEnTEr^EFFDDEENtEr^FDDEFDenteR^FFFDFFENTER^DFEEF
13 ^EFFDDDeNTeR^EFDEDFENtER^FDDFEDenteR^FDFDDEENTeR^DEDFF
14 ^DFFDFFenTer^DDFEFDeNTER^FDEEEFeNTER^DEEFFDeNteR^FDFDE
15 ^FDDEEDENtEr^EFEEEEeNTEr^EFFDEEeNTER^DDEDFEeNtER^FFFDD
16 ^DDEDDFENter^FFDDDFENter^DEFDEDenTEr^EEEEFDenTer^EEEDE
17 ^EFDFEFENTer^EFEFFFENter^FEDEDFenTEr^EDFEFFEnTer^DDFFD
18 ^FDEDEDEnTER^FFFDFFenTER^EFDEEDENter^DFEEEFEnTER^FDDED
19 ^EDEEFEEnteR^FEFDEEenter^FFDFDDeNtEr^DDDFDEEnter^EDDDE
20 Cancel Chat
-------------------------------
3vs3Party#3: Digite 'talk resp #' para escolher uma resposta.


Sorry about my fucking low english, i use translator.
still can't Brian?

u already got the clue from Mr. Mushroom.
now ur job is to combine or modified Mr. Mushroom and ur macro
try to post ur macro here...
maybe i can help u?
try more... try more...and more.... try......
BrianRockzYou
Human
Human
Posts: 21
Joined: 16 Aug 2009, 01:41
Noob?: No
Location: Brazil

Re: reactOnNPC v.2.0.0 by hakore

#328 Post by BrianRockzYou »

Code: Select all

automacro agora {
location payon
run-once 1
call {
do talknpc 158 233 c r0
}
}

automacro answerNPC {
console /(\d+) (\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{5})/i
eval ($::Macro::Data::varStack{".lastMatch2"} =~ /(\^[0-9]{6})enter/i || $::Macro::Data::varStack{".lastMatch3"} =~ /(\^[0-9]{6})enter/i || $::Macro::Data::varStack{".lastMatch4"} =~ /(\^[0-9]{6})enter/i || $::Macro::Data::varStack{".lastMatch5"} =~ /(\^[0-9]{6})enter/i || $::Macro::Data::varStack{".lastMatch6"} =~ /(\^[0-9]{6})enter/i)
exclusive 1
call {
do talk num $.lastMatch1
pause 3
do c @warp prontera
do release all
}
}
bkmc. Aren't you trying to make it too? Did you? If you did, could you post the solution for us?
bkmc
Noob
Noob
Posts: 6
Joined: 06 Feb 2009, 04:06
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#329 Post by bkmc »

@ BrianRockzYou
Code:
automacro agora {
location payon
run-once 1
call {
do talknpc 158 233 c r0
}
}

automacro answerNPC {
console /(\d+) (\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{5})/i
eval ($::Macro::Data::varStack{".lastMatch2"} =~ /(\^[0-9]{6})enter/i || $::Macro::Data::varStack{".lastMatch3"} =~ /(\^[0-9]{6})enter/i || $::Macro::Data::varStack{".lastMatch4"} =~ /(\^[0-9]{6})enter/i || $::Macro::Data::varStack{".lastMatch5"} =~ /(\^[0-9]{6})enter/i || $::Macro::Data::varStack{".lastMatch6"} =~ /(\^[0-9]{6})enter/i)
exclusive 1
call {
do talk num $.lastMatch1
pause 3
do c @warp prontera
do release all
}
}


bkmc. Aren't you trying to make it too? Did you? If you did, could you post the solution for us?
yes i did brian... but since xile want to wipe all, i dont want to continues these any more... now im retired from xile

like i said before,
seem to me that u just copy paste mr Mushroom work...
u not try to modified his macro...
mr mushroom macro is only clue to finish ur macro..
use ur logic to make this macro...
BrianRockzYou
Human
Human
Posts: 21
Joined: 16 Aug 2009, 01:41
Noob?: No
Location: Brazil

Re: reactOnNPC v.2.0.0 by hakore

#330 Post by BrianRockzYou »

I've tried everything I know man, I know that alone I can not do it, I was trying for days, as you did, beg you please guy, pass me your macro.