Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetMultis

Returns all multies from Stealth cacher. That can be a boats, simple houses and custom houses.

If no multi found, or uo data files doesn’t loaded, or char disconnected - returns empty array.

Pascal Script:

function GetMultis(var items : TMultiItems) : Cardinal;

DWS:

function GetMultis(var items : TMultiItems) : Cardinal;
function GetMultis : TArray<TMultiItem>;
TMultiItem = record
   ID : Cardinal;
   X : Word;
   Y : Word;
   Z : ShortInt;

   XMin : Word;
   XMax : Word;
   YMin : Word;
   YMax : Word;
   Width : Word;
   Height : Word;
end;

TMultiItems = array of TMultiItem;

Pascal Example:

var  i : Integer;
     ii : TMultiItems;
begin
{$IFDEF DWSCRIPT}
  GetMultis(ii);
  AddToSystemJournal(ii);
{$ELSE}
  GetMultis(ii);
  if Length(ii) > 0 then
    for i := 0 to High(ii) do
      AddToSystemJournal('$' + IntToHex(ii[i].ID,8));
{$ENDIF}
end.

Python Syntax:

def GetMultiAllParts(MultiID): --> dict    # method will be available in stealth 10.3.7