[Release] New KalOnline Bot

04/11/2009 07:52 Gogeta70#1
Donate, if you will: [Only registered and activated users can see links. Click Here To Register...]

Hey everyone. I haven't really posted here much, but i've been here for a while. Anyway, i've noticed a severe lack of bots for KalOnline, so i made one for both myself and you all.

My bot is fairly similar to Deagled's bot, Kalbot. The main differences are that it has no gui, it's command line. When you run it, it runs a short config and then gets to work, and doesn't stop until you close it.

Anyway, here are the instructions:


1. Before starting the bot, go to your KalOnline directory in the folder /data/monster/clothes and rename the folder Tex to Tex2.

2. Start KalOnline & Log in. Select your character.

3. Start the bot.

4. Once your character is loaded and ready, zoom the in-game camera all the way out (mouse wheel downward)

5. Click on the 'Set Demon Color' button. A message box will pop up. Simply put your mouse over a demon (which should be pink) and press enter to close the message box. That sets the color the bot looks for on the screen.

5. Click on the 'Set Demon Health' button. Another message box will pop up. Click on a demon without attacking it (click the ground so you won't attack). Once that's done, put your mouse over the very left side of the DEMON health bar, but keep it in the red area. Once that's done, press enter. This sets the coordinates of the demon health bar and the color of a live demon. Once the are of the demon health bar that you put your mouse over is not red, the bot searches for another mob.

6. Click on the 'Set Player Health' button. Like the step above, a message box will pop up. You're doing the same thing here, except with your health bar. However, this time put your mouse on the part of your health bar that you want to pot at. For example, if you want the bot to auto-pot when your health reaches half way, put the mouse over the half-way point of your health bar and press enter. (this has to be done regardless of if you have set the autopot option or not)

7. Select the options you want. (Beheading, AutoPotting, Picking up drops, I'm a mage). These can be changed during botting, as the bot reads the choice you've made before it does each action.

7.5 If you have selected Beheading or I'm a mage, you need to do the following. Put your beheading skill in Slot 1 and (if your character is a mage) your Spell in slot 2.

8. Click the 'Start Bot' button.

9. If you wish to stop the bot, but the 'Stop Bot' button does not work, there is an icon in the system tray (near the clock) that is the same as the bot's icon. Right click it and select exit to close the bot.

Notes:

When botting, the bot may click a demon that's behind a tree or other object. When this happens, usually the game will give a message along the lines of "Cannot attack, opponent out of range." Don't worry about this, the bot will automatically begin searching for another opponent after 30 seconds.

The features of the bot are as follows:

-Hunt and kill mobs
-Behead (must be active skill)
-Auto pot
-Pick up items

Bugs/Glitches

-The bot may try to click on an enemy and miss. Don't worry, it'll fix itself.
-The bot doesn't always behead. Mainly on ranged enemies. I think this only applies for archers, though (i'm an archer in game)


One last thing... During botting, message boxes will pop up continuously. Ignore them, they close themselves. They're just there to let you (me) know if there is a problem with the code, so that i can fix it.

Ok, so that's about it. If you have any questions, please write them in english. I'm still in my first year of german class

Changelog:

v 0.3

-More accurate clicking system
-Beheads more accurately and more often
-Added an Anti-Stuck function (you won't get stuck behind trees/other things)
-Detects 'misclicks' (it'll click again if it missed the demon the first time)
-Widened the color detection range.
-Attempts to detect demons close to you before clicking ones in the distance

Notes:

-For the bot to work the best, your camera should be at a 30-45 degree angle from the ground. This way, it will detect demons in the distance as well.
-The bot also works best if you zoom all the way out so your character is really small. It can see more demons this way.
-I suggest changing your sight range to High

v 0.4

-Totally recoded the bot. Code is more organized and works faster. Less processor intensive.
-Added GUI interface. User can now start/stop bot at their own discretion.
-Potting, beheading, and drop pickup's are now optional.
-Demon searching system is more accurate (due to a faster, tighter loop)
-Faster, better misclick detection
-Removed splashscreen

Notes:

The bot still works the same way, generally. Click the 'set' buttons before starting the bot, or it will crash. When you click the set buttons, put your mouse over the corresponding items (player health bar, demon health bar, or demon), and press enter. This will set the variables and coordinates of certain things needed to run the bot.

The bot still runs best when the player is zoomed all the way out and the camera is at a 30-45 degree angle.

Lastly, in addition to the latest version of the bot, i included the version 0.3 bot in the zip file in case you prefer no GUI. However, the gui is more efficient than the other one. That's it guys, enjoy!


v 0.5

-Changed the clicking functions. It does not take control of mouse anymore.
-Removed the constant message box popups
-*Should* not make the camera point up toward the sky anymore
-Added a system to detect if you're being attacked & attack back (Beta!!)

Notes:

I added a lot of new stuff in this one, so if you have any problems, let me hear them!
There's a icon in the system tray, if you can't stop the bot, right click and exit from the tray icon ^_^. Other than that, enjoy!

v 0.6

-Widened the beheading clicking area
-Recoded the demon searching function. Now searches for a closer demon.
-Doesn't always get the closest demon, but will get one that is closer in general.

Notes:

Nothing really... enjoy the bot.

v 0.7

-Fixed a coordinate calculation error in the behead function
-Fixed a coordinate calculation error in the 'being attacked' function
-Changed the scan area for the behead function. Reduced it to a smaller area for better efficiency.
-Removed a couple of stray clicks

Notes:

I ran this bot for an hour+ straight, just sitting there and watching it (while smoking a lot of cigarettes O_o). I know this bot works, and it works well. So if you have a problem with the bot, describe your problem in detail so i can help you. Don't say 'the bot doesn't work.' >_< That is all. Enjoy the bot.

v 0.8

-Added a 'I'm a mage' checkbox. If your character is a mage, the bot will use your skill instead of attacking regularly. Put the skill in Slot 2.
-Added a hotkey to stop/start the bot. Press F2 to start or stop the bot immediately.
-Recoded the demon search function. The latest update changed something and the bot was reading the kalonline screen as grayscale and not colorful. Was quite a lot of trouble O_o

Notes: A few things on starting the bot have changed. Read the instructions for updates.
04/11/2009 14:28 Citr0n#2
Dont really trust you :)
But finally something in english :D - Ima go scan it right now.

Scan taken on 11 Apr 2009 12:28:11 (GMT)
A-Squared Scan taken on 11 Apr 2009 12:28:11 (GMT)


AntiVir : Found nothing
ArcaVir : Found nothing
Avast : Found nothing
AVG Antivirus : Found nothing
BitDefender : Found nothing
ClamAV : Found PUA.Script.Packed-3
CPsecure : Found nothing
Dr.Web : Found nothing
F-Prot Antivirus : Found nothing
F-Secure Anti-Virus : Found nothing
Ikarus : Found nothing
Kaspersky Anti-Virus : Found nothing
NOD32 : Found nothing
Norman Virus Control : Found nothing
Panda Antivirus : Found nothing
Quick Heal : Found nothing
Sophos Antivirus : Found nothing
VirusBuster : Found nothing
VBA32 : Found Trojan.Autoit.F (probable variant)

Think im gonna test this.

Okay this bot is pretty good.
But sometimes it fucks up ^^
04/11/2009 16:43 slayerdeath555#3
why it need to have viruses
04/11/2009 18:11 Odyss3y#4
Meh, it tend to miss click on the targets a lot and I've ran it for about 30 minutes, never fixed itself or tried clicking on anything else. Also, it looks upto the sky a lot of the time and does nothing.

30 minutes of this program, two mobs killed. =|
04/11/2009 21:02 Citr0n#5
Lawl :D

You dont know xD
04/11/2009 22:47 slayerdeath555#6
this have viruses :D why u uppload harmed stuff?
04/11/2009 23:18 Gogeta70#7
It doesn't have viruses guys. I made it in AutoIt.

I have made a few adjustments to the bot, it clicks more accurately now.

Download update in main post.
04/12/2009 04:49 Gogeta70#8
Update: KalOnline Bot v.03

Changes:

-More accurate clicking system
-Beheads more accurately and more often
-Added an Anti-Stuck function (you won't get stuck behind trees/other things)
-Detects 'misclicks' (it'll click again if it missed the demon the first time)
-Widened the color detection range.
-Attempts to detect demons close to you before clicking ones in the distance


Notes:

For the bot to work the best, your camera should be at a 30-45 degree angle from the ground. This way, it will detect demons in the distance as well.

Enjoy!

PS: Download v 0.3 in main post
04/12/2009 08:39 Gogeta70#9
Does anybody want to comment on the bot? Do you like it, dislike it...? I need some input if i am to keep updating this thing...
04/12/2009 11:28 rekat#10
you should definately improve the attack a monster thing...it very often doesnīt click on the monster...nearly every time a few pixels away of it...same with the beheading thing...that should be improved ;)
04/12/2009 12:35 Citr0n#11
The detect monster that near your doesnt seems to work.
+ when it trys to find it it goes to the sky.

ANd if other onsters are attack you. It ignores it.
04/12/2009 14:08 Gogeta70#12
I don't know why it's changing your view to the sky... I've ran the bot for hours on mine and it hasn't done that even once...

Anyway, the 'detect monsters near you' function isn't really complex. It simply scans the bottom half of the game screen and attacks anything it finds. Then it scans the whole game screen if it didn't find anything.

If you want, post a video of the problems you're having with the bot so i can see what's going on and try to fix it ;)
04/12/2009 17:58 Dymian#13
this massages are stupid, delete it... usually bot dont click on monster but near to him sometimes because of that msgs. delete it please
04/13/2009 07:43 Gogeta70#14
Hey guys, i updated the main post. I just released version 0.4! Oh, and Dymian, i can't remove the message boxes. For some reason, if i remove them the bot won't click O_o

I'm still addressing this bug and if possible, will have it fixed in the near future.

That aside, comments on version 0.4?
04/13/2009 11:11 rekat#15
beheading did not work for me...and when it looks up to the sky it never comes back to the ground again...you should maybe use the arrow keys instead of the mouse to change the view...and the thing that it didnīt click on the mobs some times could be that the mobs moved a bit...all in all better than before...but the stop bot thing didnīt worked very well...just worked when i shoutdown the game...