From Stealth Client

Jump to: navigation, search

System

Alarm

procedure Alarm

When triggered, the icon in the system tray stealth flashes red. After deployment of stealth tray - "alarm" is reset.

Beep

procedure Beep

Sqeeks speaker.

CloseClientUIWindow

procedure CloseClientUIWindow(UIWindowType : TUIWindowType; ID : Cardinal);
 
TUIWindowType = wtPaperdoll, wtStatus, wtCharProfile, wtContainer;
 
if UIWindowType = wtContainer then ID := Container Serial, Else ID := character serial

Used for client-side only gumps (i.e. not gumps sent by the server).

Example 1:

#Python
CloseClientUIWindow("wtPaperdoll", Self())

ConsoleEntryReply

procedure ConsoleEntryReply(Text : String)

ConsoleEntryUnicodeReply

procedure ConsoleEntryUnicodeReply(Text : String)

This function is used for console output in UO Client. For example it can be used to rename Bulk Order Book (Python):

SetContextMenuHook(book_to_rename_ID, 0)  # set menu hook to autoselect "Name Book" entry
RequestContextMenu(book_to_rename_ID)     # activate book console menu
Wait(1500)                                # short delay
ConsoleEntryUnicodeReply(("New book name"+"\r")) # enter a new book name

Note! Don't forget to finish all output strings with CR string ("\r").

FileExists

function FileExists(FileName : String) : Boolean

FillNewWindow

procedure FillNewWindow(s: String)

The external InfoWindow can be filled by using this method.

Example:

FillNewWindow('Hello World');

Will add Hello World to Info Window.

HelpRequest

procedure HelpRequest

Same as pressing button "Help" on paperdoll in client.

PlayWav

function PlayWav(FileName : String) : Boolean

QuestRequest

procedure QuestRequest

Same as pressing button "Quest" on paperdoll in client.

RenameMobile

procedure RenameMobile(Mob_ID : Cardinal; NewName : String)

RequestStats

procedure RequestStats(ObjID : Cardinal)

SetCmdPrefix

procedure SetCmdPrefix(Value : Char);

устанавливает символ-префикс после которого можно ввести команду, по умолчанию «запятая» : ,useobject

SetSilentMode

procedure SetSilentMode(Value : Boolean)

ShowMessage

procedure ShowMessage

Sign

function Sign(constAValue : Integer) : ShortInt;


UseOtherPaperdollScroll

procedure UseOtherPaperdollScroll(ID : Cardinal);

Pd.png

Same as pressing scroll on paperdoll of some (N)PC in client - as marked on picture.


UseSelfPaperdollScroll

procedure UseSelfPaperdollScroll;

Pd.png

Same as pressing scroll on paperdoll in client - as marked on picture.