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

Message
Author
TW_1
Noob
Noob
Posts: 1
Joined: 24 May 2015, 00:04
Noob?: Yes

How to respond Antibot question

#371 Post by TW_1 »

How the following message, write macros?

Code: Select all

[npc] Unknown#23: [Statistical title]
[npc] Unknown#23: =======Please answer the following topics=======
[npc] Unknown#23: 
[npc] Unknown#23: Title: There are a few under your statistics 1
[npc] Unknown#23: 0028273171
[npc] Unknown#23: Auto continue talking
[input] Unknown#23: Please enter 'talk num <digital #>' to enter a number.

wynther
Noob
Noob
Posts: 13
Joined: 13 May 2015, 19:04
Noob?: Yes

help me how to use antibot

#372 Post by wynther »

i tried using reactonnpc by hakore but i dont understand.. and it seems like the topic is dead no ones respoding T_T

Image

Image


in my config

Code: Select all

reactOnNPC talk num #1~1 {   
   type number
   msg_0 Please Key in The 4 scurity Code^^
   msg_1 /(\d+)/

}
but it didnt work :( whats is wrong?
loving you is so demn easy for me~

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: help me how to use antibot

#373 Post by SkylorD »

4 scurity Code^^
You forgot to give space between "Code" and "^^".
Learn rules

stormbreaker
Noob
Noob
Posts: 2
Joined: 05 Jun 2015, 07:15
Noob?: Yes

Re: reactOnNPC v.2.0.2 by hakore

#374 Post by stormbreaker »

pls help me with this

reactOnNPC talk num @eval(my $color1 = '#1~1';my $color2 = '#3~1';if ($color1 eq $color2@) {return '#3~2'}) {
type number
useColors 1
respIgnoreColor 1
delay 3
msg_0 /[----- Checker]/
msg_1 Please Key in The 4 scurity Code ^^
msg_2 /^\s$/
msg_3 /\s+\^([0-9a-fA-F]{6})(\S+)\^[0-9a-fA-F]{6}\s+/

i got this with my bot

[reactOnNPC] onNPCAction type is: continue.
[reactOnNPC] Conditions for reactOnNPC_0 (npc:continue, rect:number) 'type' not
met.
Unknown #110047850: [F---- Checker]
[reactOnNPC] NPC message saved (0): "[F--- Checker]".
Unknown #110047850: Please Key in The 4 scurity Code ^^
[reactOnNPC] NPC message saved (1): "Please Key in The 4 scurity Code ^^".
Unknown #110047850: 81
[reactOnNPC] NPC message saved (2): "81".
Unknown #110047850: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
[reactOnNPC] Conditions for reactOnNPC_0 (npc:continue, rect:number) 'type' not
met.
Unknown #110047850: Type 'talk num <number #>' to input a number.
[reactOnNPC] onNPCAction type is: number.
[reactOnNPC] Conditions for reactOnNPC_0 (npc:number , rect:number) is met.
[reactOnNPC] Matching [msg (0)] "[----- Checker]" to "/[---- Checker]/"
... regexp ok.
[reactOnNPC] Matching [msg (1)] "Please Key in The 4 scurity Code ^^" to
"Please Key in The 4 scurity Code ^^" ... ok.
[reactOnNPC] Matching [msg (2)] "81" to "/^\s$/" ... doesn't match.
[reactOnNPC] One or more lines doesn't match for "reactOnNPC_0" (2).
Last edited by stormbreaker on 09 Jun 2015, 02:55, edited 1 time in total.

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: reactOnNPC v.2.0.2 by hakore

#375 Post by SkylorD »

@stormbreaker :

Wynther response :

http://forums.openkore.com/viewtopic.ph ... 70#p272197

Will give some error if your question is colorful ^^ But you need to check how the wynter wrote.
He commited two errors :
msg_0 Please Key in The 4 scurity Code^^
He forgot to give a space between "Code" and "^^"
Learn rules

stormbreaker
Noob
Noob
Posts: 2
Joined: 05 Jun 2015, 07:15
Noob?: Yes

Re: reactOnNPC v.2.0.2 by hakore

#376 Post by stormbreaker »

no i thinks where on the same server .... & i think the gm type it incorrectly .
so i double checked it that is the exact spelling of their bot checker..
& i tried to correct it on the right spelling still nothing happen
so i decided to put back in to the original spelling

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: reactOnNPC v.2.0.2 by hakore

#377 Post by SkylorD »

If doesn't work :

Code: Select all

reactOnNPC talk num #1~1 {   
   type number
   msg_0 Please Key in The 4 scurity Code ^^
   msg_1 /(\d+)/
}
I'm going to kill myself
Learn rules

fsinz44
Noob
Noob
Posts: 4
Joined: 06 Apr 2016, 08:43
Noob?: Yes

Re: reactOnNPC v.2.0.2 by hakore

#378 Post by fsinz44 »

SkylorD wrote:If doesn't work :

Code: Select all

reactOnNPC talk num #1~1 {   
   type number
   msg_0 Please Key in The 4 scurity Code ^^
   msg_1 /(\d+)/
}
I'm going to kill myself
hii SkylorD..
did u help me with this

