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

BookSetText

Sets the entire text of the currently open book. The text is automatically divided into pages according to the book’s page size. Each line is limited to 30 characters; lines exceeding this limit cause the method to abort with a warning.

The book must be opened beforehand (e.g. via UseObject or UseType). If no book is open, the method logs a warning and does nothing. If the book is read-only, the method also logs a warning and does nothing.

To set text on a specific page, use BookSetPageText.

Устанавливает весь текст текущей открытой книги. Текст автоматически разбивается на страницы в соответствии с размером страниц книги. Длина строки ограничена 30 символами; при превышении лимита метод прерывается с предупреждением.

Книга должна быть предварительно открыта (например, через UseObject или UseType). Если книга не открыта, метод выводит предупреждение и ничего не делает. Если книга доступна только для чтения, метод также выводит предупреждение и ничего не делает.

Для установки текста на конкретной странице используйте BookSetPageText.

Pascal

procedure BookSetText(Text: String);

Parameters:

  • Text — full text content for the book. Automatically paginated.

Python

def BookSetText(Text: str) -> None: ...

Pascal Example

begin
  UseObject(FindItem);
  Wait(1000);
  BookSetHeader('Rune Book Log', CharName);
  BookClearText;
  BookSetText('List of rune locations and their coordinates for quick reference.');
end.

Python Example

UseObject(FindItem())
Wait(1000)
BookSetHeader('Rune Book Log', CharName())
BookClearText()
BookSetText('List of rune locations and their coordinates for quick reference.')

See Also

BookSetPageText, BookGetPageText, BookClearText, BookSetHeader