responseOnNPCImage "response base on NPC Image" by abt123

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
bin12
Noob
Noob
Posts: 5
Joined: 30 Apr 2008, 07:06

Re: responseOnNPCImage "response base on NPC Image" by abt123

#21 Post by bin12 »

im having problem on the plugins, it only input the last image number shown.

console.txt

Code: Select all

[Jan 15 23:31:19 2009.42] Unknown #110018014: [Police]
[Jan 15 23:31:19 2009.44] [AntiBot] NPC Message: [^0000FFPolice^000000].
[Jan 15 23:31:19 2009.46] Unknown #110018014: Click next then type in the 3 numbers you see in dots:
[Jan 15 23:31:19 2009.47] [AntiBot] NPC Message: Click next then type in the 3 numbers you see in dots:.
[Jan 15 23:31:19 2009.49] Unknown #110018014:  
[Jan 15 23:31:19 2009.51] [AntiBot] NPC Message:  .
[Jan 15 23:31:19 2009.52] Unknown #110018014: one of tên
[Jan 15 23:31:19 2009.54] [AntiBot] NPC Message: ^BC0675^1EB645one^000000 of ^C6390Ftên^000000.
[Jan 15 23:31:19 2009.56] Unknown #110018014:  one Hundred eightÿ  seconds to respond or you will be jailed. Do not reconnect.
[Jan 15 23:31:19 2009.57] [AntiBot] NPC Message: ^8900B8 ^624391^61C21Bone ^855123Hundred ^BDB165^610E72eightÿ ^9D59B9^000000^215769 seconds to respond or you will be jailed. Do not reconnect..
[Jan 15 23:31:19 2009.59] [responseOnNPCImage] Image name >> "bkd3.bmp"
[Jan 15 23:31:19 2009.61] Unknown #110018014: Auto-continuing talking
[Jan 15 23:31:19 2009.64] Target died
[Jan 15 23:31:19 2009.89] [GM] Police: I really sorry but i need to know if you are Playing or Boting.
[Jan 15 23:31:19 2009.91] Unknown #110018014: [Police]
[Jan 15 23:31:19 2009.93] [AntiBot] NPC Message: [^0000FFPolice^000000].
[Jan 15 23:31:19 2009.94] Unknown #110018014: Click next then type in the 3 numbers you see in dots:
[Jan 15 23:31:19 2009.96] [AntiBot] NPC Message: Click next then type in the 3 numbers you see in dots:.
[Jan 15 23:31:19 2009.98] Unknown #110018014:  
[Jan 15 23:31:20 2009.5] [AntiBot] NPC Message:  .
[Jan 15 23:31:20 2009.16] Unknown #110018014: one of tên
[Jan 15 23:31:20 2009.33] [AntiBot] NPC Message: ^ACA2BE^630473one^000000 of ^839FB9tên^000000.
[Jan 15 23:31:20 2009.50] Unknown #110018014:  one Hundred sêvêntÿ nïne seconds to respond or you will be jailed. Do not reconnect.
[Jan 15 23:31:20 2009.66] [AntiBot] NPC Message: ^683E27 ^1635C8^496A45one ^5A7ABBHundred ^6C8F48^0F856Bsêvêntÿ ^761B57nïne^000000^C54A0C seconds to respond or you will be jailed. Do not reconnect..
[Jan 15 23:31:20 2009.89] [responseOnNPCImage] Image name >> "bkd6.bmp"
[Jan 15 23:31:20 2009.10] Unknown #110018014: Auto-continuing talking
[Jan 15 23:31:20 2009.40] [GM] Police: I really sorry but i need to know if you are Playing or Boting.
[Jan 15 23:31:20 2009.41] Unknown #110018014: [Police]
[Jan 15 23:31:20 2009.43] [AntiBot] NPC Message: [^0000FFPolice^000000].
[Jan 15 23:31:20 2009.45] Unknown #110018014: Click next then type in the 3 numbers you see in dots:
[Jan 15 23:31:20 2009.46] [AntiBot] NPC Message: Click next then type in the 3 numbers you see in dots:.
[Jan 15 23:31:20 2009.48] Unknown #110018014:  
[Jan 15 23:31:20 2009.50] [AntiBot] NPC Message:  .
[Jan 15 23:31:20 2009.52] Unknown #110018014: one of tên
[Jan 15 23:31:20 2009.53] [AntiBot] NPC Message: ^5C8B90^4E126Eone^000000 of ^14842Atên^000000.
[Jan 15 23:31:20 2009.55] Unknown #110018014:  one Hundred sêvêntÿ nïne seconds to respond or you will be jailed. Do not reconnect.
[Jan 15 23:31:20 2009.57] [AntiBot] NPC Message: ^4B2F6A ^3E8450^4847B2one ^BFB032Hundred ^6B411C^7D7A87sêvêntÿ ^4C647Fnïne^000000^4B8928 seconds to respond or you will be jailed. Do not reconnect..
[Jan 15 23:31:20 2009.59] [responseOnNPCImage] Image name >> "bkd6.bmp"
[Jan 15 23:31:20 2009.60] Unknown #110018014: Auto-continuing talking
[Jan 15 23:31:20 2009.89] NPC Exists: Unknown #110018014 (238, 254) (ID 110018014) - (0)
[Jan 15 23:31:20 2009.90] Unknown #110018014: Type 'talk num <number #>' to input a number.
[Jan 15 23:31:20 2009.92] [reactOnNPC] Reacting to NPC. Executing command "talkImage num".
[Jan 15 23:31:20 2009.94] [responseOnNPCImage] Executing command "talk num 6".
[Jan 15 23:31:21 2009.22] Unknown #110018014: [Police]
[Jan 15 23:31:21 2009.24] [AntiBot] NPC Message: [^0000FFPolice^000000].
[Jan 15 23:31:21 2009.25] Unknown #110018014: No, the right answer is: 366
[Jan 15 23:31:21 2009.27] [AntiBot] NPC Message: ^F51200No, the right answer is: ^00571E366^000000.
[Jan 15 23:31:21 2009.29] Unknown #110018014:  
what i have done so far:

