-
Notifications
You must be signed in to change notification settings - Fork 45
Api Documentation
Marius Lumbroso edited this page Sep 20, 2020
·
29 revisions
LeagueBot provide a C# Api that can be used in bot scripts. (Binaries/Patterns/
)
Function | Return Type | Description |
---|---|---|
log |
void |
(string message) Log message in the console |
wait |
void |
(int duration) Wait (duration is in milliseconds) |
executePattern |
void |
(string patternName) Execute pattern pattern name
|
waitUntilProcessBounds |
void |
(string processName,int width,int height) Pause bot until process rect bounds is width * heigth |
isProcessOpen |
bool |
(string processName) Return state of the process |
centerProcess |
void |
(string processName) Center process windows relatively to screen size |
bringProcessToFront |
void |
(string processName) Bring process window to front |
waitProcessOpen |
void |
(string processName) Pause bot until the process open |
centerProcess |
void |
(string processName) Center process windows relatively to screen size |
inputWords |
void |
(string words) Press words keyboard keys |
Function | Return Type | Description |
---|---|---|
clickPlayButton |
void |
Click the 'Play' button |
clickAramButton |
void |
Click the 'Aram' button |
clickCoopvsIAText |
void |
Click the 'Coop vs IA' button |
clickIntroText |
void |
Click the Intro button |
clickIntermediateText |
void |
Click the Intermediate button |
clickConfirmButton |
void |
Click the Confirm button |
clickFindMatchButton |
void |
Click the Find match button |
clickChampSearch |
void |
Click the Champ Search text box (before inputs) |
mustSelectChamp |
bool |
return true if we are in champ select |
lockChampion |
void |
Lock selected champion , Click Lock in button |
acceptMatch |
void |
Accept a match |
selectFirstChampion |
void |
Select the first champion in champion list |
levelUp |
bool |
Return true if your account level up |
questCompleted |
bool |
Return true if your account complete a mission |
Function | Return Type | Description |
---|---|---|
waitUntilGameStart |
void |
Wait until the game start |
detectSide |
void |
Detect team side |
getSide |
SideEnum (Blue,Red) |
Return your game side |
moveCenterScreen |
void |
Right click on center of the camera screen |
Function | Return Type | Description |
---|---|---|
toogle |
void |
Toogle shop open/close. |
buyItem |
void |
(int indice) Buy an item in shop |
Function | Return Type | Description |
---|---|---|
toggleCamera |
void |
Toogle camera locked / free. |
lockAlly |
void |
(int allyIndice) Lock camera on ally no allyIndice . range is 1 to 5 |
Function | Return Type | Description |
---|---|---|
talk |
void |
(string message) Talk in ally channel |
Function | Return Type | Description |
---|---|---|
isPlayerAlive |
bool |
Return true if your player is alive |
getHealthPercent |
int |
Return your player life percentage. |
getManaPercent |
int |
Return your player mana percentage. |
castSpell |
void |
(int indice,int x,int y) Cast a spell at position (x,y). indice range is 1 (Q) to 4 (Ultimate) |
upgradeSpell |
int |
(int indice) Upgrade a spell, indice range is 1 (Q) to 4 (Ultimate) |