From Stealth Client

Jump to: navigation, search

Connection

ChangeProfile

function ChangeProfile(ProfileName : String) : Integer

You can use this function to change the current profile to one of another character. For its success, note the following:

  • The current character must be disconnected
  • Only one script should be running
  • Specified profile must exist. Important - profile name is case sensitive.

If the profile is successful, the function returns 0, otherwise returns an error code:

  • -1 Internal error
  • -2 Char connected or is in the process of connecting
  • -3 More than one script is running
  • -4 The specified profile does not exist

CheckLag

function CheckLag(timeoutMS : Integer) : Boolean;

CheckLagBegin

procedure CheckLagBegin;

CheckLagEnd

function CheckLagEnd : Boolean;


Connect

procedure Connect

Connects the current char to the server

Example 1: {{page>:examples:connect&nofooter}}

See also


Connected

function Connected:boolean

The status of the connection with the UO server: 'True - charms attached, 'False - not connected

Example 1: {{page>:examples:connect&nofooter}}

See also


ConnectedTime

function ConnectedTime():TDateTime

Returns the char - The last time the server connection(ConnectedTime).

returns during the last successful connecting to the server.

If there is no connection to the UO server - return '30 .12.1899 'free time. in the format of the date it is equivalent to zero.

Example:

  AddToSystemJournal('Last Connect Time:' + DateTimeToStr(ConnectedTime))


Disconnect

procedure Disconnect

Disables the current char from server

Example 1: {{page>:examples:connect&nofooter}}

See also


DisconnectedTime

function DisconnectedTime():TDateTime

Returns the char - The last time disconnected from the server(DisconnectedTime).

returns the last time they disconnect from the server(for whatever reason).

In the event that such action did not occur - will return will return '30 .12.1899 'no time. in the format of the date it is equivalent to zero.

Example:

  AddToSystemJournal('Last Disconnect Time:' + DateTimeToStr(DisconnectedTime))


GetARStatus

function GetARStatus:Boolean

Returns the mode rekonnektora: 'True - rekonektor included, 'False - off

Example 1: {{page>:examples:connect&nofooter}}

See also


GetPauseScriptOnDisconnectStatus

function GetPauseScriptOnDisconnectStatus:Boolean

Specifies the behavior of the script for disconnection. if the Value' 'True when you disconnect, all running scripts will embark on a break.

Example 1: {{page>:examples:pausescript&nofooter}}

See also

ProxyIP

function ProxyIP : String;

ProxyPort

function ProxyPort : Word;


SetARStatus

procedure SetARStatus(Value : Boolean)

Устанавливает режим реконнектора: True - реконектор включен, False - выключен

Пример 1: {{page>:examples:connect&nofooter}}

См. также


SetPauseScriptOnDisconnectStatus

procedure SetPauseScriptOnDisconnectStatus(Value : Boolean)

Задает поведение скрипта при дисконнекте. если Value True то при дисконнекте, все запущенные скрипты встанут на паузу.

Пример 1: {{page>:examples:pausescript&nofooter}}

См. также

UseProxy

function UseProxy : Boolean;