Penjaga#moc1: [Penjaga]
[reactOnNPC] NPC message saved (0): "[Penjaga]".
Penjaga#moc1: tuliskan teks berwarna merah
[reactOnNPC] NPC message saved (1): "tuliskan teks berwarna merah".
Penjaga#moc1: Jika kamu salah
[reactOnNPC] NPC message saved (2): "Jika kamu salah".
Penjaga#moc1: akan dipindahkan ke kota Prontera
[reactOnNPC] NPC message saved (3): "akan dipindahkan ke kota Prontera".
Penjaga#moc1: akusukabermainrogravindo
[reactOnNPC] NPC message saved (4): "^FF0000a^000000kusuka^FF0000b^000000er^FF0000m^000000ain^FF0000r^000000ogravindo".
Penjaga#moc1: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
[reactOnNPC] Conditions for reactOnNPC_0 (npc:continue, rect:text) 'type' not met.
Penjaga#moc1: Type 'talk text' (Respond to NPC)
[reactOnNPC] onNPCAction type is: text.
[reactOnNPC] Conditions for reactOnNPC_0 (npc:text , rect:text) is met.
[reactOnNPC] Matching [msg (0)] "[Penjaga]" to "/[Penjaga]/" ... regexp ok.
[reactOnNPC] Matching [msg (1)] "tuliskan teks berwarna merah" to "/tuliskan teks berwarna merah/" ... regexp ok.
[reactOnNPC] Matching [msg (2)] "Jika kamu salah" to "/Jika kamu salah/" ... regexp ok.
[reactOnNPC] Matching [msg (3)] "akan dipindahkan ke kota Prontera" to "/akan dipindahkan ke kota Prontera/" ... regexp
ok.
[reactOnNPC] Matching [msg (4)] "^FF0000a^000000kusuka^FF0000b^000000er^FF0000m^000000ain^FF0000r^000000ogravindo" to
"/(\^[0-9a-fA-F]{6})(.+)/i" ... regexp ok.

how take red letter color for the answer, like abmr.
1 sentence there are 4/5 red letters.

thanks

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: reactOnNPC v.2.0.2 by hakore

#379 Post by SkylorD »

Code: Select all

