Movement

Name Result Description Code Params Examples
MoveTo Boolean Move to point / object
function MoveTo(X, Y, Z: integer; Timeout: integer = 8000): boolean;
function MoveTo(Obj: TL2Spawn; Delta: integer): boolean;

X, Y, Z - point coordinates
Timeout - waiting time for problems while moving (default - 8sec) 
Obj - object
Delta - forward/backward offset

You need to register to view the code example.
DMoveTo Boolean Move to point. Without waiting for movement ending and server answer.
function DMoveTo(X, Y, Z: integer): boolean;

Z, Y, Z - point coordinates

You need to register to view the code example.
MoveToTarget Boolean Move to target
function MoveToTarget(Delta: integer = -100): Boolean;

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)
function Unstuck: boolean;
There are no arguments You need to register to view the code example.
GoHome Boolean Resurrect (to village / to clan hall / ...)
function GoHome(ResType: TRestartType = rtTown): boolean;

ResType - resurrect method. Resurrect methods.

You need to register to view the code example.
Teleport Boolean Teleport to location. For new game chronicles.
function Teleport(ID: cardinal): boolean;

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
function FindPath(StartX, StartY, EndX, EndY: integer; PathList: TList): boolean;

StartX, StartY - start point coordinates
EndX, EndY - end point coordinates
PathList - list where path will be written

You need to register to view the code example.

Actions

Name Result Description Code Params Examples
UseAction Boolean Use action
function UseAction(ID: cardinal; Force: boolean = false; Shift: boolean = false): boolean;

ID - action identificator. Actions identificators.
Force - use with force (via Ctrl) (default - false)

Shift - use via Shift (default - false)

You need to register to view the code example.
Attack Boolean Attack target
function Attack(PauseTime: сardinal = 2000; Force: boolean = false): boolean;

PauseTime - pause after attack (in ms, 1sec = 1000ms) (default - 2sec)
Force - attack with force (with Ctrl) (default - not)

You need to register to view the code example.
Pickup Boolean Pickup drop/item laying on the ground
function PickUp(Item: TL2Drop; ByPet: boolean = false): boolean;

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
function Pickup(Range: cardinal = 250; ZLimit: cardinal = 150; OnlyOwn: boolean = false; ByPet: boolean = false): integer;

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
function Stand: boolean;
There are no arguments You need to register to view the code example.
Sit Boolean Sit
function Sit: boolean;
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
function SetTarget(Name: string): boolean;
function SetTargetID(ID: cardinal): boolean;
function SetTarget(Obj: TL2Live): boolean;

Name - object name
ID - object identificator
Obj - object

You need to register to view the code example.
Action Boolean Target object. Without waiting for server answer.
function Action(OID: cardinal; Force: boolean): boolean;

OID - unique object identificator

Force - target with force (with Ctrl)

You need to register to view the code example.
CancelTarget Boolean Cancel target
function CancelTarget: boolean;
There are no arguments You need to register to view the code example.
Assist Boolean Target another object target
function Assist(Name: string): boolean;

Name - object name

You need to register to view the code example.
FindEnemy Boolean Search attacking enemy of object
function FindEnemy(var Enemy: TL2Live; Obj: TL2Live; Range: cardinal = 2000; ZLimit: cardinal = 300): boolean;

var Enemy - variable where enemy will be written
Obj - object
Range - maximal search distance (default - 2000)
ZLimit - limitation on difference in Z coordinate (default- 300)

You need to register to view the code example.
AutoTarget Boolean Acitvate automatical targeting
function AutoTarget(Range: cardinal = 2000; ZLimit: cardinal = 300; NotBusy: boolean = true): boolean;

Range - maximal distance to point (default - 2000)
ZLimit - limitation on difference in Z coordinate (default - 300)
NotBusy - search only free and in zone targets (default - yes)

You need to register to view the code example.
Ignore - Add object to bot ignoring list. AutoTarget and Pickup also skip that objects.
procedure Ignore(Obj: TL2Spawn);

Obj - object

You need to register to view the code example.
ClearIgnore - Clear list of ignoring by bot objects
procedure ClearIgnore;
There are no arguments You need to register to view the code example.
IsBusy Boolean Is NPC already attacked by another player
function IsBusy(Npc: TL2Npc): boolean;

Npc - NPC

You need to register to view the code example.

Skills