respImageTable.txt

Code: Select all

bkd1.bmp 1
bkd2.bmp 2
bkd3.bmp 3
bkd4.bmp 4
bkd5.bmp 5
bkd6.bmp 6
bkd7.bmp 7
bkd8.bmp 8
bkd9.bmp 9
bkd0.bmp 0
config.txt

Code: Select all

reactOnNPC talkImage num {
	type number
	msg_0 [Police]
        msg_1 /.*/
}
i also tried the last plugin you made, the problem is it doesnt seen any image yet. heres the console.txt

Code: Select all

[Jan 17 22:27:57 2009.15] You are in Frozen state
[Jan 17 22:27:57 2009.78] [responseOnNPCImage] Image name (6) >> "mets_alpha.bmp"
[Jan 17 22:27:58 2009.72] [GM] Police: I really sorry but i need to know if you are Playing or Boting.
[Jan 17 22:27:58 2009.82] Unknown #110018014: [Police]
[Jan 17 22:27:59 2009.32] [AntiBot] NPC Message: [^0000FFPolice^000000].
[Jan 17 22:27:59 2009.69] Unknown #110018014: Click next. Three(3) number images in black circles will appear simultaneously in your screen after each click of "next". Then input these 3 numbers at the box provided at the end.
[Jan 17 22:28:00 2009.10] [AntiBot] NPC Message: Click next. Three(3) number images in black circles will appear simultaneously in your screen after each click of "next". Then input these 3 numbers at the box provided at the end..
[Jan 17 22:28:00 2009.30] Unknown #110018014:  
[Jan 17 22:28:00 2009.44] [AntiBot] NPC Message:  .
[Jan 17 22:28:00 2009.59] Unknown #110018014: one of tên
[Jan 17 22:28:00 2009.66] [AntiBot] NPC Message: ^6A6775^971736one^000000 of ^595CC8tên^000000.
[Jan 17 22:28:00 2009.81] Unknown #110018014:  one Hundred eightÿ  seconds to respond or you will be jailed. Do not reconnect.
[Jan 17 22:28:00 2009.99] [AntiBot] NPC Message: ^4CBC0C ^A19A11^629F80one ^831426Hundred ^BA40AD^9A7D6Deightÿ ^8E3230^000000^C34394 seconds to respond or you will be jailed. Do not reconnect..
[Jan 17 22:28:01 2009.20] [responseOnNPCImage] Image name (7) >> "bkd5.bmp"
[Jan 17 22:28:01 2009.43] Unknown #110018014: Auto-continuing talking
[Jan 17 22:28:02 2009.17] [GM] Police: I really sorry but i need to know if you are Playing or Boting.
[Jan 17 22:28:02 2009.30] Unknown #110018014: [Police]
[Jan 17 22:28:02 2009.59] [AntiBot] NPC Message: [^0000FFPolice^000000].
[Jan 17 22:28:02 2009.82] Unknown #110018014: Click next. Three(3) number images in black circles will appear simultaneously in your screen after each click of "next". Then input these 3 numbers at the box provided at the end.
[Jan 17 22:28:03 2009.48] [AntiBot] NPC Message: Click next. Three(3) number images in black circles will appear simultaneously in your screen after each click of "next". Then input these 3 numbers at the box provided at the end..
[Jan 17 22:28:03 2009.79] Unknown #110018014:  
[Jan 17 22:28:05 2009.27] [AntiBot] NPC Message:  .
[Jan 17 22:28:05 2009.35] Unknown #110018014: one of tên
[Jan 17 22:28:05 2009.51] [AntiBot] NPC Message: ^B646B9^1B715Cone^000000 of ^96BE25tên^000000.
[Jan 17 22:28:05 2009.85] Unknown #110018014:  one Hundred sïxty sêvên seconds to respond or you will be jailed. Do not reconnect.
[Jan 17 22:28:06 2009.16] [AntiBot] NPC Message: ^0578A1 ^C1243D^4E9B6Cone ^17B850Hundred ^B8A534^B93443sïxty ^16830Asêvên^000000^354C13 seconds to respond or you will be jailed. Do not reconnect..
[Jan 17 22:28:06 2009.43] [responseOnNPCImage] Image name (8) >> "bkd5.bmp"
[Jan 17 22:28:06 2009.70] Unknown #110018014: Auto-continuing talking
[Jan 17 22:28:10 2009.84] You are no longer: Enchant Poison
[Jan 17 22:28:12 2009.36] [GM] Police: I really sorry but i need to know if you are Playing or Boting.
[Jan 17 22:28:12 2009.69] Unknown #110018014: [Police]
[Jan 17 22:28:12 2009.97] [AntiBot] NPC Message: [^0000FFPolice^000000].
[Jan 17 22:28:13 2009.33] Unknown #110018014: Click next. Three(3) number images in black circles will appear simultaneously in your screen after each click of "next". Then input these 3 numbers at the box provided at the end.
[Jan 17 22:28:13 2009.38] [AntiBot] NPC Message: Click next. Three(3) number images in black circles will appear simultaneously in your screen after each click of "next". Then input these 3 numbers at the box provided at the end..
[Jan 17 22:28:13 2009.47] Unknown #110018014:  
[Jan 17 22:28:13 2009.68] [AntiBot] NPC Message:  .
[Jan 17 22:28:13 2009.96] Unknown #110018014: one of tên
[Jan 17 22:28:14 2009.11] [AntiBot] NPC Message: ^35B87C^B53E58one^000000 of ^8C4F21tên^000000.
[Jan 17 22:28:14 2009.26] Unknown #110018014:  one Hundred sïxty  seconds to respond or you will be jailed. Do not reconnect.
[Jan 17 22:28:14 2009.35] [AntiBot] NPC Message: ^9038A7 ^13BE37^157A20one ^3A5FB9Hundred ^44051A^68C206sïxty ^577F74^000000^8E8DC8 seconds to respond or you will be jailed. Do not reconnect..
[Jan 17 22:28:14 2009.50] [responseOnNPCImage] Image name (9) >> "bkd3.bmp"
[Jan 17 22:28:14 2009.61] Unknown #110018014: Auto-continuing talking
[Jan 17 22:28:15 2009.15] NPC Exists: Unknown #110018014 (175, 149) (ID 110018014) - (0)
[Jan 17 22:28:15 2009.36] Unknown #110018014: Type 'talk num <number #>' to input a number.
[Jan 17 22:28:15 2009.51] [reactOnNPC] Reacting to NPC. Executing command "talkImage num".
[Jan 17 22:28:15 2009.89] [responseOnNPCImage] Doesn't seen any image yet!

