From Stealth Client

Jump to: navigation, search


I

ICQConnect

procedure ICQConnect(UIN,password : String)

ICQConnected

function ICQConnected : Boolean

ICQDisconnect

procedure ICQDisconnect

ICQSendText

procedure ICQSendText(DestinationUIN, Text : String)

ICQSetStatus

procedure ICQSetStatus(Num : Byte)

ICQSetXStatus

procedure ICQSetXStatus(Num : Byte)

IRCConnect

procedure IRCConnect(Host : String;Port : Word);

Connect to IRC server, host&port set in params.


Example:

 if not IRCConnected then
  begin        
    IRCSetNickName('Vizzz');
    IRCConnect('irc.quakenet.org',6667);
    while not IRCConnected do
      wait(300);
  end;   

IRCConnected

function IRCConnected : Boolean;

Status of connection to IRC-Server: True - connected, False - disconnected

Example:

if IRCConnected then
    IRCSay('some1', 'New test from Vizzzz');

IRCDisconnect

procedure IRCDisconnect;

Disconnect from IRC server


Example:

 if not IRCConnected then
  IRCDisconnect;   

IRCJoin

procedure IRCJoin(AChannel : String; AKey : String = '' );

Connect to channel with AChannel name (prefix # is required). Akey is optional param with channel key(password)

Example:

if IRCConnected then
  IRCJoin('#uos');

IRCRaw

procedure IRCRaw(ALine: String);

Send "raw" text to server, including command.

Format: COMAND_NAME value_text

Example of AWAY status

if IRCConnected then
    IRCRaw('AWAY :Games');

Example of channel leaving:

if IRCConnected then
    IRCRaw('PART #uos');

IRCSay

procedure IRCSay(ATarget : String; AMsg : String);

Send channel to user(nick)\channel.

User nickname without prefix, for channel use prefix #

Example of private message:

if IRCConnected then
    IRCSay('some1', 'New test from Vizzzz');


Example of message to channel:

if IRCConnected then
    IRCSay('#uos', 'CH test from Vizzzz');

IRCSetNickName

procedure IRCSetNickName(NickName : String);

Change\set nickname.

Nick must be set before start connect to server, otherwise some server can drop your connection!

Example:

 if not IRCConnected then
  begin        
    IRCSetNickName('Vizzz');
    IRCConnect('irc.quakenet.org',6667);
    while not IRCConnected do
      wait(300);
  end;   

Ignore

procedure Ignore(ObjID:Cardinal)

Adds a ObjID in IgnoreList

As a result, to ignore the reset or restart the script object will not be the functions Doc:Api/FindType, Doc:Api/FindTypeEx and Doc:Api/FindNotoriety

Examples are not required.

IgnoreOff

procedure IgnoreOff(ObjID:Cardinal)

Removes the object ObjID from IgnoreList

After performing the procedure will be the object function Doc:Api/FindType, Doc:Api/FindTypeEx and Doc:Api/FindNotoriety

Examples are not required.

IgnoreReset

procedure IgnoreReset()

Cleans IgnoreList As a result ignorlist completely cleared, and all objects will be functions of the Doc:Api/FindType, Doc:Api/FindTypeEx and Doc:Api/FindNotoriety

Examples are not required.

InJournal

function InJournal(Str:String):Integer

Search the last line in the log for the word(or words)

InJournalBetweenTimes

function InJournalBetweenTimes(Str:String; TimeBegin, TimeEnd:TDateTime):Integer

Search the last line in the log for the word(or words) in the time interval

InParty

function InParty : Boolean;

Return True if current character is in a party.


Int

function Int():Integer

Returns the player's - intelligence(INT).

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

Example 1:

if (Int > 0) then
begin
  '' Do something
end;

Example 2:

AddToSystemJournal('Intelligence Chara:' + IntToStr(Int));

IntToHex

function IntToHex(Value: Integer; Digits: Integer): String;

InviteToParty

procedure InviteToParty(ID : Cardinal);

Invites the given ID to party.


IsActiveSpellAbility

function IsActiveSpellAbility(SpellName : String) : Boolean

Returns True if the SpellName Ability is active

Example:

# Python Example
if IsActiveSpellAbility('Momentum Strike'):
  print('Ready to strike two targets')


IsContainer

function IsContainer(ObjID:Cardinal):Boolean

object parameter:container?


IsDead

function IsDead(ObjID:Cardinal):Boolean

object parameter:dead


IsFemale

function IsFemale(ObjID:Cardinal):Boolean

object parameter:the floor

IsFigureText

function IsFigureText(s: string): boolean

IsGump

function IsGump():Boolean

Returns to the presence of Chara at least one hanging Gump

If there is no connection to the server or UO Gampo not - return False, if there is at least one - True.

Example:

If IsGump then
  if IsGumpCanBeClosed(GetGumpsCount-1) then
    CloseSimpleGump(GetGumpsCount-1);

IsGumpCanBeClosed

function IsGumpCanBeClosed(GumpIndex:Integer):Boolean

Returns the availability of properties Gump - NoClose

If there is no connection to the server or UO given the wrong number Gump - returns False.

If the property is present NoClose - that Gump can NOT be closed with Doc:Api/CloseSimpleGump

Example:

If GetGumpsCount > 0 then
  if GetGumpID(GetGumpsCount-1) = $ 15A7DDF then
    CloseSimpleGump(GetGumpsCount-1);


IsHidden

function IsHidden(ObjID:Cardinal):Boolean

object parameter:hidden?


IsMovable

function IsMovable(ObjID:Cardinal):Boolean

object parameter:movable?


IsNPC

function IsNPC(ObjID:Cardinal):Boolean

parameter is an object:a thing or person?

IsObjectExists

function IsObjectExists(ObjID : Cardinal) : Boolean;

Checks if ObjID exists.


IsPoisoned

function IsPoisoned(ObjID:Cardinal):Boolean

object parameter:poisoned?


IsRunning

function IsRunning(ObjID:Cardinal):Boolean

object parameter:run

IsTrade

function IsTrade : Boolean


IsWarMode

function IsWarMode(ObjID:Cardinal):Boolean

object parameter:war mode

IsWorldCellPassable

function IsWorldCellPassable (CurrX, CurrY : Word; Z : ShortInt; DestX, DestY : Word; var DestZ : ShortInt; WorldNum : Byte) : Boolean

Проверка проходимости точки


IsYellowHits

function IsYellowHits(ObjID:Cardinal):Boolean

object parameter:yellowhits?