Skip to content

EN API UO PauseScriptsOnDisconnect

LIHACHTETAN edited this page Nov 28, 2026 · 1 revision

UO.PauseScriptsOnDisconnect

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

C# signatures

bool UO.PauseScriptsOnDisconnect();
void UO.PauseScriptsOnDisconnect(bool value);

Purpose

Read without arguments; change with one argument — pause after connection loss.

Parameters

Parameter Type Meaning
value bool true enables the named policy; false disables it.

No parameters. → getter.

Return value

bool — The current value; reading does not start an action. The setter returns void.

Default: false.

Ownership

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.

See execution state and gameplay settings.

Actual behavior

After connection loss, checkpoints pause this run only when true. The default false allows independent connection commands. The owner of an explicit Disconnect can reach its following Connect.

BadNewbieRunningScript.ExecutionState → ApplyDisconnectPauseState → cooperative checkpoints.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

bool current = UO.PauseScriptsOnDisconnect();
UO.Print("PauseScriptsOnDisconnect: " + current);
UO.PauseScriptsOnDisconnect(false);
UO.Print("This run may issue connection commands while offline.");
UO.Print("Pause policy: " + UO.PauseScriptsOnDisconnect());

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,PauseScriptsOnDisconnect
,PauseScriptsOnDisconnect false

Related commands

Execution state and gameplay settings

Clone this wiki locally