-
Notifications
You must be signed in to change notification settings - Fork 113
Interactions with other scripts Orion Assistant
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
Wait delay (milliseconds).
In addition, the value can take in the parameter string constants: moveitemdelay, waittargetdelay, useitemdelay, keepcorpsedelay.
Result: the current time in milliseconds.
Load the script file.
Start the function.
-
- functionName - The name of the function to start.
-
- oneScriptRunning - Check for a running instance of the function with the same name and prevent re-execution.
-
- argumentsList - List of function parameters.
Terminate the script. The function name register is important !!!
-
- functionName - The name of the function to be terminated. Ends all functions with that name. If 'all' is specified - exits all functions except those that were specified in functionsSave.
-
- functionsSave - Functions that do not need to be terminated are indicated by '|' ; For example, Orion.Terminate ('all', 'Heal | Loot | CheckMana') - terminates all working functions except Heal, Loot, CheckMana.
Check if the script is already running.
Result: count of running scripts.
Launching of external program from 'filePath' with optional 'arguments'.
This function will check for a text pattern or a collection of patters ('patternOne|patternTwo|patternThree') within 'text' string. Uses same logic as text searching in UO journal.
-
- text - String with text to search within.
-
- pattern - String with pattern(s) to search for.
-
- ignoreCase - true - Ignore case is true by default.
Returns true if there's a match.
This function will split 'text' string into a list of strings by separator character. Default is space character.
-
- text - string of text to split.
-
- separator - character used as a separator for text string.
-
- skipEmptyWord - true - skips empty words by default.
Returns a list of strings.
Returns: Current version number of OA, for example "2.0.8.0".
Returns: true if client is connected to a server and character is already in the world.
Returns: current time, example "13:27:41.508".
Returns: current date, example "26.05.2017".
Returns: random value starting from 0 and up to value-1.
Returns: random value starting from minValue and up to maxValue-1.
Activates client window.
Shuts down your PC :) can add flags as 'mode'.
Get current state of hotkeys ( enabled/disabled )
Returns true if hotkeys are enabled, false if disabled.
Sets hotkeys state.
Pause the current script.
Pause the specified (name) script.
If 'all' is specified, pauses all scripts.
Resume the specified (name) script.
If 'all' is specified, resumes all scripts.
Start or stop running scripts with specified name.
-
- functionName - The name of the function to start or stop.
-
- oneScriptRunning - Check for a running instance of the function with the same name and prevent re-execution.
-
- argumentsList - List of function parameters.