Name Result Description Code Params Examples
UseSkill Boolean Use skill
function UseSkill(Name: string; Force: boolean = false; Shift: boolean = false): boolean;
function UseSkill(ID: cardinal; Force: boolean = false; Shift: boolean = false): boolean;

Name - skill name
ID - skill identificator
Force - use with force (via Сtrl) (default - not)

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
function DUseSkill(ID: cardinal; Force, Shift: boolean): boolean;

ID - skill identificator
Force - use with force (via Сtrl)

Shift - use via Shift

You need to register to view the code example.
UseSkillGround Boolean Use skill on ground
function UseSkillGround(ID: cardinal; X, Y, Z: integer; Force: boolean = false; Shift: boolean = false): boolean;

ID - skill identificator

X, Y, Z - using point coordinates
Force - use with force (via Сtrl) (default - not)

Shift - use via Shift (default - not)

You need to register to view the code example.
StopCasting Boolean Interrupt skill cast
function StopCasting: boolean;
There are no arguments You need to register to view the code example.
Dispel Boolean Dispel buff
function Dispel(Name: string): boolean;
function Dispel(ID: cardinal): boolean;

Name - buff name

ID - buff identificator

You need to register to view the code example.
LearnSkill Boolean Learns skill
function LearnSkill(ID: cardinal): boolean;

ID - skill identificator

You need to register to view the code example.
UpdateSkillList Boolean Update skill list
function UpdateSkillList: boolean;
There are no arguments You need to register to view the code example.

Items

Name Result Description Code Params Examples
UseItem Boolean Use item
function UseItem(Name: string; ByPet: boolean = false; Force: boolean = false): boolean;
function UseItem(ID: cardinal; ByPet: boolean = false; Force: boolean = false): boolean;
function UseItem(Obj: TL2Item; ByPet: boolean = false; Force: boolean = false): boolean;

Name - item name
ID - item identificator
Obj - item
ByPet - use via pet (default - not)

Force - use with force (via Ctrl) (default - not)

You need to register to view the code example.
UseItemOID Boolean Use item by unique idenfiticator
function UseItemOID(OID: cardinal; ByPet: boolean; Force: boolean): boolean;

OID - item unique identificator
WithPet - use via pet
Force - use with force (via Ctrl)

You need to register to view the code example.
DestroyItem Boolean Delete item
function DestroyItem(Name: string; Count: cardinal): boolean;
function DestroyItem(ID: integer; Count: cardinal): boolean;
function DestroyItem(Item: TL2Item; Count: cardinal): boolean;

Name - item name
ID - item identificator

Item - item
Count - item amount

You need to register to view the code example.
DropItem Boolean Drop item
function DropItem(ID, Count: cardinal; X, Y, Z: integer): boolean;

ID - item identificator
Count - item amount
X, Y, Z - coordinates

You need to register to view the code example.
MakeItem Boolean Craft item
function MakeItem(Index: сardinal): boolean;

Index - index number in crafting list (starting from 0)

You need to register to view the code example.
CrystalItem Boolean Cristalise item
function CrystalItem(ID: сardinal): boolean;
function CrystalItem(Item: TL2Item): boolean;

ID - item identificator

Item - item

You need to register to view the code example.
MoveItem Boolean Move item between user and pet
function MoveItem(Name: string; Count: cardinal; ToPet: boolean): boolean;

Name - item name
Count - item amount
ToPet - move to pet(true) or from pet(false)

You need to register to view the code example.
LoadItems Boolean Move items between user and warehouse
function LoadItems(ToWH: boolean; List: array of cardinal): boolean;

ToWH - deposit(true) or withdraw(false) 
List - list of items identificators and its amount - [Item1, ItemCount1, ItemID2, ItemCount2, ...]

You need to register to view the code example.
AutoSoulShot Boolean Enable / disable automatical shots using
function AutoSoulShot(Name: string; Active: boolean): boolean;

Name - shots name
Active - activate(true) or deactivate(false) using

You need to register to view the code example.
DAutoSoulShot Boolean Enable / disable automatical shots using. Without waiting for server answer.
function DAutoSoulShot(ID: cardinal; Active: boolean): boolean;

ID - shots identificator
Active - activate(true) or deactivate(false) using

You need to register to view the code example.
Equipped Integer Get equpped items count
function Equipped(Name: string): integer;

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
function DismissPet: boolean;
There are no arguments You need to register to view the code example.
DismissSum Boolean Dismiss summon
function DismissSum: boolean;
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
function Say(Text: string; ChatType: cardinal; PlayerName: string): boolean;

