-
Notifications
You must be signed in to change notification settings - Fork 113
Journal Orion Assistant
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
Display the journal content in a text box, linesCount - the number of output lines.
Clear the journal.
Without parameters - clears the whole journal of the assistant; Otherwise it works similarly to InJournal but including deletion.
Enable / disable ignoring the register for searching text in the journal.
JournalMessage Orion.InJournal('pattern', ['flags'], ['serial'=0], ['color'=0xFFFF], [startTime=0, endTime=0]);
Search for data in the journal.
-
- pattern - required string, which can consist of several lines separated via |
-
- flags - search flags in the journal: my/self - search for messages with player's serial; Sys/system - search for messages in the system chat. Can be combined with: 'my|sys'.
-
- serial - search for messages from the object with the specified serial. 0 ignores the filter by serial.
-
- color - search for messages with the specified color. 0xFFFF ignores the filter by color.
-
- startTime - initial time of search. 0 the initial time is ignored.
-
- endTime - the end time of the search. 0 the end time is ignored
Result: object of the type JournalMessage or null if nothing was found.
JournalMessage Orion.WaitJournal('pattern', startTime, endTime, [flags], ['serial'=0], ['color'=0xFFFF]);
Waiting for the appearance of data in the journal.
-
- pattern - required string, which can consist of several lines separated via |
-
- startTime - initial time of search. 0 the initial time is ignored.
-
- endTime - the end time of the search. 0 the end time is ignored
-
- flags - search flags in the journal: my/self - search for messages with player's serial; Sys/system - search for messages in the system chat. Can be combined with: 'my|sys'.
-
- serial - search for messages from the object with the specified serial. 0 ignores the filter by serial.
-
- color - search for messages with the specified color. 0xFFFF ignores the filter by color.
Result: object of the type JournalMessage or null if nothing was found.
Retrieve last message from Orion Assistant journal.
Result: object of the type JournalMessage or null if nothing was found.
Returns: Amount of messages in journal.
Returns JournalMessage by index or null of index wasn't found.