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
Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

responseOnNPCImage "response base on NPC Image" by abt123

#1 Post by Mucilon »

Just for the record, I never used this plugin, but can try to help!
This plugin was made and posted at the old forum by abt123, at the address: http://bibian.ath.cx/openkore/viewtopic.php?t=29071

What it does:
You use it for response BotKiller #1 - Method 2: Image Numbers or Texts, working together to the hakore's reactOnNPC plugin.
(http://www.eathena.ws/board/index.php?showtopic=120522)

Image

How to install:
1) Place this plugin in your plugins folder (see the Plugins FAQ how or macro plugin manual).
2) Don't forget to also download the reactOnNPC plugin and place it at the plugins folder, without it won't work!
3) Add a reactOnNPC config block in your config.txt file which defines the command to use and the conditions of the NPC conversation which will trigger Openkore to use the command.
4) Open the "responseOnNPCImage.pl" file and read the syntax and how to add new lines!

Code: Select all

# Syntax:
# '<image name>' => '<response>',
# <image name> - if you got following message 
#	[responseOnNPCImage] Image name >> "????"
# then the ???? is a <image name>.
#
# <response> - Any text that contained in NPC response choice(s) or number.
my %imageTable = (
	'cbot_1' => 'poring'
	'cbot_2' => 'lunatic'
	'cbot_3' => 'fabre'
	'cbot_4' => 'drops'
);
How to use:
1) Edit the "responseOnNPCImage.pl" file to your needs, see below.
2) At config.txt use something like this:

Code: Select all

reactOnNPC talkImage num {
	type number
	msg_0 [Bot Check]
	msg_1 /.*/
}
How to get an image name and fill in the respImageTable.txt file?
When you got this message on console [responseOnNPCImage] Image name >> "????"
Using GRF Tool, open your data.grf or any *.grf and search for the image name ????.
Then follow to that image path, you will get all images that your server might ask to you!

Some server use image name as a response.
put in config.txt:

Code: Select all

responseOnNPCImage_equal < num | text | resp | or leave blank for disable >
Files:
responseOnNPCImage.pl
reactOnNPC.pl
Last edited by Mucilon on 25 May 2008, 10:00, edited 2 times in total.

king_kong
Noob
Noob
Posts: 6
Joined: 20 May 2008, 10:24
Noob?: No

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

#2 Post by king_kong »

hey...

thanks for everything...
Last edited by king_kong on 23 May 2008, 19:36, edited 1 time in total.

Forgotten
Noob
Noob
Posts: 5
Joined: 21 May 2008, 23:41
Noob?: Yes

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

#3 Post by Forgotten »

Why i cant login the old forums? and help me find plugin for botkkiller method5 ASCII chars

Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#4 Post by Mucilon »

You just open the old forum site, don't need to login any more, it is just for research purpose...
Here is the address at the new forum: http://forums.openkore.com/viewtopic.php?f=34&t=575

Dareniel92
Noob
Noob
Posts: 2
Joined: 06 Jun 2008, 11:17
Noob?: Yes

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

#5 Post by Dareniel92 »

This is Anti-Bot is it??

How to set for server VanRo

VanRo Anti-Bot have random verify code

how to set up?


Image

Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#6 Post by Mucilon »

You need to use the responseOnASCIInumber plugin, see this forum:
http://forums.openkore.com/viewtopic.php?f=34&t=575

onisgam0324
Noob
Noob
Posts: 2
Joined: 27 Jun 2008, 06:58
Noob?: Yes

Re: responseOnNPCImage "response base on NPC Image"

#7 Post by onisgam0324 »

pls help me. i want to bot in a private server and the server has an antibot system.
i need to configure my config but i dont know what to put to make it run successfully.

this is what my bot says:

[GM] bluePlease enter the 2 numbers you see in order:
[responseOnNPCImage] Image name >> "3"
Calculating random route to: Veins Field(ve_fild01): 142, 193
[responseOnNPCImage] Image name >> "9"
[GM] blueEnter '1' to see the first number again or '2' to see the second
number
Unknown #110017700: Type 'talk num <number #>' to input a number.

the bot didnt respond to the anti-bot system but it shows the image name/num.

i have reactOnNPC plugin in the plugins folder.
but the big thing is i dont know how to edit or what to put in the reactOnNPC block at my config.txt and also i dont know what to put in the respImageTable.txt

the server's anti-bot system show 2 consecutive number from 1-9 which will then be ask the player to input the correct number to successfully log in...

Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#8 Post by Mucilon »

