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
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: reactOnNPC v.1.1.1 by hakore

#91 Post by sli »

windows98SE wrote:1. my internet is slow (b'cuz my GF download bitterrant - -'') [hard to test plugins in Ro server Outside my country (thai) by myself]
Throttle BT traffic in your router (you'll need DD-WRT on your router) and add priority to your LAN IP. That'll put a stop to it. Or turn on the MAC filter and don't add her machine's MAC address (if she's a wireless client on the router).
cs : ee : realist

windows98SE
Human
Human
Posts: 22
Joined: 31 May 2008, 21:40
Noob?: No

Re: reactOnNPC v.1.1.1 by hakore

#92 Post by windows98SE »

@sli
thx for rep

but, if i stop,block,bla bla DL&UL speed ... my GF will kill me (like Extremity Fist :o )
but sometime can limit D/l speed ............ "sometime" T_T
Free !!, All about BOT SETTING, Plz. Read Openkore Manual

tomcs70
Noob
Noob
Posts: 16
Joined: 16 Jun 2008, 22:34
Noob?: Yes

Re: reactOnNPC v.1.1.1 by hakore

#93 Post by tomcs70 »

Need help with this antibot, i play on a mexican private server.
ORIGINAL LOG
You are in Frozen state
[GM] Policía: Siento interrumpirte pero debo saber si estás jugando o usando
Bot.
Unknown #110019081: [Policía]
[Guild] Brilight: yit ese sas egi
[Guild] Kukre: idim isoweta misu vu
[Guild] White Plant: amahotoy jeyay guvole☺
[Guild] Petite: he tic 619 fihoxur
Unknown #110019081:
Unknown #110019081: Un monstruo acaba de decir un número (ver chat log)
Unknown #110019081:
Unknown #110019081: Restan noventa segundos
Unknown #110019081: Auto-continuing talking
NPC Exists: Unknown #110019081 (140, 64) (ID 110019081) - (0)
Unknown #110019081: Type 'talk num <number #>' to input a number.
talk num 619
You are out of Frozen state


-----------------------------------------------------------------
TRANSLATED SPANISH ELEMENTS TO ENGLISH
You are in Frozen state
[GM] Police: Sorry to interrupt but i must know if you're playing or using Bot.
Unknown #110019081: [Police]
[Guild] Brilight: yit ese sas egi
[Guild] Kukre: idim isoweta misu vu
[Guild] White Plant: amahotoy jeyay guvole☺
[Guild] Petite: he tic 619 fihoxur
Unknown #110019081:
Unknown #110019081: a monster just said a number (see chat log)
Unknown #110019081:
Unknown #110019081: Remaining ninety seconds
Unknown #110019081: Auto-continuing talking
NPC Exists: Unknown #110019081 (140, 64) (ID 110019081) - (0)
Unknown #110019081: Type 'talk num <number #>' to input a number.
talk num 619
You are out of Frozen state
-------------------------------------------------------------------------

THESE IS A screen capture of the event in my Testing Server.
The language i'am using on these Antibot it's english but you have the spanish option too.
Image
sometimes the number appears on option # 1, and after that it might appear on #4.
Sometimes there are 2 numbers between giberish, and sometimes they are 3.
THESE IS A screen capture at the real 'RO Server'.
First the antibot ask to push the next botton.
Image
and after that it comes these one!!
Here you have to check the chat log, to see the number
Image
These is the Chat log:
Image
I know that there's is something to do with regexe perl stuff, but i'am still strugleling to understand it.
How to deal with these Antibot?

tomcs70
Noob
Noob
Posts: 16
Joined: 16 Jun 2008, 22:34
Noob?: Yes

Re: reactOnNPC v.1.1.1 by hakore

#94 Post by tomcs70 »

Reading all lots of post i got this idea for my config.txt

reactOnNPC talk num #1~1#1~2#1~3#1~4#1~5
#2~1#2~2#2~3#2~4#2~5
#3~1#3~2#3~3#3~4#3~5
#4~1#4~2#4~3#4~4#4~5(
type number
msg_0 [Policía ------------]
msg_1 /(\d+)/
msg_2 /(\d+)/
msg_3 /(\d+)/
msg_4 /(\d+)/
}
########################
Is it right?
Is there a Shorter code possible?
i'am going to test it out, and let you know the result.
Ok, it didnt work, so i'am going to debug 1, to see the problem,
if anyone can help i'll apreciate it.
#########################
ok this is the log, see if you can help me.
Some spanish words in betwen, i'll translate them
###########################
ORIGINAL LOG
BotKillerFnc1: [Policía]
[reactOnNPC] NPC message saved (0): "[^0000FFPolicía^000000]".
BotKillerFnc1: Error!, la respuesta era: 962
[reactOnNPC] NPC message saved (1): "^F51200Error!, la respuesta era:
^00571E962^000000".
BotKillerFnc1:
[reactOnNPC] NPC message saved (2): " ".
BotKillerFnc1: Si fallas 5 veces... te vas a la cárcel!
[reactOnNPC] NPC message saved (3): "Si fallas 5 veces... te vas a la cárcel!".
BotKillerFnc1: Restan 43 segundos
[reactOnNPC] NPC message saved (4): " Restan ^0000FF43^000000 segundos".
BotKillerFnc1: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
NPC image: mets_alpha.bmp (0)
BotKillerFnc1: [Policía]
[reactOnNPC] NPC message saved (0): "[^0000FFPolicía^000000]".
[Guild] Pest: uwadoj pij jup efs
[Guild] Red Plant: wubuyi ehumu apu
[Guild] Wormtail: poxugi umuwasa sat acocs
[Guild] Snake: ado 332 isodots
BotKillerFnc1:
[reactOnNPC] NPC message saved (1): " ".
BotKillerFnc1: Un monstruo acaba de decir un número (ver chat log)
[reactOnNPC] NPC message saved (2): "^F51200Un monstruo acaba de decir un
número (ver chat log)^000000".
BotKillerFnc1:
[reactOnNPC] NPC message saved (3): " ".
BotKillerFnc1: Restan cuarenta y tres segundos
[reactOnNPC] NPC message saved (4): "^015666 Restan
^C72B2D^2E2134cuarenta^06BAB2 y ^5CAEB6tres^000000^A2AEB7 segundos".
BotKillerFnc1: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
BotKillerFnc1: Type 'talk num <number #>' to input a number.
[reactOnNPC] onNPCAction type is: number.
NPC image: mets_alpha.bmp (0)
You are out of look: Ruwach
You are out of look: GM Perfect Hide
NPC image: (0)
[GM] Police: xsed was sent to the jail for 02:00 (timeout - 00:03:02)
[Guild] (@request): Police: xsed was sent to the jail for 02:00 (timeout -
00:03:02)6
@request sent.
Map Change: sec_pri.gat (49, 75)
Sending Map Loaded
GM has sent you to jail.
Player warped to jail.
Unknown #110019081: Done talking
[reactOnNPC] onNPCAction type is: close.
#############################
TRANSLATED LOG
BotKillerFnc1: [Police]
[reactOnNPC] NPC message saved (0): "[^0000FFPolice^000000]".
BotKillerFnc1: Error!, the answer is: 962
[reactOnNPC] NPC message saved (1): "^F51200Error!, the answer is:
^00571E962^000000".
BotKillerFnc1:
[reactOnNPC] NPC message saved (2): " ".
BotKillerFnc1: If you fail 5 times... you're going to jail!
[reactOnNPC] NPC message saved (3): "If you fail 5 times... you're going to jail!".
BotKillerFnc1: Remaining 43 seconds
[reactOnNPC] NPC message saved (4): " Remaining ^0000FF43^000000 seconds".
BotKillerFnc1: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
NPC image: mets_alpha.bmp (0)
BotKillerFnc1: [Police]
[reactOnNPC] NPC message saved (0): "[^0000FFPolice^000000]".
[Guild] Pest: uwadoj pij jup efs
[Guild] Red Plant: wubuyi ehumu apu
[Guild] Wormtail: poxugi umuwasa sat acocs
[Guild] Snake: ado 332 isodots
BotKillerFnc1:
[reactOnNPC] NPC message saved (1): " ".
BotKillerFnc1: A monster said a number (see chat log)
[reactOnNPC] NPC message saved (2): "^F51200A monster said a number (see chat log)^000000".
BotKillerFnc1:
[reactOnNPC] NPC message saved (3): " ".
BotKillerFnc1: Remaining Forty three seconds
[reactOnNPC] NPC message saved (4): "^015666 Remaining
^C72B2D^2E2134Forty^06BAB2 y ^5CAEB6three^000000^A2AEB7 seconds".
BotKillerFnc1: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
BotKillerFnc1: Type 'talk num <number #>' to input a number.
[reactOnNPC] onNPCAction type is: number.
NPC image: mets_alpha.bmp (0)
You are out of look: Ruwach
You are out of look: GM Perfect Hide
NPC image: (0)
[GM] Police: xsed was sent to the jail for 02:00 (timeout - 00:03:02)
[Guild] (@request): Police: xsed was sent to the jail for 02:00 (timeout -00:03:02)6
@request sent.
Map Change: sec_pri.gat (49, 75)
Sending Map Loaded
GM has sent you to jail.
Player warped to jail.
Unknown #110019081: Done talking
[reactOnNPC] onNPCAction type is: close.

tomcs70
Noob
Noob
Posts: 16
Joined: 16 Jun 2008, 22:34
Noob?: Yes

Re: reactOnNPC v.1.1.1 by hakore

#95 Post by tomcs70 »

Ok, i did some changes on my config.txt

reactOnNPC talk num @eval(#1~2#1~3#1~4#1~5
#2~2#2~3#2~4#2~5
#3~2#3~3#3~4#3~5
#4~2#4~3#4~4#4~5)
{
type number
msg_0 [Policía ------------]
msg_1 /(\d+)/
msg_2 /(\d+)/
msg_3 /(\d+)/
msg_4 /(\d+)/
}
I'll let you know if it did work, but if you see something is wrong, please help me.

hakore
Super Moderators
Super Moderators
Posts: 200
Joined: 16 May 2008, 08:28
Noob?: No
Contact:

Re: reactOnNPC v.1.1.1 by hakore

#96 Post by hakore »

@tomcs70

reactOnNPC alone cannot solve your problem since the response required is not embedded in the NPC messages. Instead, they are sent through the guild chat.

You need a custom plugin in tandem with the reactOnNPC plugin to catch the guild chat messages.
Whatever...

tomcs70
Noob
Noob
Posts: 16
Joined: 16 Jun 2008, 22:34
Noob?: Yes

Re: reactOnNPC v.1.1.1 by hakore

#97 Post by tomcs70 »

Hey thanks for your response, so a guild plugin along with the reactOnNPC plugin, it sounds very dificult, but i'll see if there is a guild plugin already and then i'am goign to try to paste it somehow in your plugin.
Thanks again

I see that Kadiliman Plugin v 1.3 - ChatBot by Kali, use the guild chat, so this one could be used to work with the reactOnNPC.
nice, but so dificult.

Maybe if we add:

use Network;
use Network::Receive;

my $hooks = Plugins::addHooks(
['packet/guild_chat', \&onMessage, undef],
['start3', \&start3, undef],
['AI_post', \&AI_post, undef]
);
And after these i'am totally lost.

6r1sw0Ld
Noob
Noob
Posts: 5
Joined: 21 Jun 2008, 20:14
Noob?: No

Re: reactOnNPC v.1.1.1 by hakore

#98 Post by 6r1sw0Ld »

sir hakore I know that my post here is out of topic and I really really apologize for that but there is no one in "development help" thread right now , pls help us.

here's the thread sir hakore or someone know about this

http://forums.openkore.com/viewtopic.php?f=37&t=1511

gud day , tnx and gobless sir hakore

GSMikami
Noob
Noob
Posts: 4
Joined: 25 May 2008, 18:56
Noob?: Yes

Autoresponses on NPC when dynamic reponses.

#99 Post by GSMikami »

Hello I' m trying to make a bot completing the training ground but when we just spawn in the game, we have to talk to a NPC who ask us a few questions, for a same question, the responses can change places.
That make impossible for me to make an automacro, I tried to make something like that:

automacro q1 {
console /1 October/
call reponse1
console /2 October/
call reponse2
console /3 October/
call reponse3
console /4 October/
call reponse4
console /0 October/

}

macro reponse0 {
do talk resp 0
release q1
}

macro reponse1 {
do talk resp 1
release q1
}

macro reponse2 {
do talk resp 2
release q1
}

macro reponse3 {
do talk resp 3
release q1
}

macro reponse4 {
do talk resp 4
release q1
}


This automacro was never triggered...

Here are the questions sequence, you can see the response changed from resp 1 to 4 when I cancel & asked again...

Valkyrie#nub: Welcome
Valkyrie#nub: Auto-continuing talking
Valkyrie#nub: [Valkyrie]
Valkyrie#nub: Before continuing, I need to ask you some questions
Valkyrie#nub: Auto-continuing talking
Valkyrie#nub: [Valkyrie]
Valkyrie#nub: Can you tell me which one is the 10th month of the year?
Valkyrie#nub: Auto-continuing talking
----------Responses-----------
# Response
0 July
1 October
2 December
3 March
4 September
5 Cancel Chat
-------------------------------
Valkyrie#nub: Type 'talk resp #' to choose a response.
Valkyrie#nub: Done talking

Valkyrie#nub: Welcome
Valkyrie#nub: Auto-continuing talking
Valkyrie#nub: [Valkyrie]
Valkyrie#nub: Before continuing, I need to ask you some questions
Valkyrie#nub: Auto-continuing talking
Valkyrie#nub: [Valkyrie]
Valkyrie#nub: Can you tell me which one is the 10th month of the year?
Valkyrie#nub: Auto-continuing talking
----------Responses-----------
# Response
0 July
1 August
2 December
3 March
4 October
5 Cancel Chat
-------------------------------
Valkyrie#nub: Type 'talk resp #' to choose a response.
Valkyrie#nub: Done talking


Then I did some research & used reactOnNPC & added this in the config.txt but I think I did a mistake:

reactOnNPC talk resp @resp(October) {
type responses
msg_0 [Valkyrie]
msg_1 Can you tell me which one is the 10th month of the year?

}


I wonder how the correct syntax will be? I need your light...

hakore
Super Moderators
Super Moderators
Posts: 200
Joined: 16 May 2008, 08:28
Noob?: No
Contact:

Re: Autoresponses on NPC when dynamic reponses.

#100 Post by hakore »

Your reactONNPC block looks fine.

Set debug to 1 in your config.txt and run your bot until the NPC talks to you again. Post here the messages shown in your console.
Whatever...

Post Reply