- Database: journals are stored in a
tr_journalstable. If your copy includes a.sqlfile, import it. Otherwise, create the table with:
CREATE TABLE IF NOT EXISTS `tr_journals`
(
`id`
INT
NOT
NULL
AUTO_INCREMENT,
`title`
VARCHAR
(
64
) NOT NULL DEFAULT '',
`pages` LONGTEXT NOT NULL,
`page_max` INT NOT NULL DEFAULT 1,
PRIMARY KEY
(
`id`
)
);
- Items: add these items to your VORP inventory items table (names must match exactly):
| Item | What it is |
|---|---|
journal_blank |
a new, empty journal |
journal_written |
a journal that has been written in (each one is its own journal) |
torn_page |
a page torn out of a journal (readable) |
- Resource: put the
tr-journalfolder in your resources and add it toserver.cfgafter its requirements:
ensure oxmysql
ensure vorp_core
ensure vorp_inventory
ensure jo_libs
ensure tr-journal
- Configure it (see below) and restart the server.
To hand out journals, add journal_blank to a store, a crafting recipe, or a starter kit. Players
never need to be given journal_written or torn_page directly; the script creates those.