OK
If you read the first post of this topic, you are probable using a block similar to this:

Code: Select all

reactOnNPC talkImage num {
       type number
       msg_0 [Antibot]
       msg_1 /.*/
}
The 2 first lines must be the same, you just need to change the msg_<linenumber> texts, how to do it?
1) Turn on the debug, open your config.txt, find the line with debug 0 and change it to debug 1.
2) Add the texts received from the NPC to the plugin block at the config.txt, like this:
Assuming you received a text like this from the NPC Antibot:

Code: Select all

Unknown #110012987: [Bot Check]
[reactOnNPC] NPC message saved (0): "[Bot Check]".
Unknown #110012987: Please enter the 2 numbers you see in order:
[reactOnNPC] NPC message saved (1): "Please enter the 2 numbers you see in order:".
You'll see the texts NPC message saved (0), where the number is the line number, which must be used at the msg_<linenumber> option, in this case: msg_0
In this case, the block should be something like this:

Code: Select all

reactOnNPC talkImage num {
       type number
       msg_0 [Bot Check]
       msg_1 Please enter the 2 numbers you see in order:
}
In your case, you can use the exactly same text that you receive from the NPC.

onisgam0324
Noob
Noob
Posts: 2
Joined: 27 Jun 2008, 06:58
Noob?: Yes

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

#9 Post by onisgam0324 »

mucilon, this is from the console. i still has a problem logging in.