snake
Noob
Noob
Posts: 1
Joined: 18 Jan 2009, 01:31
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image" by abt123

#22 Post by snake »

I have this problem too... I hope Mucillon can help us to this problem... The plug-in seem to work at first but when the Police caught again it doesn't seen any image

imbaTest
Noob
Noob
Posts: 1
Joined: 18 Jan 2009, 05:09
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image" by abt123

#23 Post by imbaTest »

me too have the same problem

natalie
Noob
Noob
Posts: 14
Joined: 13 Dec 2008, 12:54
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image" by abt123

#24 Post by natalie »

I did the same thing as "bin12"... and i think its correct coz sometimes it works...
but there are times that the plugin does not detect the image...

@all

sometimes it works,sometimes it doesn't..why is this happening??
do i need to reload the plugin every once in a while??
is there a way to trigger the plugin by a MACRO, to make it detect the image??

tambok143
Noob
Noob
Posts: 8
Joined: 01 Feb 2009, 00:16
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image" by abt123

#25 Post by tambok143 »

some bot killers gives 3 images
however it only responses on the last image
i hope that we can configure the number of images to input


edit:
can someone tell me how to assign a variable to each image that shows up
so that i can use a macro to input the corresponding answers since the plugin only reads the last image i am working to change it to the last 3 images assigned

