From Stealth Client

Jump to: navigation, search


L

LastContainer

function LastContainer():Cardinal

Returns the char - ID of the last open container(Last Opened Container).

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

Example 1:

if LastContainer <>MyGoldContainer then
begin
  UseObject(MyGoldContainer)
end;

Example 2:

  AddToSystemJournal('The last open container(Last Opened Container):' + IntToStr(LastContainer))

LastJournalMessage

function LastJournalMessage:String

last message in the log

Example:

 

LastTarget

procedure LastTarget

Returns the ID of the last targeted item. Example:

AddToSystemJournal(IntToStr(LastTarget()));


LegsLayer

function LegsLayer():Byte

Returns the layer number 0x18 -Legs Armor).

Example 1:

if ObjAtLayer(LegsLayer) > 0 then 
  AddToSystemJournal('Legs Armor ID:' + IntToStr(ObjAtLayer(LegsLayer)));

Example 2:

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


LhandLayer

function LhandLayer():Byte

Returns the layer number 0x02 - Left Hand(Left Hand).

Look out! ALL-handed an item(axes, etc.) Dress up in your left hand(LhandLayer), despite the image the client paperdola! '

Example 1:

if (getquantity(findtype(tweapon,ground)) > 0) 
    and (gettype(ObjAtLayer(LhandLayer)) <> gettype(finditem)) then 
  begin 
    addtosystemjournal('Weapon Change, left' + inttostr(findcount)); 
    UnEquip(RHandLayer); 
    wait(500); 
    Equip(LhandLayer, finditem); 
  end;

Example 2:

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


Life

function Life():Integer

Same as Doc:Api/HP. Returns the char - healthy(HITS).

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

Example 1:

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

Example 2:

AddToSystemJournal('Health Chara:' + IntToStr(Life));

LineCount

function LineCount:Integer

the number of matches found in the log

LineID

function LineID:Cardinal

ID Chara, who said this phrase

LineIndex

function LineIndex:Integer

Index of last matched string

LineMsgType

function LineMsgType:Byte

type of message

LineName

function LineName:String

the recipient's name

LineTextColor

function LineTextColor:Word

color of the text message

LineTextFont

function LineTextFont:Word

font of the text

LineTime

function LineTime:TDateTime

Date and time of receiving the message

LineType

function LineType:Word

type recipient

Lock States

	statUP 	 = 0
	statDOWN = 1
	statLOCK = 2

LowJournal

function LowJournal:Integer

Junior Index of log lines


Luck

function Luck():Word

Returns the char - Luck(Luck).

This only works from the client version Samurie Empire + on the server must be enabled advanced stats sent to the client, otherwise returns 0.

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

Example:

  AddToSystemJournal('Luck char(Char Luck):' + IntToStr(Luck))