-
Notifications
You must be signed in to change notification settings - Fork 113
Non categorized commands 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
Save configuration.
Set the light level.
state - state turn on/turn off.
value - light level value from 0 to 31.
void Orion.SetWeather(state, [index=currentWeather], [effectsCount=currentCount], [temperature=currentTemperature]);
Set weather conditions.
state - state turn on/turn off.
index - ordinal number of the weather effect.
effectsCount - number of effects on screen.
temperature - not used.
Set season with number.
state - state turn on/turn off.
index - ordinal number of season.
musicIndex - music number for playback.
- void Orion.Track([state=false], [x=-1, y=-1]);
Hide/show quest arrow to the indicated coordinates. -1 in coordinates indicates current location in the world.
state - state show/hide.
x - coordinate X in the world, where the arrow points
y - coordinate Y в мире, where the arrow points
Save current hotkey set with file name 'filename' (to the Hotkeys folder at the root of the assistant).
Result: true on successful file save.
Load hotkey set with file name 'fileName' (from the Hotkeys folder at the root of the assistant).
Result: true on successful file load.
Cast a spell 'spellName' (You can also refer to the order number in the spellbook).
If targetSerial is specified - automatically use the target on this object, otherwise - only sends a cast request to the server.
Use skill 'skillName' (You can also refer to the order number).
If targetSerial is specified - automatically use the target on this object, otherwise - only sends a request to use skill to the server.
Get skill value 'skillName' (You can also refer to the order number).
type - value type: real, base, cap, lock.
Result: Integer value of the skill (e.g: 3.0 will be 30, 10.3 - 103, 50.8 - 508, 100.0 - 1000).
Close game client.
Switch war mode.
state - turn on/turn off war mode. If not specified - switches the current state.
Change character body graphic.
Without parameters or 0 - returns body to its original state.
Synchronisation with the server. Can be used every few seconds.
Play sound index.
Request to emotion reproducing actionName.
Display in system chat
If displayed only 1 argument - string color will be standard.
color - message color.
text - text.
Display message above the character
serial - serial of the character, above who you want to display the message
color - message color
text - text.
Say in the chat 'text'
Checking for buffs by name or graphic.
Result: true if buff is active.
Change text color for player character and state of this option.
state - true/false.
color - text color.
Retrieve status of text replacement option for player character.
Returns true if option is enabled.
Retrieve text replacement color for player character.
Returns: text color.
Change text color used by characters for output and state of this option.
state - true/false.
color - text color.
Retrieve status of text replacement option for characters.
Returns true if option is enabled.
Retrieve text replacement color for all characters.
Returns: text color.
Use request for an ability 'abilityName'.
'abilityName' can also be 'Primary', 'Secondary', or its real name in(can also be found in script editor context menu) or it can be ability index starting from '0' and '30' as last index.
Wrestling Disarm ability use request.
Wrestling Stun ability use request..
- void Orion.InvokeVirture('name');
...
Play a *.WAV file from filePath.
Create a screenshot.
Client log out ( client will remain running, at login screen ).
Create a macro in client options.
Returns MacroObject or null reference.
Open paperdoll by serial.
Close paperdoll by serial.
Move paperdoll by serial to chosen x and y coordinates on screen.
Set clients view range ( 5 is minimal, 25 is maximal ).
Get current client view range.
Returns clients view range in tiles.
Load OA profile by name.
Stop playing the assistant macro.
void Orion.AddDisplayTimer('id', timer, [position='RightTop'], [shape='Circle|Bar'], [name=''], [x=0], [y=0], [textColor='0xFFFF'], [font=0xFF], [backgroundColor='0xFFFFFFFE']);
Draw a display timer in the client window.
-
- id - string, timer identifier for further interaction with it;
-
- timer - the number of how many milliseconds the timer will be displayed (and count down);
-
- position - line, timer position, it can be: Left, Right, Top, Bottom, LeftTop, RightTop, LeftBottom, RightBottom, AboveChar (above the character), UnderChar (under the character), Custom (custom position, set to x, y );
-
- shape - line, timer figure, may be Circle, Rectangle, Line. May have the addition of Bar, then the timer will be animatedly reduced as it approaches zero;
-
- name - string, name of the timer to be displayed. May be an empty string;
-
- x, y - for Custom timers - screen coordinates, for other types - offset of the timer relative to its position on the screen;
-
- textColor - Timer text color, 0xFFFF - use standard color;
-
- font - Text font, 0xFF - use a standard font;
-
- backgroundColor - timer background color, 0xFFFFFFFE - use standard color.
Check for the existence of a display timer in the client with the specified id.
Result: true if the timer is displayed.
Delete the display timer with the specified id.
Block closing the automatic container serial (manually, by right-clicking, it closes).
Get the status of the name.
name can be 'primary' and 'secondary'.
Result: true if the ability is active.
Get the state of the name spell.
Result: true if the spell is active.
Set the growth state of the skill name to status.
status can be 'Up', 'Down', 'Lock'.
Run an assistant macro named name (case sensitive).
Get the ping value calculated by the client (only when the ping check option is enabled).
name can be:
-
- 'min' - minimum ping;
-
- 'max' - maximum ping;
-
- 'average' - the average ping value.
Result: ping value (9999 if ping was not requested).
Read the string value from the registry for the varName variable.
Result: a value from the registry, or an empty string.
Write the string value value to the registry for the varName variable.
Result: true if recording was successful, false if errors occurred and data was not written.
Log information about current buffs and debuffs.
- int Orion.BuffCount();
Result: The total number of buffs and debuffs per character.
Copy text to clipboard.
Set the radius for the display timer (only for circular timers).
Set the size for the display timer.
For rectangular timers it works fully.
For strip - only the width is used (regardless of the verticality of the timer).
Switch the direction of the timer animation.
Show/hide timer counter.
- void Orion.DisplayTimerSetIcon('id', 'position', 'iconGraphic', [iconColor='0'], [iconX=0], [iconY=0], [iconWidth=0], [iconHeight=0]) ;
Add an object icon to the timer.
-
- id - string, timer identifier for further interaction with it;
-
- position - line, timer position, it can be: Left, Right, Top, Bottom, LeftTop, RightTop, LeftBottom, RightBottom, Custom (displaying the image in the center of the timer);
-
- iconX and iconY set the timer offset relative to the selected position;
-
- if a non-zero value is specified for iconWidth or iconHeight - the image resizes to the specified one. Only one value is allowed to change, 0 will be considered as the original size of the width or height.
- void Orion.DisplayTimerSetColorStage ('id', percentage, 'textColor', [backgroundColor='0xFFFFFFFF'], [iconColor='0xFFFF'])
Add a state to change the color of the timer when it reaches a certain lifetime (in%). You can add multiple states.
-
- textColor and iconColor can take the value '0xFFFF', then this field is ignored and the original timer color is used.
-
- if backgroundColor is specified as '0xFFFFFFFF' - this field is ignored, the original color of the timer is used.
Checking the remaining buff time by name or Graphic.
Result: time in ms remaining until the end of the effect of the buff, or 0 if there is no buff. If this is buff without the action time return -1.