OpenBullet Script Tutorial
OpenBullet Script Tutorial
me/viperzcrew
General Info
1. - What is LoliScript?
2. - When to use it?
3. - Variables
4. - Comments
5. - General Commands
6. - Block Commands
7. - Flow Control
8. - Thanks For Reading
What is LoliScript?
LoliScript (LS) is a custom scripting language made to give access to all existing (plus
some more advanced) capabilities of OpenBullet.
Every instruction is a one-liner (but can be broken down into multiple segments for
readability) and it will integrate the existing block execution capabilities with some other
that cannot be reproduced with normal blocks.
This is ABSOLUTELY NOT a fully functional scripting language meant to replace the
capabilities offered by JavaScript or Python.
https://t.me/viperzcrew
https://t.me/viperzcrew
In this documentation you will learn how to use LoliScript to its full potential and
integrate it with your other blocks or even stop using blocks altogether!
You want something faster and much easier to debug at a glance Parameter (usually
identifies an enumerator value)
KEYCHECK BanOn4XX=TRUE
Variables
You can access the saved values of variables and use them in literals by
including them in angle brackets like this A.
- Single
<NAME>
https://t.me/viperzcrew
https://t.me/viperzcrew
<NAME[0]>
<NAME[*]>
Comments
Example:
## THIS IS A COMMENT
General Commands
PRINT
This command is peculiar since it doesn't take a literal argument but just parses the rest
of the line after the keyword PRINT and outputs it to the debugger log.
Syntax:
PRINT TEXT
Example:
PRINT Hello, World!
SET
This command is very powerful as it allows manipulation on the global data of the bot.
Syntax:
SET IDENTIFIER [PARAMETERS]
Allowed identifiers:
https://t.me/viperzcrew
https://t.me/viperzcrew
COOKIE – Sets the value for a cookie of the global cookie jar given its name
USEPROXY – Whether to use the proxy that is currently assigned to the bot during
requests
GCOOKIES – Sets cookies from the local cookie jar into the global cookie jar
Examples:
https://t.me/viperzcrew
https://t.me/viperzcrew
DELETE
Syntax:
Allowed identifiers:
- COOKIE
- VAR
- GVAR
Examples:
DELETE COOKIE Contains "phpsessid"
DELETE VAR "TOKEN"
DELETE GVAR "MAX"
Mouse Action
This command allows you to perform advanced mouse actions in the browser.
General Syntax:
https://t.me/viperzcrew
https://t.me/viperzcrew
Allowed Actions:
Examples:
https://t.me/viperzcrew
https://t.me/viperzcrew
Block Commands
Info
The block commands will spawn and execute a block of the corresponding type, after
setting all the required parameters.
You can give a label to any block by writing # and then the preferred label, for example:
Function
Note: If the input has a variable of List type, the function will be executed on all the
elements and return a new List variable.
Syntax:
Examples:
Peculiar functions:
https://t.me/viperzcrew
https://t.me/viperzcrew
Keycheck
Example:
KEYCHECK BanOnToCheck=False
KEYCHAIN Success OR
KEY "Logout"
KEYCHAIN Failure OR
KEY "<SOURCE>" EqualTo ""
KEYCHAIN Custom "DEFAULT" OR
KEY "abc" Contains "ab"
Request
https://t.me/viperzcrew
https://t.me/viperzcrew
Examples:
Recaptcha
Syntax:
https://t.me/viperzcrew
https://t.me/viperzcrew
Example:
Captcha
Syntax:
Example:
Parse
Syntax:
https://t.me/viperzcrew
https://t.me/viperzcrew
Examples:
Bypass CF
Syntax:
Example:
BYPASSCF "http://example.com"
Utility
Example:
https://t.me/viperzcrew
https://t.me/viperzcrew
TCP
Syntax:
Allowed Commands:
Example:
Navigate
Syntax:
https://t.me/viperzcrew
https://t.me/viperzcrew
Example:
NAVIGATE "http://example.com"
Browser Action
Syntax:
Examples:
BROWSERACTION OPEN
BROWSERACTION SENDKEYS "Hello"
Element Action
Syntax:
Examples:
Execute JS
https://t.me/viperzcrew
https://t.me/viperzcrew
Syntax:
EXECUTEJS "SCRIPT"
Examples:
EXECUTEJS "alert('hi');"
Flow Control
If Else
The IF statement will check the condition after it. If it's successful, it will continue to the
next instruction, otherwise it will jump to the first ELSE or ENDIF statement.
The ELSE statement will be executed if the IF wasn't successful, otherwise it will jump
to the first ENDIF statement.
Syntax:
While
The WHILE statement will check the condition after it. If it's successful, it will continue to
the next instruction, otherwise it will jump to the first ENDWHILE statement.
https://t.me/viperzcrew
https://t.me/viperzcrew
The ENDWHILE statement will always jump back to the first WHILE statement above it.
The WHILE - ENDWHILE pair allows to reproduce the FOR statement of common high
level programming languages as well.
Syntax:
Jump
The JUMP statement will jump to the first block with the specified label (within the
script!).
Syntax:
JUMP #LABEL
The BEGIN SCRIPT statement will mark an area of the script where the commands will
be executed using another scripting language.
The OUTPUTS literal can contain a comma-separated list of variable names that you
want to extract from the script's scope and declare inside OB as strings or lists.
It is useful to mention that your normal variables will be automatically declared inside
the script as strings / lists of strings / dictionaries (if their name is allowed by that
language's standards).
Available languages:
- JavaScript
- IronPython
Syntax:
https://t.me/viperzcrew
https://t.me/viperzcrew
Example:
https://t.me/viperzcrew