Text - message text
ChatType - chat type (0 - regular, 1 - shout, 2 - private, 3 - group/party, 4 - clan, 8 - trade, 9 - ally, 10 - announcements, 17 - hero, 20 - command channel, 25 - world)

PlayerName - player name (for private chat)

You need to register to view the code example.
InviteParty Boolean Invite player to group/party
function InviteParty(Name: string; LootMode: TLootType = ldLooter): boolean;

Name - player name
LootMode - drop/items loot type (default - finder keepers). Drop/items loot types.

You need to register to view the code example.
DismissParty Boolean Dismiss player from group/party
function DismissParty(Name: string): boolean;

Name - player name

You need to register to view the code example.
JoinParty Boolean Answer to group/party invite
function JoinParty(Accept: boolean): boolean;

Accept - accept(true) invite or reject(false)

You need to register to view the code example.
LeaveParty Boolean Leave from party
function LeaveParty: boolean;
There are no arguments You need to register to view the code example.
SetPartyLeader Boolean Transfer group/party leader status
function SetPartyLeader(Name: string): boolean;

Name - player name

You need to register to view the code example.
GetMentor String Mentor name
function GetMentor: string;
There are no arguments You need to register to view the code example.
KickMentor Boolean Leave mentor
function KickMentor: boolean;
There are no arguments You need to register to view the code example.
CloseRoom Boolean Close group/party room
function CloseRoom: boolean;
There are no arguments You need to register to view the code example.
CreateRoom Boolean Create group/party room
function CreateRoom(Caption: string; MinLevel, MaxLevel: integer): boolean;

Caption - room caption
MinLevel, MaxLevel - minimal and maximal players level for room

You need to register to view the code example.
AutoAcceptClan - Activate automatical entry to clan
procedure AutoAcceptClan(PlayersList: string);

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
procedure AutoAcceptCC(PlayersList: string);

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
procedure AutoAcceptMentors(PlayersList: string);

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
function QuestStatus(ID: сardinal): cardinal;
function QuestStatus(ID, Stage: cardinal): boolean;

ID - quest identificator 
Stage - quest stage

You need to register to view the code example.
CancelQuest Boolean Cancel quest
function CancelQuest(ID: integer): boolean;

ID - quest identificator

You need to register to view the code example.
OpenQuestion Boolean Opens quests "question mark"
function OpenQuestion: boolean;
There are no arguments You need to register to view the code example.
GetDailyItems Boolean Get daily items
function GetDailyItems: boolean;
There are no arguments You need to register to view the code example.
GetDailyItem Boolean Get one of the daily rewards
function GetDailyItem(ID: cardinal): boolean;

ID - reward/item identificator

You need to register to view the code example.
UpdateDailyList Boolean Update daily rewards list
function UpdateDailyList: boolean;
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)
function DlgOpen(Timeout: cardinal = 5000): boolean;

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
function DlgSel(Caption: string; Timeout: integer = 1000): boolean;
function DlgSel(Index: integer; Timeout: integer = 1000): boolean;

Caption - dialog string text
Index - dialog index number (starting from 1)
Timeout - time of waiting for server answer (in ms, 1sec = 1000ms) (default - 1sec)

You need to register to view the code example.
BypassToServer Boolean Send command/bypass to server
function BypassToServer(Text: string): boolean;

Text - command/bypass text

You need to register to view the code example.
DlgText String Common dialog text
function DlgText: string;
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)
function DlgTime: cardinal;
There are no arguments You need to register to view the code example.
CBText String Community Board / Alt+B dialog text
function CBText: string;
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)
function CBTime: cardinal;
There are no arguments You need to register to view the code example.
HlpText String Help dialog text
function HlpText: string;
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)
function HlpTime: cardinal;
There are no arguments You need to register to view the code example.
ConfirmDlg TConfirmDlg Dialog with accept ability
function ConfirmDlg: TConfirmDlg;
There are no arguments You need to register to view the code example.
ConfirmDialog Boolean Accept/reject dialog
function ConfirmDialog(Accept: boolean): boolean;

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)
function OpenPrivateStore(List: array of cardinal; StoreType: byte; StoreCaption: string): boolean;

List - list of items identificators, its amount and prices - [Item1, ItemCount1, ItemPrice1, ItemID2, ItemCount2, ItemPrice2, ...]
StoreType - store type. Store types.
StoreCaption - store caption

