
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.