[Jul 4 14:25:12 2008.92] Connecting (208.101.58.11:4121)... [Jul 4 14:25:13 2008.14] connected
[Jul 4 14:25:13 2008.39] Sent Guild Information Request
[Jul 4 14:25:13 2008.39] Sent Guild Request Page : 0
[Jul 4 14:25:13 2008.39] Sent Guild Request Page : 1
[Jul 4 14:25:13 2008.39] You are now in the game
[Jul 4 14:25:13 2008.39] Sending Map Loaded
[Jul 4 14:25:13 2008.39] Sent initial sync
[Jul 4 14:25:13 2008.40] Your Coordinates: 146, 83
[Jul 4 14:25:13 2008.40] Admin/GMs would never ever ask for your password under any circumstances. Type @help for @commands;Please Visit the forum actively and vote for us daily.
[Jul 4 14:25:13 2008.40] Strength: 112 + 5
[Jul 4 14:25:13 2008.40] Agility: 154 + 5
[Jul 4 14:25:13 2008.41] Vitality: 95 + 5
[Jul 4 14:25:13 2008.41] Intelligence: 94 + 5
[Jul 4 14:25:13 2008.41] Dexterity: 1 + 15
[Jul 4 14:25:13 2008.41] Luck: 1 + 5
[Jul 4 14:25:13 2008.42] Your attack range is: 1
[Jul 4 14:25:13 2008.42] [Guild] You have 0 new emails (0 unread)Å¡
[Jul 4 14:25:14 2008.10] Inventory: Concentration Potion (0) x 4 - Usable
[Jul 4 14:25:14 2008.11] Inventory: Fly Wing (1) x 33 - Usable
[Jul 4 14:25:14 2008.11] Inventory: White Potion (2) x 10 - Usable
[Jul 4 14:25:14 2008.11] Inventory: Level 3 Fire Bolt (3) x 1 - Usable
[Jul 4 14:25:14 2008.11] Inventory: Cactus Needle (4) x 15 - Non-usable
[Jul 4 14:25:14 2008.11] Inventory: Novice Shoes [1] (5) x 1 - Weapon - Foot Wear
[Jul 4 14:25:14 2008.12] Inventory: Novice Manteau [1] (6) x 1 - Weapon - Cape
[Jul 4 14:25:14 2008.12] Inventory: Novice Breastplate [1] (7) x 1 - Weapon - Armour
[Jul 4 14:25:14 2008.12] Inventory: Novice Shield [1] (8) x 1 - Weapon - Shield
[Jul 4 14:25:14 2008.12] Inventory: Cinquedea [2] (9) x 1 - Armour - One-Handed Weapon
[Jul 4 14:25:14 2008.12] Stackable Cart Item: Rocker Doll (2) x 1
[Jul 4 14:25:14 2008.13] [cart_info] received.
[Jul 4 14:25:14 2008.13] PvP Display Mode
[Jul 4 14:25:14 2008.13] Monster Exists: Unknown #2816024832 (0)
[Jul 4 14:25:14 2008.14] Required Exp: 286629065
[Jul 4 14:25:14 2008.14] Required Job Exp: 0
[Jul 4 14:25:14 2008.14] Strength: 112 #13
Agility: 154 #17
Vitality: 95 #11
Intelligence: 94 #11
Dexterity: 1 #2
Luck: 1 #2
Attack: 352
Attack Bonus: 0
Magic Attack Min: 460
Magic Attack Max: 295
Defense: 11
Defense Bonus: 100
Magic Defense: 0
Magic Defense Bonus: 99
Hit: 198
Flee: 189
Flee Bonus: 1
Critical: 1
Status Points: 1
[Jul 4 14:25:14 2008.14] Strength: 112 + 5
[Jul 4 14:25:14 2008.15] Agility: 154 + 5
[Jul 4 14:25:14 2008.15] Vitality: 95 + 5
[Jul 4 14:25:14 2008.15] Intelligence: 94 + 5
[Jul 4 14:25:14 2008.15] Dexterity: 1 + 15
[Jul 4 14:25:14 2008.15] Luck: 1 + 5
[Jul 4 14:25:14 2008.16] Your attack range is: 1
[Jul 4 14:25:14 2008.16] [GM] bluePlease enter the 2 numbers you see in order:
[Jul 4 14:25:14 2008.16] NPC image: 1 (0)
[Jul 4 14:25:14 2008.16] [responseOnNPCImage] Image name >> "1"
[Jul 4 14:25:15 2008.41] Calculating random route to: Veins Field(ve_fild01): 265, 282
[Jul 4 14:25:15 2008.41] On route to: Veins Field(ve_fild01): 265, 282
[Jul 4 14:25:15 2008.49] Route Solution Ready!
[Jul 4 14:25:15 2008.51] Route - next step moving to (146, 93), index 15, 390 steps left
[Jul 4 14:25:15 2008.51] Move - (re)trying
[Jul 4 14:25:15 2008.97] NPC image: 3 (0)
[Jul 4 14:25:15 2008.97] [responseOnNPCImage] Image name >> "3"
[Jul 4 14:25:16 2008.20] Move - (re)trying
[Jul 4 14:25:16 2008.52] Move - (re)trying
[Jul 4 14:25:17 2008.15] Move - timeout
[Jul 4 14:25:17 2008.17] Route - trimming down solution (390) by 1 steps
[Jul 4 14:25:17 2008.18] Route - next step moving to (146, 94), index 15, 389 steps left
[Jul 4 14:25:17 2008.20] Move - (re)trying
[Jul 4 14:25:17 2008.53] Move - (re)trying
[Jul 4 14:25:17 2008.75] Monster Moved: Unknown #111663393 (0) - (137, 89) -> (146, 93)
[Jul 4 14:25:17 2008.90] [GM] blueEnter '1' to see the first number again or '2' to see the second number
[Jul 4 14:25:17 2008.90] NPC image: (0)
[Jul 4 14:25:17 2008.91] Monster Exists: Unknown #2394727424 (1)
[Jul 4 14:25:17 2008.91] Unknown #110017700: Type 'talk num <number #>' to input a number.
[Jul 4 14:25:17 2008.91] [reactOnNPC] onNPCAction type is: number.
[Jul 4 14:25:17 2008.91] [reactOnNPC] One or more lines doesn't match for "reactOnNPC_0" (0).
[Jul 4 14:25:18 2008.39] Move - (re)trying
[Jul 4 14:25:18 2008.52] Move - timeout
[Jul 4 14:25:18 2008.52] Route - not moving, decreasing step size to 12
[Jul 4 14:25:18 2008.54] Move - (re)trying
[Jul 4 14:25:19 2008.52] Move - (re)trying
[Jul 4 14:25:19 2008.56] Move - (re)trying
[Jul 4 14:25:20 2008.35] Move - timeout


####################

and also i dont see message that indicates this lines....

[reactOnNPC] NPC message saved (0)
[reactOnNPC] NPC message saved (1) and so on.....i dont know why my bot dont have that....

Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#10 Post by Mucilon »

Ok
This happens becouse the reactOnNPC plugin, the messages you receive are from the GM chat and the plugin is testing just the NPC messages, hakore did a fix to the reactOnNPC plugin, and now it can test the Guild messages... you will need to wait a release like this to your case.
In the middle time you can try the last hakore`s fix at this address:
http://forums.openkore.com/viewtopic.php?p=7316#p7316

Post Reply