From Stealth Client

Jump to: navigation, search


A

Abs

function Abs(X:Integer):Cardinal

Returns the absolute value of X.

Example 1:

AddToSystemJournal(IntToStr(Abs(-10)));
AddToSystemJournal(IntToStr(Abs(10)));
AddToSystemJournal(IntToStr(Abs(0)));

The result of:

10
10
0

AddChatUserIgnore

procedure AddChatUserIgnore(Str : String)

AddFigure

function AddFigure(const figure : TMapFigure) : Cardinal;

Takes a TMapFigure and returns the number of figures added.

AddGumpIgnoreByID

procedure AddGumpIgnoreByID(ID : Cardinal);

AddGumpIgnoreBySerial

procedure AddGumpIgnoreBySerial(Serial : Cardinal);

AddJournalIgnore

procedure AddJournalIgnore(Str : String)

AddToDebugJournal

procedure AddToDebugJournal(Text : String);

New in version 6.1.5

AddToJournal

procedure AddToJournal(Text : String);


AddToSystemJournal

procedure AddToSystemJournal(Text:String)

Add a message to the syslog program.(Located at the bottom of the window and called System Journal)

Example:

AddToSystemJournal('Hello');

Alarm

procedure Alarm

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


Armor

function Armor():Word

Returns the char - number of "units" of armor(Armor).

If there is no connection to the UO server - returns 0.

Example:

  AddToSystemJournal('Armor rate:' + IntToStr(Armor))


ArmsLayer

function ArmsLayer():Byte

Returns the layer number 0x13 - Arms(elbows)(Arms)

Example 1:

if ObjAtLayer(ArmsLayer) > 0 then 
  AddToSystemJournal('Arms ID:' + IntToStr(ObjAtLayer(ArmsLayer)));

Example 2:

{If there is something on a layer, then remove}
if ObjAtLayer(ArmsLayer) <> 0 then
  begin
    unequip(ArmsLayer);
    wait(1000);
  end;

Attack

procedure Attack(ObjdID:Cardinal)

Throw an attack on the object ObjdID.

If you are not in War mode, the client can install it before the attack.

Example:

if (WarTargetID <> Enemy) then
  attack(Enemy);

AutoBuy

procedure AutoBuy(ItemType : Word; ItemColor : Word; Quantity : Word)

AutoBuyEx

procedure AutoBuyEx(ItemType : Word; ItemColor : Word; Quantity : Word; Price : Cardinal; Name : String)

AutoMenu

procedure AutoMenu(UP, UC:String)

reusable set a trap on the menu. Works the same as Doc:Api/WaitMenu, the only difference, WaitMenu work out only once, and the trap is removed, AutoMenu - runs continuously.

AutoSell

procedure AutoSell(ItemType : Word; ItemColor : Word; Quantity : Word)