From Stealth Client

Jump to: navigation, search


P

PantsLayer

function PantsLayer():Byte

Returns the layer number 0x04 - Pants(Pants). Example 1:

if ObjAtLayer(PantsLayer) > 0 then 
  AddToSystemJournal('Pants ID:' + IntToStr(ObjAtLayer(PantsLayer)));

Example 2:

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


Paralyzed

function Paralyzed():Boolean

Returns the char - paralysis(Paralyzed).

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

Example 1:

if Paralyzed then
begin
  '' Do something, like cast Cure or drink cure potion''
end;

Example 2:

if(not Paralyzed) then
  AddToSystemJournal('Char is not paralyzed')
else
  AddToSystemJournal('Char paralyzed');

PartyAcceptInvite

procedure PartyAcceptInvite;

Accept a party invite.

PartyCanLootMe

procedure PartyCanLootMe(Value : Boolean);

If Value is True, party members are allowed to loot you.

PartyDeclineInvite

procedure PartyDeclineInvite;

Decline a party invite.

PartyLeave

procedure PartyLeave;

Leave the party you are currently in.

PartyMembersList

function PartyMembersList : TStringList;

Returns the list of party members.

PartyMessageTo

procedure PartyMessageTo(ID : Cardinal; Msg : String);

Send Msg to the member of the party identified by ID.

PartySay

procedure PartySay(Msg : String);

Send Msg to the party chat.

PauseCurrentScript

procedure PauseCurrentScript;

Pause current script.


PetsCurrent

function PetsCurrent():Byte

Returns the char - the number of animals(Pets).

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

Example:

if PetsCurrent > 2 then
  UOSay('I've got more than 2 animals');

PetsMax

function PetsMax() : Byte

Returns the character's maximum number of animals (Pets Maximum).

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

Example:

 if PetsCurrent < PetsMax then
  UOSay('I have room for more pets.');

PlayWav

function PlayWav(FileName : String) : Boolean


PoisonResist

function PoisonResist() : Word

Возвращает параметр чара - сопротивление яду (Poison Resist).

Работает только начиная с версии клиента Samurie Empire + на сервере должен быть включен режим расширенных статов,отсылаемых клиенту, иначе вернет 0.


В случае, если отсутствует соединение с UO сервером - вернет 0.

Пример 1:

if PoisonResist> 0 then
begin
  ''do something, like go home, or drop, etc.
end;

Пример 2:

  AddToSystemJournal('Текущий Poison Resist: ' + IntToStr(PoisonResist))


Poisoned

function Poisoned() : Boolean

Возвращает параметр чара - Отравленность (Poisoned).

В случае, если отсутствует соединение с UO сервером - вернет False.

Пример 1:

if Poisoned then
begin
  ''do something, like cast Cure or drink cure potion
end;

Пример 2:

if (not Poisoned) then
  AddToSystemJournal('Чар не отравлен')
else
  AddToSystemJournal('Чар отравлен');

Power

function Power(Base : Extended;Exponent : Extended) : Extended;

PredictedDirection

function PredictedDirection : Byte;

Предсказанное направление чара.

Uo-directions.png

PredictedX

function PredictedX : Word;

Предсказанная координата X чара.

PredictedY

function PredictedY : Word;

Предсказанная координата Y чара.

PredictedZ

function PredictedZ : ShortInt;

Предсказанная координата Z чара.

PrintScriptMethodsList

procedure PrintScriptMethodsList(FileName : String = ''; SortedList : Boolean = False);

Print all script methods with their params.


Both params are optional. FileName - name of file, where all script methods will be written. SortedList - Sorting of list in ascending order. If not set - disabled.


Example 1 - Simple print of all methods in window:

PrintScriptMethodsList;

Example 2 - Print of all methods with sorting in file '0000.txt' in stealth dir:

PrintScriptMethodsList('0000.txt',True);

ProxyIP

function ProxyIP : String;

ProxyPort

function ProxyPort : Word;