Skip to content

EN API UO moveExitOnDisconnect

LIHACHTETAN edited this page Nov 28, 2026 · 3 revisions

UO.moveExitOnDisconnect

Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어

C# signatures

dynamic UO.moveExitOnDisconnect();
dynamic UO.moveExitOnDisconnect(object? value);

Stop/refuse movement when the connection is disconnected.

Parameters

  • value — Optional new value. 0 turns off, non-zero becomes 1. Disabling verification prevents you from moving on the server without a connection.

Return value

int is the current stored value. Without argument only reads; with an argument returns the value after applying the rules above. This is a setting, not a result of movement.

Behavior

  • The setting is stored in the runtime state and is used by the corresponding commands at startup; the change does not automatically overwrite the already built path.
  • Returning the original value is shown for normal completion. After a crash, the following recovery lines are not executed.
  • The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope. A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

Standalone C# scripts

Each example can be saved as a separate file .csx and run in IDE. The UO object and wait functions provide the host of the current game session. Replace demo serial names, coordinates and addresses with your own.

Simple example

Run this code as a separate .csx file. Arguments appear directly in the call; replace demonstration names, serials and addresses with your own.

The result of one call is printed in the journal. A number is not converted to bool; an array is displayed as its element count.

object? result = UO.moveExitOnDisconnect();
UO.Print(result is Array values ? "Count: " + values.Length : Convert.ToString(result));

1. Read setting - direct script

Parameters and execution flow:

  • There are no arguments, the state does not change.
  • value is the numeric value of this setting.
var value = UO.moveExitOnDisconnect();
UO.Print(Convert.ToString(value));

2. Set Explicit Value - Script Function

Parameters and execution flow:

  • value=1. 0 turns off, non-zero becomes 1. Disabling verification prevents you from moving on the server without a connection.
  • applied shows the saved value, not the successful achievement of the goal.
return  RunScenario();
 object? RunScenario()
{
    var applied = UO.moveExitOnDisconnect(1);
    UO.Print("Applied: " + Convert.ToString(applied));
    return null;
}

Command implementation

C# is case sensitive. Use the exact UO name. Compare numeric flags with 0; use bool only where the signature returns bool.

UO.moveExitOnDisconnect() — UO.moveExitOnDisconnect()

Parameters: No parameters.

Result: dynamic / Any.

During a call:

Internal implementation code; this is not a standalone script.

case "moveexitondisconnect": if (arguments.Length > 0) state.MoveExitOnDisconnect = Arg(0) != 0 ? 1 : 0; return new InjectionValue(state.MoveExitOnDisconnect);

UO.moveExitOnDisconnect(value) — UO.moveExitOnDisconnect(Any)

Parameters: value (Any)

Result: dynamic / Any.

During a call:

Internal implementation code; this is not a standalone script.

case "moveexitondisconnect": if (arguments.Length > 0) state.MoveExitOnDisconnect = Arg(0) != 0 ? 1 : 0; return new InjectionValue(state.MoveExitOnDisconnect);

Clone this wiki locally