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.
procedure BookSetText(Text: String);
Parameters:
- Text — full text content for the book. Automatically paginated.
def BookSetText(Text: str) -> None: ...
begin
UseObject(FindItem);
Wait(1000);
BookSetHeader('Rune Book Log', CharName);
BookClearText;
BookSetText('List of rune locations and their coordinates for quick reference.');
end.
UseObject(FindItem())
Wait(1000)
BookSetHeader('Rune Book Log', CharName())
BookClearText()
BookSetText('List of rune locations and their coordinates for quick reference.')
BookSetPageText, BookGetPageText, BookClearText, BookSetHeader