AddToJournal
Adds a text line to the UO journal (the main journal tab, not the system journal).
Messages added via this method are visible in the journal and can be searched with InJournal and InJournalBetweenTimes.
To write to the system journal instead, use AddToSystemJournal.
Добавляет текстовую строку в UO-журнал (основная вкладка журнала, не системный журнал).
Сообщения, добавленные этим методом, видны в журнале и доступны для поиска через InJournal и InJournalBetweenTimes.
Для записи в системный журнал используйте AddToSystemJournal.
procedure AddToJournal(Text: String);
Parameters:
- Text — message text to add to the journal.
def AddToJournal(Text: str) -> None: ...
begin
if GetDistance(unload_container) > 1 then
AddToJournal('Container is too far...')
else
begin
// work here
if (FindType($0DF9, Backpack) = 0) and (FindType($0F95, Backpack) = 0) then
begin
AddToJournal('Processing complete.');
end;
end;
end.
if GetDistance(unload_container) > 1:
AddToJournal('Container is too far...')
else:
if FindType(0x0DF9, Backpack()) == 0 and FindType(0x0F95, Backpack()) == 0:
AddToJournal('Processing complete.')