You need to register to view the code example.
NpcTrade Boolean Buy / sell items to NPC
function NpcTrade(Sell: boolean; List: array of cardinal): boolean;

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
function NpcExchange(IDorIndex, Count: cardinal; ByIndex: boolean = false): boolean;

IDorIndex - item identificator / index number
Count - item amount
ByIndex - use item index number(true) or identificator(false) (default - identificator)

You need to register to view the code example.
CastleTax Integer Town tax percentage
function CastleTax(TownID: cardinal): integer;

TownID - town identificator (1 - Gludio, 2 - Dion, 3 - Giran, 4 - Oren, 5 - Aden, ...)

You need to register to view the code example.

Mail

Name Result Description Code Params Examples
SendMail Boolean Send mail
function SendMail(Receiver: string; Topic: string; Text: string; ItemsList: array of cardinal; Price: cardinal = 0): boolean;

Receiver - mail receiver
Topic - mail topic
Text - mail text
ItemsList - list of attached items identificators and its amount - [Item1, ItemCount1, ItemID2, ItemCount2, ...]
Price - mail receiving price (default - free)

You need to register to view the code example.
GetMailItems Boolean Get mails
function GetMailItems(MaxLoad: cardinal = 65; MaxCount: cardinal = 1000): boolean;

MaxLoad - maximal user backpack loading (default - 65)
MaxCount - maximal items amount (default - 1000)

You need to register to view the code example.
ClearMail Boolean Clear mail
function ClearMail: boolean;
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
function GetZoneType: TZoneType;
There are no arguments You need to register to view the code example.
GetZoneName String Get location name by coordinates
function GetZoneName(X, Y, Z: integer): string;

X, Y, Z - coordinates

You need to register to view the code example.
GetZoneID Cardinal Get location identificator by coordinates
function GetZoneID(X, Y, Z: integer): cardinal;

X, Y, Z - coordinates

You need to register to view the code example.
InZone Boolean Is object/point in zone configured on bot map
function InZone(Obj: TL2Spawn): boolean;
function InZone(X, Y, Z: integer): boolean;

Obj - object
X, Y, Z - point coordinates

You need to register to view the code example.
GameTime Cardinal Current game time (in min)
function GameTime: сardinal;
There are no arguments You need to register to view the code example.
IsDay Boolean Is day time in game
function IsDay: boolean;
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
function Status: TL2Status;
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)
function LoginStatus: integer;
There are no arguments You need to register to view the code example.
AuthLogin Boolean Enter account login and passowrd
function AuthLogin(Login, Password: string): boolean;

Login - account login

Password - account password

You need to register to view the code example.
GameStart Boolean Select character on character selection screen
function GameStart(CharIndex: integer = -1): boolean;

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
function Restart: boolean;
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.
function DRestart: boolean;
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
function FaceControl(ID: integer; Active: boolean): boolean;

ID - module identificator (0 - all, 1 - attack, 2 - heal, 3 - buff, 4 - events)
Active - activate(true) module or deactivate(false)

You need to register to view the code example.
GetFaceState Boolean Bot settings module state
function GetFaceState(ID: integer): boolean;

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
function GetFaceSet(ID: integer): pointer;

ID - identificator

You need to register to view the code example.
UpdateCfg Boolean Update (reread) bot settings. Required after usage GetFaceSet.
function UpdateCfg(Wait: boolean): boolean;

Wait - wait for settings update and account loading

You need to register to view the code example.
LoadConfig Boolean Load bot settings from file
function LoadConfig(FilePath: string): boolean;

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
function LoadZone(FilePath: string): boolean;

FilePath - full file path / file name from Settings folder

You need to register to view the code example.
ClearZone - Clear zones on bot map
procedure ClearZone;
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")
function SetPerform(Level: cardinal): boolean;

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
procedure SetMapKeepDist(Dist: integer);

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.
function GamePrint(Text: string; Author: string = ''; ChatType: integer = 0): boolean;

Text - message text
Author - message author (default - user)

ChatType - chat type (default - regular)

You need to register to view the code example.
GameClose Boolean Close game client
function GameClose: boolean;
There are no arguments You need to register to view the code example.
BlinkWindow Boolean Activate game client / Adrenaline window blinking on task panel
function BlinkWindow(Game: boolean): boolean;

Game - game client(true) or Adrenaline(false) window

You need to register to view the code example.
SetGameWindow Boolean Show / hide game client window
function SetGameWindow(Show: boolean): boolean;

Show - show(true) or hide(false)

