Non Categorized

Command Format

NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);



void Orion.SaveConfig();

Save configuration.



void Orion.SetLight(state, [value=currentLight]);

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.



void Orion.SetSeason(state, [index=currentIndex], [musicIndex=currentMusic]);

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



bool Orion.SaveHotkeys('fileName');

Save current hotkey set with file name 'filename' (to the Hotkeys folder at the root of the assistant).

Result: true on successful file save.



bool Orion.LoadHotkeys('fileName');

Load hotkey set with file name 'fileName' (from the Hotkeys folder at the root of the assistant).

Result: true on successful file load.



void Orion.Cast(spellIndex/'spellName', ['targetSerial']);

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.



void Orion.UseSkill(skillIndex/'skillName', ['targetSerial']);

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.



int Orion.SkillValue(skillIndex/'skillName', ['type'=real]);

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).



void Orion.CloseUO();

Close game client.



void Orion.WarMode([state=switch]);

Switch war mode.

state - turn on/turn off war mode. If not specified - switches the current state.



void Orion.Morph(['graphic'=0]);

Change character body graphic.

Without parameters or 0 - returns body to its original state.



void Orion.Resend();

Synchronisation with the server. Can be used every few seconds.



void Orion.Sound(index);

Play sound index.



void Orion.EmoteAction('actionName');

Request to emotion reproducing actionName.



void Orion.Print(['color'], 'text');

Display in system chat

If displayed only 1 argument - string color will be standard.

color - message color.

text - text.



void Orion.CharPrint('serial', 'color', 'text');

Display message above the character

serial - serial of the character, above who you want to display the message.

color - message color.

text - text.



void Orion.Say('text');

Say in the chat 'text'



void Orion.BuffExists('name');

Checking for buffs by name or graphic.

Result: true if buff is active.



void Orion.SetFontColor(state, ['color'=0x02B2]);

Change text color for player character and state of this option.

state - true/false.

color - text color.



bool Orion.GetFontColor();

Retrieve status of text replacement option for player character.

Returns true if option is enabled.



String Orion.GetFontColorValue();

Retrieve text replacement color for player character.

Returns: text color.



void Orion.SetCharactersFontColor(state, ['color'=0x02B2]);

Change text color used by characters for output and state of this option.

state - true/false.

color - text color.



bool Orion.GetCharactersFontColor();

Retrieve status of text replacement option for characters.

Returns true if option is enabled.



String Orion.GetCharactersFontColorValue();

Retrieve text replacement color for all characters.

Returns: text color.



void Orion.UseAbility('abilityName');

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.



void Orion.UseWrestlingDisarm();

Wrestling Disarm ability use request.



void Orion.UseWrestlingStun();

Wrestling Stun ability use request..



void Orion.InvokeVirture('name');

...



void Orion.PlayWav('filePath');

Play a *.WAV file from filePath.



void Orion.Screenshot();

Create a screenshot.



void Orion.LogOut();

Client log out ( client will remain running, at login screen ).



_ MacroObject_ Orion.CreateClientMacro(['action'], ['subAction']);

Create a macro in client options.

Returns MacroObject or null reference.



void Orion.OpenPaperdoll('serial');

Open paperdoll by serial.



void Orion.ClosePaperdoll('serial');

Close paperdoll by serial.



void Orion.MovePaperdoll('serial', x, y);

Move paperdoll by serial to chosen x and y coordinates on screen.



void Orion.ClientViewRange(range);

Set clients view range ( 5 is minimal, 25 is maximal ).



int Orion.ClientViewRange();

Get current client view range.

Returns clients view range in tiles.



void Orion.LoadProfile('name');

Load OA profile by name.