ellysh / l2bot Goto Github PK
View Code? Open in Web Editor NEWSimple and easy configurable Lineage 2 bot on AutoIt scripting language
Home Page: http://en-l2bot.blogspot.com
License: GNU General Public License v3.0
Simple and easy configurable Lineage 2 bot on AutoIt scripting language
Home Page: http://en-l2bot.blogspot.com
License: GNU General Public License v3.0
L2Bot 4.0 version ================= 1. INTRODUCTION --------------- L2Bot is toolkit of AutoIt scripts to implement Lineage 2 bot. 2. INSTALLATION --------------- You need to download AutoIt interpreter from official website for launching L2Bot : http://www.autoitscript.com/site/autoit/downloads The x64 interpreter version must be selected in installation dialog for users with x64 Windows version. Then download archive with L2Bot scripts and extract it: https://github.com/ellysh/l2bot/archive/master.zip 3. CONFIGURATION ---------------- NB: You must set the `chat with Enter` checkbox in your Lineage client application for the correct bot's working. Configuration of the L2Bot consist of the three stages: 1. Configuration of the bot according to your Lineage client's interface. 2. Configuration of the mob's names to attack them by bot. 3. Configuration of the hotbar keys according your character's class. All these stages will be described below. 3.1 INTERFACE CONFIGURATION --------------------------- You can use the `configurator_en.au3` script from the `run` directory to configure farm bot according your Lineage client's interface. All interface's parameters will be saved in `interface.au3` file from the `conf` directory. There are steps to perform the interface configuration: 1. Run your Lineage client in the window mode. You can press Alt+Enter for switching to the window mode. 2. Resize the Lineage client window to full screen with mouse. 3. Get into the game with your character. 4. Run `configurator_en.au3` script from the `run` directory. 5. Switch to the Lineage client window. 6. Press Alt+F2 to start configuration script. 7. Select the point in the Lineage window according the information in popup tip. You can select point at the current cursor's position by pressing Alt+F3. 8. The popup tips will be disappeared after you has selected the last point. Configuration is complete. This is illustration of all configuration points in the `interface_conf.jpg` file from the `images` directory. You can use the `configurator_fishing_en.au3` script from the `run` directory to configure fishing bot. This script works like the described above `configurator_en.au3` one. This is illustration of all configuration points for fishing bot in the `fishing_conf.jpg` file from the `images` directory. 3.2 MOB'S NAMES CONFIGURATION ----------------------------- There are steps to perform the mob's names configuration: 1. Open the `targets.au3` fle from the `conf` directory with any text editor. 2. Write mob's names into `$kTargetNames` list. 3. Change value of the `$kTargetCount` variable according count of elements in the `$kTargetNames` list. NB: You can specify one or two letters of the mob's names for the Gracia Final and above Lineage chronicles. This is example: global const $kTargetNames = "G,Wo" You must specify full mob's names for Lineage chronicles below the Gracia Final one: global const $kTargetNames = "Gremlin,Wolf" 3.3 HOTBAR KEYS CONFIGURATION ----------------------------- The L2Bot scripts implement the farm bots for several character's classes. All these scripts are placed to the `run` directory. Script's name is the same as relevant class's name. The hotbar configuration is depended on the running script. You can use hotbar illustrations from the `images` directory. Name of the illustration file contains the character's class name and the `hotbar` word. For example, `bladedancer_hotbar.jpg` file is the illustration for `bladedancer.au3` script. The `fishing_hotbar.jpg` file from the `images` directory is a hotbar illustration for the fishing bot. 4. LAUNCHING ------------ NB: Bots of L2Bot project is not executable `exe` files! All bots are implemented as AutoIt scripts with `au3` extention and them are placed to the `run` directory. You can run these scripts like the `exe` files. There are steps to run L2Bot: 1. Run your Lineage client in the window mode. You can press Alt+Enter for switching to the window mode. 2. Resize the Lineage client window to full screen with mouse. 3. Get into the game with your character. 4. Run one of the farm-bot script from the `run` directory. 5. Switch to the Lineage client window. 6. Press Alt+F2 to start bot. 7. You can stop bot by Alt+F1 pressing. NB: The Lineage client window must have the same size and position as you have configured (see the 3.1 section). 5. FISHING BOT -------------- Fishing bot is implemented in the runnable `fishing.au3` script file from `run` directory. Configuration of the fishing bot consist of the two stages: 1. Configuration of the bot according to your Lineage client's interface (see the 3.1 section). 2. Configuration of the hotbar keys (see the 3.3 section). NB: You must set the attack skill to F1 key for the nuker classes instead the `Attack` action You must perform these actions before run the fishing bot: 1. Place your character near the water where you can use `Fishing` skill. Character and camera must be faced to the water i.e. the character will move to the water if you will press the `Up` arrow keyboard button. 2. Wear the fishrod and bait on your character. You can run and stop fishing bot with the same buttons as the others bots. 6. CHAT BOT ----------- Chat bot is implemented in the runnable `chat.au3` script file from the `run` directory. You can open the `chat.au3` file from the `run` directory and specify variables described below to configure bot: kMessageTextRus - this is message text to print in Russian language. kMessageTextEn - this is message text to print in English language. kDelayMinutes - this is delay betweeen the message outputs in minutes. You can run and stop chat bot with the same buttons as the others bots. 7. CUSTOM SCRIPT ---------------- The custom script mechanism allow you to extend the functionality of existing farm bots. Also you can create custom script that will be launched separately from the other L2Bot scripts. There are steps to perform the custom script generation: 1. Run `script_generator.au3` file from the `run` directory. 2. Press Alt+F2 to start generator script. 3. Perform the keys pressing and mouse clicks that will be saved. 4. Press Alt+F1 to complete the generator script NB: The generator script is able to save letters, numbers, F1-F12 buttons and left button mouse clicks. The buttons Alt, Ctrl, Shift and Win will not be saved. The generated custom script has been saved in the `script.au3` file in the `run` directory. There are steps to launch custom script: 1. Run `script_run.au3` file from the `run` directory. 2. Press Alt+F2 to start custom script. 3. You can interrupt the custom script's work by Alt+F1 pressing NB: You can launch custom script in the loop. Change the `kIsLoop` variable to `true` in the `script_run.au3` file: global const $kIsLoop = true All farm bots will launch custom script by timeout. You can change timeout value with the `kTimeouts` variable in the running farm bot script. 8. REPEATER SCRIPT ------------------ Two kind of repeater script are available: 1) Repeater script for farm bot that will control several Lineage windows. This kind of repeater script have been moved to separate project: https://github.com/ellysh/repeater 2) Repeater script for manually controlling several Lineage windows. There are steps to run repeater script: 1. Launch file `repeater.au3` in `run` directory. 2. Open all Lineage windows that will be controlled by script. 3. Switch to any Lineage client window. 4. Press Alt+F2 to start script. 5. You can stop script by Alt+F1 pressing. 9. ROULETTE BOT --------------- Roullete bot allow you to automate roulette play at the asterios.tm servers x3 and x7. There are steps to perform the bot's configuration: 1. Run `configurator_roulette.au3` script from the `run` directory. 2. Switch to the Lineage client window. 3. Press Alt+F2 to start configuration script. 4. Select the point in the Lineage window according the information in popup tip. You can select point at the current cursor's position by pressing Alt+F3. 5. The popup tips will be disappeared after you has selected the last point. Configuration is complete. You can open the `roulette.au3` file from the `run` directory and specify variables described below for additional bot's configuration: kStartRate - start rate. kMaxRate - maximum allowable rate. There are steps to launch rullete bot: 1. Run `roulette.au3` file from the `run` directory. 2. Switch to the Lineage client window. 3. Press Alt+F2 to start bot. 4. You can interrupt the script's work by Alt+F1 pressing 10. CONTACTS ----------- You can ask any questions about usage L2Bot, report about bugs, send your suggestions and patches in the L2Bot project's groups and the developer's email. Developer: Ilya Shpigor <[email protected]> Project's group in vk: https://vk.com/l2bot Project's group in facebook: https://www.facebook.com/L2Bot
Have You any ideas how to check attacked whether the character?
Перекрестная рекурсия? А если спаун мобов будет настолько частый, что всегда будет nexttarget? Переполнение гарантировано. Attack <> NextAttack
source / attack.au3
Where is realization of Send function in input.au3 file?
Is there any way to save right click and mouse wheel while we create a script using script generator ?
What source file are concerned ? I could look into it if you explain how does the API work.
Right click are important to move characters ...
Thanks for your project.
бот рыбалки:
`>"C:\Program Files\AutoIt3\SciTE..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /Prod /AU3check /in "C:\Users\naik\Desktop\l2bot-master\l2bot-master\run\fishing.au3"
+>12:57:58 Starting AutoIt3Wrapper v.18.708.1148.0 SciTE v.4.1.0.0 Keyboard:00000419 OS:WIN_7/Service Pack 1 CPU:X64 OS:X86 Environment(Language:0419) CodePage:0 utf8.auto.check:4
+> SciTEDir => C:\Program Files\AutoIt3\SciTE UserDir => C:\Users\naik\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\naik\AppData\Local\AutoIt v3\SciTE
Running AU3Check (3.3.14.5) from:C:\Program Files\AutoIt3 input:C:\Users\naik\Desktop\l2bot-master\l2bot-master\run\fishing.au3
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(11,43) : warning: $kDelayRate: possibly used before declaration.
SendClient($kAttackKey, 500 * $kDelayRate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(13,26) : warning: $kIsCancelTargetMove: possibly used before declaration.
if $kIsCancelTargetMove then
~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(30,33) : warning: $kMoveTimeout: possibly used before declaration.
if mod($timeout, $kMoveTimeout)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(100,47) : warning: $kIsRestEnable: possibly used before declaration.
if IsTargetForAttack() or not $kIsRestEnable then
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(11,43) : error: $kDelayRate: undeclared global variable.
SendClient($kAttackKey, 500 * $kDelayRate)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(13,26) : error: $kIsCancelTargetMove: undeclared global variable.
if $kIsCancelTargetMove then
~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(30,33) : error: $kMoveTimeout: undeclared global variable.
if mod($timeout, $kMoveTimeout)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(100,47) : error: $kIsRestEnable: undeclared global variable.
if IsTargetForAttack() or not $kIsRestEnable then
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(26,20) : error: OnAttackTimeout(): undefined function.
OnAttackTimeout()
~~~~~~~~~~~~~~~~^
"C:\Users\naik\Desktop\l2bot-master\l2bot-master\source\move.au3"(36,14) : error: NextTarget(): undefined function.
NextTarget()
~~~~~~~~~~~^
C:\Users\naik\Desktop\l2bot-master\l2bot-master\run\fishing.au3 - 6 error(s), 4 warning(s)
!>12:57:58 AU3Check ended. Press F4 to jump to next error.rc:2
+>12:57:58 AutoIt3Wrapper Finished.
Exit code: 0 Time: 1.029`
I can not find the script farm in the "run" folder
The bot works good for a certain time but looses focus for one moment something like alt+tabbing for some time then returns to the l2 process but then the bot stops!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.