reactOnNPC talk text @eval(my $color1 = #4~1;my$color2 = #5~1;my$color3 = #6~1;my$color4 = #7~1;my$color5 = #8~1;my$color6 = #9~1;my$color7 = #10~1;my $color8 = #11~1;my $textA = #4~2;my $textB = #5~2;my $textC = #6~2;my $textD = #7~2;my $textE = #8~2;my $textF = #9~2;my $textG = #10~2;my $textH = #11~2;my $output = 0;if ($color1 eq '^FF0000'@) {$output .= "$textA";}if ($color2 eq '^FF0000'@) {$output .= "$textB";}if ($color3 eq '^FF0000'@) {$output .= "$textC";}if ($color4 eq '^FF0000'@) {$output .= "$textD";}if ($color5 eq '^FF0000'@) {$output .= "$textE";}if ($color6 eq '^FF0000'@) {$output .= "$textF";}if ($color7 eq '^FF0000'@) {$output .= "$textG";}if ($color8 eq '^FF0000'@) {$output .= "$textH";}return $output;) 
{
   type text
   useColors 1
   msg_0 [Penjaga]
   msg_1 /tulskan teks berwarna merah/i
   msg_2 /Jka kamu salah/i
   msg_3 /akan dpndahkan ke kota Prontera/i
   msg_4 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_5 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_6 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_7 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_8 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_9 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_10 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_11 /(\^[0-9a-fA-F]{6})(\w+)/i
}
You should test.

Containing 8 words separated by color.

^AA0000He^AA0000l^AA0000l^AA0000o^BB0000Wor^CC0000W^DD0000or^FF0000ld

Here, it will mount the final response as :

ld

from :

He = 1
l = 2
l = 3
o = 4
Wor = 5
W = 6
or = 7
ld = 8

8 colors to check

Is this input constant or variable ?

You received 16 inputs (8 colors and 8 words with random sizes).
8 comparison for colors, and 8 words random sized.
Make each comparison of colors with the RED HEX RGB (^FF0000) (#x~1) and make only ONE result, concatenating the words (#x~2) found.
This is the final result


In this example, you will "talk text" in this case, talk abmr.
Learn rules

fsinz44
Noob
Noob
Posts: 4
Joined: 06 Apr 2016, 08:43
Noob?: Yes

Re: reactOnNPC v.2.0.2 by hakore

#380 Post by fsinz44 »

SkylorD wrote:

Code: Select all

reactOnNPC talk text @eval(my $color1 = #4~1;my$color2 = #5~1;my$color3 = #6~1;my$color4 = #7~1;my$color5 = #8~1;my$color6 = #9~1;my$color7 = #10~1;my $color8 = #11~1;my $textA = #4~2;my $textB = #5~2;my $textC = #6~2;my $textD = #7~2;my $textE = #8~2;my $textF = #9~2;my $textG = #10~2;my $textH = #11~2;my $output = 0;if ($color1 eq '^FF0000'@) {$output .= "$textA";}if ($color2 eq '^FF0000'@) {$output .= "$textB";}if ($color3 eq '^FF0000'@) {$output .= "$textC";}if ($color4 eq '^FF0000'@) {$output .= "$textD";}if ($color5 eq '^FF0000'@) {$output .= "$textE";}if ($color6 eq '^FF0000'@) {$output .= "$textF";}if ($color7 eq '^FF0000'@) {$output .= "$textG";}if ($color8 eq '^FF0000'@) {$output .= "$textH";}return "$output";) 
{
   type text
   useColors 1
   msg_0 [Penjaga]
   msg_1 /tulskan teks berwarna merah/i
   msg_2 /Jka kamu salah/i
   msg_3 /akan dpndahkan ke kota Prontera/i
   msg_4 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_5 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_6 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_7 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_8 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_9 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_10 /(\^[0-9a-fA-F]{6})(\w+)/i
   msg_11 /(\^[0-9a-fA-F]{6})(\w+)/i
}
You should test.

Containing 8 words separated by color.

^AA0000He^AA0000l^AA0000l^AA0000o^BB0000Wor^CC0000W^DD0000or^FF0000ld

Here, it will mount the final response as :

ld

from :

He = 1
l = 2
l = 3
o = 4
Wor = 5
W = 6
or = 7
ld = 8

8 colors to check

Is this input constant or variable ?

You received 16 inputs (8 colors and 8 words with random sizes).
8 comparison for colors, and 8 words random sized.
Make each comparison of colors with the RED HEX RGB (^FF0000) (#x~1) and make only ONE result, concatenating the words (#x~2) found.
This is the final result


In this example, you will "talk text" in this case, talk abmr.
the sentence is constant "abcdefghijklmnopqrstuvwx" but the colored letters are scrambled from the sentence, and the answer is a red letter

btw thanks for ur help.. ill try ur code.

Post Reply