EN Runtime API 39 Time and Waiting - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki

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

Runtime API - Time and wait

Home · C# · IDE · UO API · A–Z · Examples · Languages

Each team opens a card with C#-signatures, parameters and several independent examples.

UO.AddRecall

Magic

UO.CallSub

Scripts & Runtime

Launches the C# delegate previously registered in the current execution via RegisterRoutine(name, handler). The call returns control before the helper completes; One registered task cannot be imposed on itself.

UO.ConnectedTime

Client & Connection

Returns the calendar stamp of the character's last successful entry into the world. Helps you understand if the connection has changed while waiting or pausing before continuing the same task.

UO.Date

Scripts & Runtime

Reads the local calendar date of the computer with the number YYMMDD. Useful for naming a daily series of activities or detecting date changes.

UO.DisconnectedTime

Client & Connection

Returns the calendar stamp of the last time the game connection was lost. It is needed to diagnose a break and estimate the duration of a completed connection, and not to determine the number of login attempts.

UO.Exec

Scripts & Runtime

Executes a text game command or runs a registered C# delegate or a loaded C# file.

UO.GetPing

Client & Connection

Reads the game server response delay. Without argument, uses the last dimension; with a timeout requests a fresh response.

UO.GetRunMountTimer

Movement

Shows the configured interval of one horse running step in milliseconds. Useful for checking the mode, estimating the timing and saving the setting before slowing down temporarily.

UO.GetRunUnMountTimer

Movement

Shows the configured interval of one walking step in milliseconds. Useful for checking the mode, estimating the timing and saving the setting before slowing down temporarily.

UO.GetScriptName

Scripts & Runtime

Reads the display name of the active run.

UO.GetScriptsCount

Scripts & Runtime

Counts active runs in this client.

UO.GetScriptsList

Scripts & Runtime

Returns the current numeric script indexes.

UO.GetScriptState

Scripts & Runtime

Reads the execution status by index.

UO.Hide

Client UI

Without an argument, enables a crosshair to locally hide an item or character. Hide(serial) hides the specified loaded object on the client side. You can't hide yourself. The server object is not deleted, the Hiding skill is not applied; server updates may make the object visible again.

UO.LineTime

Journal

Returns the calendar timestamp of the selected log entry.

UO.OpenIDE

Client UI

UO.PauseResumeScript

Scripts & Runtime

Toggles manual pause of one active run. Use to temporarily stop mining or another procedure without losing its current progress.

UO.SetRunMountTimer

Movement

Sets the step interval for running on horseback. Use to intentionally slow down or return to standard speed. You cannot speed up movement beyond the standard tempo with this command.

UO.SetRunUnmountTimer

Movement

Sets the walking stride interval. Use to intentionally slow down or return to standard speed. You cannot speed up movement beyond the standard tempo with this command.

UO.SetScriptName

Scripts & Runtime

Changes the display name of one active run. Helps distinguish between running tasks in the list and through GetScriptName.

UO.StartScript

Scripts & Runtime

UO.StopAllScripts

Scripts & Runtime

UO.StopScript

Scripts & Runtime

Requests the cancellation of one active launch, including one that is paused. Use when this run needs to be completed rather than continued later.

UO.SubExists

Scripts & Runtime

Checks whether the C# delegate with the specified name is registered with the current execution. This is a registry of callback functions for a given session, without automatically searching for arbitrary methods through reflection; explicitly loaded file inputs are also accessible by key.

UO.Terminate

Scripts & Runtime

UO.Time

Scripts & Runtime

Reads the computer's local time of day using the number HHMMSS. Convenient for selecting the allowed operating time, not for measuring duration.

UO.Timer

Scripts & Runtime

Reads the running time of the current runtime in tenths of a second. Suitable for your own delays and action marks.

UO.UpdateFigure

Client UI

Replaces the description of an existing local map figure.

UO.Wait

Scripts & Runtime

Pauses script execution for the specified time.

UO.Waiting

Scripts & Runtime

Checks whether prepared responses remain in the target queue.