You need to register to view the code example.
UseKey Boolean Press keyboard button in game client window
function UseKey(KeyName: string; Ctrl: boolean = false; Shift: boolean = false): boolean;
function UseKey(KeyCode: word; Ctrl: boolean = false; Shift: boolean = false): boolean;
function UseKey(KeyCode: word; DownUp: byte = 0): boolean;

KeyName - button name
KeyCode - button code. Buttons codes.
Ctrl, Shift - press Ctrl, Shift (default - not)
DownUp - pressing method (0 - press and release, 1 - press, 2 - release) (default - press and release)

You need to register to view the code example.
EnterText Boolean Type test in game client window
function EnterText(Text: string): boolean;

Text - text

You need to register to view the code example.
PostMessage Integer Send message to game client window. About PostMessage.
function PostMessage(Msg: cardinal; wParam, lParam: integer): integer;

Msg - message identificator
wParam, lParam - message parameters

You need to register to view the code example.
SendMessage Integer Send message to game client window. About SendMessage.
function SendMessage(Msg: cardinal; wParam, lParam: integer): integer;

Msg - message identificator
wParam, lParam - message parameters

You need to register to view the code example.
GamePath String Path to executive game client file. For example, to L2.exe
function GamePath: string;
There are no arguments You need to register to view the code example.
GameWindow Cardinal Game client window identificator/handle
function GameWindow: cardinal;
There are no arguments You need to register to view the code example.
GameHash Cardinal Game client hash
function GameHash: cardinal;
There are no arguments You need to register to view the code example.
GameVersion Cardinal Game client protocol version
function GameVersion: cardinal;
There are no arguments You need to register to view the code example.
  • Examples found for this method:

Game server

Name Result Description Code Params Examples
GetServerIP String Game server IP-address
function GetServerIP: string;
There are no arguments You need to register to view the code example.
GetServerName String Game server name. Only for official servers.
function GetServerName: string;
There are no arguments You need to register to view the code example.
GetServerID Cardinal Game server ID. Only for official servers.
function GetServerID: cardinal;
There are no arguments You need to register to view the code example.
IsClassicServer Boolean Is classic(L2 Classic) server
function IsClassicServer: boolean;
There are no arguments You need to register to view the code example.
ServerTime Cardinal Current server time (in min)
function ServerTime: сardinal;
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
procedure Msg(Title, Text: string; Color: integer);

Title - message title
Text - message text
Color - message color code. Сolor codes.

You need to register to view the code example.
BlinkWindow Boolean Activate game client / Adrenaline window blinking on task panel
function BlinkWindow(Game: boolean): boolean;

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)
procedure HKPauseScript(Enable: boolean);

Enable - activate(true) или deactivate(false)

You need to register to view the code example.
BotWindow Cardinal Adrenaline window identificator/handle
function BotWindow: cardinal;
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
function WaitAction(Action: TL2Action; var P1, P2: pointer; Timeout: cardinal = INFINITE): TL2Action;
function WaitAction(ActionList: array of TL2Action; var P1, P2: pointer; Timeout: cardinal = INFINITE): TL2Action;

Action - waiting event type. Event types.

ActionList - list of waiting event types - [EventType1, EventType2, ..]. Event types.
var P1, P2 - parameters, with own values for every event. Parameters description.
Timeout - time for event waiting (in ms, 1sec = 1000ms) (default - infinite)

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
function GetUser: TL2User;
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
function GetPetList: TPetList;
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
function GetInventory: TInventory;
There are no arguments You need to register to view the code example.
GetSkillList TSkillList Charater skills list of account of this controller
function GetSkillList: TSkillList;
There are no arguments You need to register to view the code example.
GetParty TParty Group/party of account of this controller
function GetParty: TParty;
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
function GetCharList: TCharList;
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
function GetNpcList: TNpcList;
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
function GetDropList: TDropList;
There are no arguments You need to register to view the code example.
GetWarehouse TL2Warehouse Warehouse (last opened) of account of this controller
function GetWareHouse: TL2Warehouse;
There are no arguments You need to register to view the code example.
GetAuction TL2Auction Auction (last opened) of account of this controller
function GetAuction: TL2Auction;
There are no arguments You need to register to view the code example.
GetChatMessage TChatMessage Last chat message of account of this controller
function GetChatMessage: TChatMessage;
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.
function GetScript: pointer;
There are no arguments You need to register to view the code example.
Entry Boolean Call event OnEntry in script of this controller
function Entry(var Param): boolean;

 

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