Repository navigation
EN API UO PauseScriptsOnDisconnect
Українська · English · Русский · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
bool UO.PauseScriptsOnDisconnect();
void UO.PauseScriptsOnDisconnect(bool value);Read without arguments; change with one argument — pause after connection loss.
| Parameter | Type | Meaning |
|---|---|---|
value |
bool |
true enables the named policy; false disables it. |
No parameters. → getter.
bool — The current value; reading does not start an action. The setter returns void.
Default: false.
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.
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.
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());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
ClassicUO — Bad Newbie & C# Scripts IDE