exlaws09
Noob
Noob
Posts: 3
Joined: 28 Mar 2009, 14:15
Noob?: No

Re: responseOnNPCImage "response base on NPC Image" by abt123

#26 Post by exlaws09 »

in the first police.. it can reactonnpc... but when the second police pops up... it says "it doesnt seen any image"..

whats the problem??.. in the reactonnpc command in config.txt or in the plugin??

rasengan08
Noob
Noob
Posts: 2
Joined: 26 Mar 2009, 09:54
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image" by abt123

#27 Post by rasengan08 »

I think we can issue a macro on this if only I would know how to detect the console lines:

[responseOnNPCImage] Image name (2) >> "bkd1.bmp" //then pass bkd# to a variable
[responseOnNPCImage] Image name (2) >> "bkd8.bmp"
[responseOnNPCImage] Image name (2) >> "bkd3.bmp"

If you teach me how to successfully detect the console I'll try to make it work.

This is what I have in mind:

1. Anti-bot catches you

2. Console logs:
[Police]
[responseOnNPCImage] Image name (2) >> "bkd#.bmp"
[responseOnNPCImage] Image name (2) >> "bkd#.bmp"
[responseOnNPCImage] Image name (2) >> "bkd#.bmp"
Then automacro would detect console logs.

3. Pass each one to a variable, then loop to check the arguements

4. Execute talk num var1, var2, var3

but if course it's not that simple.

rasengan08
Noob
Noob
Posts: 2
Joined: 26 Mar 2009, 09:54
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image" by abt123

#28 Post by rasengan08 »

here are some of the condition i trie to trigger an automacro to detect [responseOnNPCImage] Image name which doesn't trigger at all:


console /[responseOnNPCImage] Image name (1) >> "(.*)"/

console /Image name (1) >> "(.*)"/

console Image name (1) >> "(.*)"

console /Image name (1) >> "(.*)"/i


it doesn't trigger at all.. Help please?


edit: Somebody told me that i need to convert the text to regex which I think I need to study first.

bawalangpork
Noob
Noob
Posts: 1
Joined: 17 Apr 2009, 10:36
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image" by abt123

#29 Post by bawalangpork »

hi to all, could someone give a responseOnNPCImage.pl. the link in the first page is not working, please i need it, the other responseOnNPCImage.pl that i have aint working on openkore 2.0.6, pleae guys need it badly, thanks in advance!

fath
Noob
Noob
Posts: 1
Joined: 21 Apr 2009, 01:34
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image" by abt123

#30 Post by fath »

Hi mucilan,,im newbie here,,,
but im still in he process of learning plugin for my server with botkiller,,
will u attach some file again please,,
tha respOnImage.pl and respImagetable.txt
i says that the attachment dont exist anymore,,
where can i get those files,,
thanx before mucilan,,^^

Post Reply