Movement
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| MoveTo | Boolean | Move to point / object | |
X, Y, Z - point coordinates |
You need to register to view the code example. |
| DMoveTo | Boolean | Move to point. Without waiting for movement ending and server answer. | |
Z, Y, Z - point coordinates |
You need to register to view the code example.
|
| MoveToTarget | Boolean | Move to target | |
Delta - forward/backward offset (default - 100 in front of target) |
You need to register to view the code example. |
| Unstuck | Boolean | Use return to village (/unstuck) | |
There are no arguments | You need to register to view the code example. |
| GoHome | Boolean | Resurrect (to village / to clan hall / ...) | |
ResType - resurrect method. Resurrect methods. |
You need to register to view the code example.
|
| Teleport | Boolean | Teleport to location. For new game chronicles. | |
ID - location identificator. Locations identificators. |
You need to register to view the code example. |
| FindPath | Boolean | Generate path between two points taking into account bot map zones | |
StartX, StartY - start point coordinates |
You need to register to view the code example. |
Actions
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| UseAction | Boolean | Use action | |
ID - action identificator. Actions identificators. Shift - use via Shift (default - false) |
You need to register to view the code example. |
| Attack | Boolean | Attack target | |
PauseTime - pause after attack (in ms, 1sec = 1000ms) (default - 2sec) |
You need to register to view the code example.
|
| Pickup | Boolean | Pickup drop/item laying on the ground | |
Item - drop/item laying on the ground ByPet - pickup by pet (default - not) |
You need to register to view the code example. |
| Pickup | Integer | Activate automatical pickup of drop/items laying on the ground | |
Range - maximal pickup distance (default - 250) ZLimit - limitation on difference in Z coordinate (default - 150) OnlyOwn - pickup only user/group drop/items (default - not) ByPet - pickup by pet (default - not) |
You need to register to view the code example. |
| Stand | Boolean | Stand up | |
There are no arguments | You need to register to view the code example. |
| Sit | Boolean | Sit | |
There are no arguments | You need to register to view the code example. |
Targeting / target search
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| SetTarget | Boolean | Target object | |
Name - object name |
You need to register to view the code example.
|
| Action | Boolean | Target object. Without waiting for server answer. | |
OID - unique object identificator Force - target with force (with Ctrl) |
You need to register to view the code example. |
| CancelTarget | Boolean | Cancel target | |
There are no arguments | You need to register to view the code example. |
| Assist | Boolean | Target another object target | |
Name - object name |
You need to register to view the code example. |
| FindEnemy | Boolean | Search attacking enemy of object | |
var Enemy - variable where enemy will be written |
You need to register to view the code example. |
| AutoTarget | Boolean | Acitvate automatical targeting | |
Range - maximal distance to point (default - 2000) |
You need to register to view the code example. |
| Ignore | - | Add object to bot ignoring list. AutoTarget and Pickup also skip that objects. | |
Obj - object |
You need to register to view the code example. |
| ClearIgnore | - | Clear list of ignoring by bot objects | |
There are no arguments | You need to register to view the code example. |
| IsBusy | Boolean | Is NPC already attacked by another player | |
Npc - NPC |
You need to register to view the code example. |
Skills
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| UseSkill | Boolean | Use skill | |
Name - skill name Shift - use via Shift (default - not) |
You need to register to view the code example.
|
| DUseSkill | Boolean | Use skill. Without waiting for cast ending and server answer | |
ID - skill identificator Shift - use via Shift |
You need to register to view the code example. |
| UseSkillGround | Boolean | Use skill on ground | |
ID - skill identificator X, Y, Z - using point coordinates Shift - use via Shift (default - not) |
You need to register to view the code example. |
| StopCasting | Boolean | Interrupt skill cast | |
There are no arguments | You need to register to view the code example. |
| Dispel | Boolean | Dispel buff | |
Name - buff name ID - buff identificator |
You need to register to view the code example. |
| LearnSkill | Boolean | Learns skill | |
ID - skill identificator |
You need to register to view the code example.
|
| UpdateSkillList | Boolean | Update skill list | |
There are no arguments | You need to register to view the code example. |
Items
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| UseItem | Boolean | Use item | |
Name - item name Force - use with force (via Ctrl) (default - not) |
You need to register to view the code example.
|
| UseItemOID | Boolean | Use item by unique idenfiticator | |
OID - item unique identificator |
You need to register to view the code example. |
| DestroyItem | Boolean | Delete item | |
Name - item name Item - item |
You need to register to view the code example. |
| DropItem | Boolean | Drop item | |
ID - item identificator |
You need to register to view the code example. |
| MakeItem | Boolean | Craft item | |
Index - index number in crafting list (starting from 0) |
You need to register to view the code example. |
| CrystalItem | Boolean | Cristalise item | |
ID - item identificator Item - item |
You need to register to view the code example.
|
| MoveItem | Boolean | Move item between user and pet | |
Name - item name |
You need to register to view the code example. |
| LoadItems | Boolean | Move items between user and warehouse | |
ToWH - deposit(true) or withdraw(false) |
You need to register to view the code example. |
| AutoSoulShot | Boolean | Enable / disable automatical shots using | |
Name - shots name |
You need to register to view the code example. |
| DAutoSoulShot | Boolean | Enable / disable automatical shots using. Without waiting for server answer. | |
ID - shots identificator |
You need to register to view the code example. |
| Equipped | Integer | Get equpped items count | |
Name - item name |
You need to register to view the code example. |
Mates (pets / summons)
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| DismissPet | Boolean | Dismiss pet | |
There are no arguments | You need to register to view the code example. |
| DismissSum | Boolean | Dismiss summon | |
There are no arguments | You need to register to view the code example. |
Social (group/party, clan, mentor)
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| Say | Boolean | Write message to game chat | |
Text - message text PlayerName - player name (for private chat) |
You need to register to view the code example. |
| InviteParty | Boolean | Invite player to group/party | |
Name - player name |
You need to register to view the code example. |
| DismissParty | Boolean | Dismiss player from group/party | |
Name - player name |
You need to register to view the code example. |
| JoinParty | Boolean | Answer to group/party invite | |
Accept - accept(true) invite or reject(false) |
You need to register to view the code example. |
| LeaveParty | Boolean | Leave from party | |
There are no arguments | You need to register to view the code example. |
| SetPartyLeader | Boolean | Transfer group/party leader status | |
Name - player name |
You need to register to view the code example. |
| GetMentor | String | Mentor name | |
There are no arguments | You need to register to view the code example. |
| KickMentor | Boolean | Leave mentor | |
There are no arguments | You need to register to view the code example. |
| CloseRoom | Boolean | Close group/party room | |
There are no arguments | You need to register to view the code example. |
| CreateRoom | Boolean | Create group/party room | |
Caption - room caption |
You need to register to view the code example. |
| AutoAcceptClan | - | Activate automatical entry to clan | |
PlayersList - list of players names to accept clan invite - 'Vasya;Petya;Kolya;Egor'. When entered '*', user will accept clan invite from any player. |
You need to register to view the code example. |
| AutoAcceptCC | - | Activate automatical entry to command channel | |
PlayersList - list of players names to accept invite - 'Vasya;Petya;Kolya;Egor'. When entered '*', user will accept invite from any player. |
You need to register to view the code example. |
| AutoAcceptMentors | - | Activate automatical accept mentors | |
PlayersList - list of players names to accept invite - 'Vasya;Petya;Kolya;Egor'. When entered '*', user will accept invite from any player. |
You need to register to view the code example. |
Quests
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| QuestStatus | Boolean | Quest stage | |
ID - quest identificator |
You need to register to view the code example.
|
| CancelQuest | Boolean | Cancel quest | |
ID - quest identificator |
You need to register to view the code example. |
| OpenQuestion | Boolean | Opens quests "question mark" | |
There are no arguments | You need to register to view the code example. |
| GetDailyItems | Boolean | Get daily items | |
There are no arguments | You need to register to view the code example. |
| GetDailyItem | Boolean | Get one of the daily rewards | |
ID - reward/item identificator |
You need to register to view the code example. |
| UpdateDailyList | Boolean | Update daily rewards list | |
There are no arguments | You need to register to view the code example. |
Dialogs
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| DlgOpen | Boolean | Open dialog with target(NPC) | |
Timeout - time of waiting for dialog opening (in ms, 1sec = 1000ms) (default - 5sec) |
You need to register to view the code example.
|
| DlgSel | Boolean | Select string of common dialog | |
Caption - dialog string text |
You need to register to view the code example.
|
| BypassToServer | Boolean | Send command/bypass to server | |
Text - command/bypass text |
You need to register to view the code example. |
| DlgText | String | Common dialog text | |
There are no arguments |
You need to register to view the code example.
|
| DlgTime | Cardinal | Last common dialog appearing time moment(GetTickCount) (in ms, 1sec = 1000ms) | |
There are no arguments | You need to register to view the code example. |
| CBText | String | Community Board / Alt+B dialog text | |
There are no arguments | You need to register to view the code example. |
| CBTime | Cardinal | Last Community Board / Alt+B dialog appearing time moment(GetTickCount) (in ms, 1sec = 1000ms) | |
There are no arguments | You need to register to view the code example. |
| HlpText | String | Help dialog text | |
There are no arguments | You need to register to view the code example. |
| HlpTime | Cardinal | Last help dialog appearing time moment(GetTickCount) (in ms, 1sec = 1000ms) | |
There are no arguments | You need to register to view the code example. |
| ConfirmDlg | TConfirmDlg | Dialog with accept ability | |
There are no arguments | You need to register to view the code example. |
| ConfirmDialog | Boolean | Accept/reject dialog | |
Accept - accept(true) or reject(false) |
You need to register to view the code example. |
Trade
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| OpenPrivateStore | Boolean | Open private store (selling / buying / crafting) | |
List - list of items identificators, its amount and prices - [Item1, ItemCount1, ItemPrice1, ItemID2, ItemCount2, ItemPrice2, ...] |
You need to register to view the code example. |
| NpcTrade | Boolean | Buy / sell items to NPC | |
Sell - selling(true) / buying(false) List - list of items identificators and its amount - [Item1, ItemCount1, ItemID2, ItemCount2, ...] |
You need to register to view the code example.
|
| NpcExchange | Boolean | Exchange items with NPC / dimensional merchant | |
IDorIndex - item identificator / index number |
You need to register to view the code example. |
| CastleTax | Integer | Town tax percentage | |
TownID - town identificator (1 - Gludio, 2 - Dion, 3 - Giran, 4 - Oren, 5 - Aden, ...) |
You need to register to view the code example. |
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| SendMail | Boolean | Send mail | |
Receiver - mail receiver |
You need to register to view the code example. |
| GetMailItems | Boolean | Get mails | |
MaxLoad - maximal user backpack loading (default - 65) |
You need to register to view the code example. |
| ClearMail | Boolean | Clear mail | |
There are no arguments | You need to register to view the code example. |
Zone, time
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| GetZoneType | TZoneType | Current game zone type | |
There are no arguments |
You need to register to view the code example.
|
| GetZoneName | String | Get location name by coordinates | |
X, Y, Z - coordinates |
You need to register to view the code example. |
| GetZoneID | Cardinal | Get location identificator by coordinates | |
X, Y, Z - coordinates |
You need to register to view the code example. |
| InZone | Boolean | Is object/point in zone configured on bot map | |
Obj - object |
You need to register to view the code example. |
| GameTime | Cardinal | Current game time (in min) | |
There are no arguments | You need to register to view the code example. |
| IsDay | Boolean | Is day time in game | |
There are no arguments | You need to register to view the code example. |
Account (status / login / logout)
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| Status | TL2Status | Account status | |
There are no arguments |
You need to register to view the code example.
|
| LoginStatus | Integer | Account login stage (-1 - off, 0 - client loading / login and password entering, 1 - EULA / server selecting, 2 - charecter selecting / in game) | |
There are no arguments | You need to register to view the code example. |
| AuthLogin | Boolean | Enter account login and passowrd | |
Login - account login Password - account password |
You need to register to view the code example. |
| GameStart | Boolean | Select character on character selection screen | |
CharIndex - character index number (default - select last active character) |
You need to register to view the code example.
|
| Restart | Boolean | Logout to character selecting screen | |
There are no arguments |
You need to register to view the code example.
|
| DRestart | boolean | Logout to character selecting screen. Wihout waiting for server answer. | |
There are no arguments | You need to register to view the code example. |
| CharSelectionInfo | ^TCharSelectionInfo | Информация о персонажах на панели выбора персонажей | |
There are no arguments | You need to register to view the code example. |
Bot settings
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| FaceControl | Boolean | Activate/deactivate bot settings module | |
ID - module identificator (0 - all, 1 - attack, 2 - heal, 3 - buff, 4 - events) |
You need to register to view the code example. |
| GetFaceState | Boolean | Bot settings module state | |
ID - module identificator (0 - all, 1 - attack, 2 - heal, 3 - buff, 4 - events) |
You need to register to view the code example. |
| GetFaceSet | Pointer | Get pointer to structure/record of bot settings | |
ID - identificator |
You need to register to view the code example. |
| UpdateCfg | Boolean | Update (reread) bot settings. Required after usage GetFaceSet. | |
Wait - wait for settings update and account loading |
You need to register to view the code example. |
| LoadConfig | Boolean | Load bot settings from file | |
FilePath - full file path / file name from Settings folder |
You need to register to view the code example. |
| LoadZone | Boolean | Load bot map zones settings from file | |
FilePath - full file path / file name from Settings folder |
You need to register to view the code example. |
| ClearZone | - | Clear zones on bot map | |
There are no arguments | You need to register to view the code example. |
| SetPerform | Boolean | Set performance level for game client in the background ("background game") | |
Level - level (1-5, 1 - maximal performance, 5 - minimal performance) |
You need to register to view the code example. |
| SetMapKeepDist | - | Change distance that bot will retreat from hunting / map zones edges | |
Dist - distance from edges |
You need to register to view the code example. |
Game client
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| GamePrint | Boolean | Write message to game chat. Visible only for user. | |
Text - message text ChatType - chat type (default - regular) |
You need to register to view the code example. |
| GameClose | Boolean | Close game client | |
There are no arguments | You need to register to view the code example. |
| BlinkWindow | Boolean | Activate game client / Adrenaline window blinking on task panel | |
Game - game client(true) or Adrenaline(false) window |
You need to register to view the code example. |
| SetGameWindow | Boolean | Show / hide game client window | |
Show - show(true) or hide(false) |
You need to register to view the code example.
|
| UseKey | Boolean | Press keyboard button in game client window | |
KeyName - button name |
You need to register to view the code example. |
| EnterText | Boolean | Type test in game client window | |
Text - text |
You need to register to view the code example. |
| PostMessage | Integer | Send message to game client window. About PostMessage. | |
Msg - message identificator |
You need to register to view the code example.
|
| SendMessage | Integer | Send message to game client window. About SendMessage. | |
Msg - message identificator |
You need to register to view the code example.
|
| GamePath | String | Path to executive game client file. For example, to L2.exe | |
There are no arguments | You need to register to view the code example. |
| GameWindow | Cardinal | Game client window identificator/handle | |
There are no arguments | You need to register to view the code example. |
| GameHash | Cardinal | Game client hash | |
There are no arguments | You need to register to view the code example. |
| GameProtocol | Cardinal | Game client protocol version | |
There are no arguments | You need to register to view the code example. |
| GameVersion | Cardinal | Game client version | |
There are no arguments |
You need to register to view the code example.
|
Game server
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| GetServerIP | String | Game server IP-address | |
There are no arguments | You need to register to view the code example. |
| GetServerName | String | Game server name. Only for official servers. | |
There are no arguments | You need to register to view the code example. |
| GetServerID | Cardinal | Game server ID. Only for official servers. | |
There are no arguments | You need to register to view the code example. |
| IsClassicServer | Boolean | Is classic(L2 Classic) server | |
There are no arguments | You need to register to view the code example. |
| ServerTime | Cardinal | Current server time (in min) | |
There are no arguments | You need to register to view the code example. |
Adrenaline Bot window
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| Msg | - | Write message/log in Adrenaline interface | |
Title - message title |
You need to register to view the code example. |
| BlinkWindow | Boolean | Activate game client / Adrenaline window blinking on task panel | |
Game - game client(true) or Adrenaline(false) window |
You need to register to view the code example. |
| HKPauseScript | - | Activate / deactivate script controlling by hotkey(Ins) | |
Enable - activate(true) или deactivate(false) |
You need to register to view the code example. |
| BotWindow | Cardinal | Adrenaline window identificator/handle | |
There are no arguments | You need to register to view the code example. |
Network packets
| Name | Result | Description | Code | Params | Examples |
|---|
Miscellaneous
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| WaitAction | TL2Action | Wait for event | |
Action - waiting event type. Event types. ActionList - list of waiting event types - [EventType1, EventType2, ..]. Event types. |
You need to register to view the code example.
|
For interaction with other Adrenaline accounts
| Name | Result | Description | Code | Params | Examples |
|---|---|---|---|---|---|
| GetUser | TL2User | User character of account of this controller | |
There are no arguments |
You need to register to view the code example.
|
| GetPetList | TPetList | List of user pets and summons of account of this controller | |
There are no arguments |
You need to register to view the code example.
|
| GetInventory | TInventory | Inventory of user character and pet of account of this controller | |
There are no arguments |
You need to register to view the code example.
|
| GetSkillList | TSkillList | Charater skills list of account of this controller | |
There are no arguments |
You need to register to view the code example.
|
| GetParty | TParty | Group/party of account of this controller | |
There are no arguments | You need to register to view the code example. |
| GetCharList | TCharList | List of players around character of account of this controller | |
There are no arguments |
You need to register to view the code example.
|
| GetNpcList | TNpcList | List of NPCs around character of account of this controller | |
There are no arguments | You need to register to view the code example. |
| GetDropList | TDropList | List of drop/items laying on the ground around character of account of this controller | |
There are no arguments | You need to register to view the code example. |
| GetWarehouse | TL2Warehouse | Warehouse (last opened) of account of this controller | |
There are no arguments | You need to register to view the code example. |
| GetAuction | TL2Auction | Auction (last opened) of account of this controller | |
There are no arguments | You need to register to view the code example. |
| GetChatMessage | TChatMessage | Last chat message of account of this controller | |
There are no arguments | You need to register to view the code example. |
| GetScript | Pointer на TPaxEngine | Pointer to script of account of this controller. Can be transformed to TPaxEngine. | |
There are no arguments |
You need to register to view the code example.
|
| Entry | Boolean | Call event OnEntry in script of this controller | |
var Param - transmittable parameter |
You need to register to view the code example.
|
Objects
| Имя | Класс | Description |
|---|---|---|
| Engine | TL2Control | Character/bot controller |
Methods
| Имя | Результат | Description |
|---|---|---|
| Methods.GetControl | TL2Control | Get another account controller by character name |
| Methods.GetControlByIndex | TL2Control | Get another account controller by index |
| TBot.Control | TL2Control | Account controller |
- Calling execution of procedures in another script using Entry \ OnEntry
- Check disconnect in thread
- Detailed info about SendMessage and PostMessage methods
- Smart learning of new skills
- Game chat scanner, looking for needed phrases
- Load script on another account
- Maintain Kookaburra in fight mode (for mana rechargers)
- Work with dynamic bypasses. Parsing. Regular expressions
- Repeat dialog selection by bots after main character
- GPS - convenient movement in Adrenaline Bot. Detailed manual.
- Death check (universal)
- Check quest stage by ID
- More about Engine.BypassToServer
- Relog to needed character
- Example of the purchase and crystallization of items.
- Alt+B rebuff on farm - run aside to end combat and kill agro mobs
- Movement along a linear route starting from the closest to us point
- Stop farming on detecting strangers and retreat to a secluded place
- Detect mobs champions
- Simulation of random clicks near character
- Universal script for auto charging icons for any tanks