Start of documentation
This commit is contained in:
parent
b779a225e1
commit
7f6a8c6bec
23
docs/database/login/README.md
Normal file
23
docs/database/login/README.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Login Database Schema
|
||||||
|
|
||||||
|
## Tables
|
||||||
|
- [account](./account.md)
|
||||||
|
- [appearances](./appearances.md)
|
||||||
|
- [bug_notes](./bug_notes.md)
|
||||||
|
- [bugs](./bugs.md)
|
||||||
|
- [log_messages](./log_messages.md)
|
||||||
|
- [login_bannedips](./login_bannedips.md)
|
||||||
|
- [login_char_colors](./login_char_colors.md)
|
||||||
|
- [login_characters](./login_characters.md)
|
||||||
|
- [login_config](./login_config.md)
|
||||||
|
- [login_equipment](./login_equipment.md)
|
||||||
|
- [login_versions](./login_versions.md)
|
||||||
|
- [login_worldservers](./login_worldservers.md)
|
||||||
|
- [login_worldstats](./login_worldstats.md)
|
||||||
|
- [ls_character_picture](./ls_character_picture.md)
|
||||||
|
- [ls_world_zones](./ls_world_zones.md)
|
||||||
|
- [opcodes](./opcodes.md)
|
||||||
|
- [visual_states](./visual_states.md)
|
||||||
|
- [web_routes](./web_routes.md)
|
||||||
|
- [web_users](./web_users.md)
|
||||||
|
- [zones](./zones.md)
|
24
docs/database/login/account.md
Normal file
24
docs/database/login/account.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
## Table: `account`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `account` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `passwd` (varchar(512), NOT NULL, DEFAULT '')
|
||||||
|
- `ip_address` (varchar(50), NOT NULL, DEFAULT '0')
|
||||||
|
- `email_address` (varchar(50), NOT NULL, DEFAULT 'Unknown')
|
||||||
|
- `created_date` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `key1` (varchar(64), NOT NULL, DEFAULT '0')
|
||||||
|
- `last_update` (timestamp, NOT NULL, DEFAULT current_timestamp() ON UPDATE current_timestamp())
|
||||||
|
- `hack_count` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_client_version` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `account_enabled` (tinyint(1), NOT NULL, DEFAULT 1)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `Name` (`name`)
|
17
docs/database/login/appearances.md
Normal file
17
docs/database/login/appearances.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `appearances`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `appearances` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `appearance_id` (int(10), NOT NULL)
|
||||||
|
- `name` (varchar(250), NOT NULL)
|
||||||
|
- `min_client_version` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `AppIDX` (`appearance_id`)
|
18
docs/database/login/bug_notes.md
Normal file
18
docs/database/login/bug_notes.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `bug_notes`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `bug_notes` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `bug_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `note` (text, DEFAULT NULL)
|
||||||
|
- `author` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `note_date` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `BugIDX` (`bug_id`)
|
33
docs/database/login/bugs.md
Normal file
33
docs/database/login/bugs.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
## Table: `bugs`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `bugs` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `Status` (enum('New','Invalid','Fixed','Server, NOT NULL, DEFAULT 'New')
|
||||||
|
- `world_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `account_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `player` (varchar(64), NOT NULL, DEFAULT ' ')
|
||||||
|
- `category` (varchar(64), NOT NULL, DEFAULT ' ')
|
||||||
|
- `subcategory` (varchar(64), NOT NULL, DEFAULT ' ')
|
||||||
|
- `causes_crash` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `reproducible` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `summary` (varchar(128), NOT NULL, DEFAULT ' ')
|
||||||
|
- `description` (text, NOT NULL)
|
||||||
|
- `version` (varchar(32), NOT NULL, DEFAULT '')
|
||||||
|
- `spawn_name` (varchar(64), NOT NULL, DEFAULT 'N/A')
|
||||||
|
- `spawn_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bug_datetime` (timestamp, NOT NULL, DEFAULT current_timestamp())
|
||||||
|
- `zone_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `assign_to_forum_id` (int(10), DEFAULT 0)
|
||||||
|
- `fixed_by_forum_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `forum_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `post_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `priority` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `bug_updated` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bug_type` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
20
docs/database/login/log_messages.md
Normal file
20
docs/database/login/log_messages.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
## Table: `log_messages`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `log_messages` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `log_time` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `log_type` (text, NOT NULL, DEFAULT '')
|
||||||
|
- `message` (text, NOT NULL)
|
||||||
|
- `account` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `client_data_version` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `log_entry_archived` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `type` (text, DEFAULT NULL)
|
||||||
|
- `name` (text, NOT NULL)
|
||||||
|
- `version` (text, DEFAULT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
12
docs/database/login/login_bannedips.md
Normal file
12
docs/database/login/login_bannedips.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
## Table: `login_bannedips`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `login_bannedips` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `ip` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
22
docs/database/login/login_char_colors.md
Normal file
22
docs/database/login/login_char_colors.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
## Table: `login_char_colors`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `login_char_colors` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (bigint(20), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `login_characters_id` (int(10), NOT NULL)
|
||||||
|
- `signed_value` (tinyint(4), NOT NULL, DEFAULT 0)
|
||||||
|
- `type` (varchar(32), NOT NULL)
|
||||||
|
- `red` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
- `green` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
- `blue` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `id` (`id`)
|
||||||
|
- KEY `id_2` (`id`)
|
||||||
|
- KEY `CharID` (`login_characters_id`)
|
45
docs/database/login/login_characters.md
Normal file
45
docs/database/login/login_characters.md
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
## Table: `login_characters`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `login_characters` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `account_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `server_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `race` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `class` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `gender` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `deity` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `body_size` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `body_age` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `current_zone` (varchar(64), NOT NULL, DEFAULT 'antonica')
|
||||||
|
- `current_zone_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `level` (int(10), NOT NULL, DEFAULT 1)
|
||||||
|
- `tradeskill_class` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `tradeskill_level` (int(10), NOT NULL, DEFAULT 1)
|
||||||
|
- `soga_wing_type` (mediumint(8), NOT NULL)
|
||||||
|
- `soga_chest_type` (mediumint(8), NOT NULL)
|
||||||
|
- `soga_legs_type` (mediumint(8), NOT NULL)
|
||||||
|
- `soga_hair_type` (mediumint(8), NOT NULL)
|
||||||
|
- `soga_facial_hair_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `legs_type` (mediumint(8), NOT NULL)
|
||||||
|
- `chest_type` (mediumint(8), NOT NULL)
|
||||||
|
- `wing_type` (mediumint(8), NOT NULL)
|
||||||
|
- `hair_type` (mediumint(8), NOT NULL)
|
||||||
|
- `facial_hair_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `deleted` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `unix_timestamp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `created_date` (timestamp, NOT NULL, DEFAULT current_timestamp() ON UPDATE current_timestamp())
|
||||||
|
- `last_played` (datetime, NOT NULL, DEFAULT '0000-00-00 00:00:00')
|
||||||
|
- `char_id` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `soga_model_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `model_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `ServerIDX` (`account_id`,`server_id`,`char_id`)
|
13
docs/database/login/login_config.md
Normal file
13
docs/database/login/login_config.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
## Table: `login_config`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `login_config` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `config_name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `config_value` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
24
docs/database/login/login_equipment.md
Normal file
24
docs/database/login/login_equipment.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
## Table: `login_equipment`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `login_equipment` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `login_characters_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `equip_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `red` (tinyint(3), NOT NULL, DEFAULT 255)
|
||||||
|
- `green` (tinyint(3), NOT NULL, DEFAULT 255)
|
||||||
|
- `blue` (tinyint(3), NOT NULL, DEFAULT 255)
|
||||||
|
- `highlight_red` (tinyint(3), NOT NULL, DEFAULT 255)
|
||||||
|
- `highlight_green` (tinyint(3), NOT NULL, DEFAULT 255)
|
||||||
|
- `highlight_blue` (tinyint(3), NOT NULL, DEFAULT 255)
|
||||||
|
- `slot` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_updated` (timestamp, NOT NULL, DEFAULT current_timestamp())
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `CharSlotIDX` (`login_characters_id`,`slot`)
|
15
docs/database/login/login_versions.md
Normal file
15
docs/database/login/login_versions.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Table: `login_versions`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `login_versions` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (smallint(5), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `version` (varchar(30), NOT NULL, DEFAULT '')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `NewIndex` (`version`)
|
44
docs/database/login/login_worldservers.md
Normal file
44
docs/database/login/login_worldservers.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
## Table: `login_worldservers`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `login_worldservers` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(11), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `name` (varchar(250), NOT NULL, DEFAULT '')
|
||||||
|
- `disabled` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `account` (varchar(30), NOT NULL, DEFAULT '')
|
||||||
|
- `chat_shortname` (varchar(20), NOT NULL, DEFAULT '')
|
||||||
|
- `description` (text, NOT NULL)
|
||||||
|
- `server_type` (varchar(15), NOT NULL, DEFAULT '0')
|
||||||
|
- `password` (varchar(256), NOT NULL, DEFAULT '')
|
||||||
|
- `serverop` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `lastseen` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `admin_id` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `greenname` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `showdown` (tinyint(4), NOT NULL, DEFAULT 0)
|
||||||
|
- `chat` (varchar(20), NOT NULL, DEFAULT '0')
|
||||||
|
- `note` (tinytext, NOT NULL)
|
||||||
|
- `ip_address` (varchar(50), NOT NULL, DEFAULT '0')
|
||||||
|
- `reset_needed` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `created_date` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `hide_status` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `hide_details` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `hide_admin` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `hide_serverlist` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `server_url` (varchar(250), DEFAULT '')
|
||||||
|
- `server_category` (enum('Standard','Preferred','Premium','Development'), DEFAULT 'Standard')
|
||||||
|
- `server_admin` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `server_sticky` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `gm_list` (text, DEFAULT NULL)
|
||||||
|
- `reset_zone_descriptions` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `reset_login_appearances` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `login_version` (varchar(32), NOT NULL, DEFAULT '0')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `account` (`account`)
|
||||||
|
- UNIQUE KEY `NameIDX` (`name`)
|
21
docs/database/login/login_worldstats.md
Normal file
21
docs/database/login/login_worldstats.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `login_worldstats`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `login_worldstats` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(11), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `world_id` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `world_status` (int(11), NOT NULL, DEFAULT -1)
|
||||||
|
- `current_players` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `current_zones` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `connected_time` (timestamp, NOT NULL, DEFAULT current_timestamp())
|
||||||
|
- `last_update` (timestamp, NOT NULL, DEFAULT '0000-00-00 00:00:00')
|
||||||
|
- `world_max_level` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `NewIndex` (`world_id`)
|
18
docs/database/login/ls_character_picture.md
Normal file
18
docs/database/login/ls_character_picture.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `ls_character_picture`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `ls_character_picture` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `server_id` (int(10), NOT NULL)
|
||||||
|
- `account_id` (int(10), NOT NULL)
|
||||||
|
- `character_id` (int(10), NOT NULL)
|
||||||
|
- `picture` (text, NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `character_id` (`character_id`,`server_id`,`account_id`)
|
20
docs/database/login/ls_world_zones.md
Normal file
20
docs/database/login/ls_world_zones.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
## Table: `ls_world_zones`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `ls_world_zones` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `server_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `zone_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(128), NOT NULL, DEFAULT '')
|
||||||
|
- `description` (varchar(128), NOT NULL, DEFAULT '')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `id` (`id`)
|
||||||
|
- UNIQUE KEY `IDXServerZone` (`server_id`,`zone_id`)
|
||||||
|
- KEY `id_2` (`id`)
|
19
docs/database/login/opcodes.md
Normal file
19
docs/database/login/opcodes.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `opcodes`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `opcodes` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `version_range1` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `version_range2` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(255), NOT NULL, DEFAULT '')
|
||||||
|
- `opcode` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `table_data_version` (smallint(5), NOT NULL, DEFAULT 1)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `newindex` (`version_range1`,`name`,`version_range2`)
|
17
docs/database/login/visual_states.md
Normal file
17
docs/database/login/visual_states.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `visual_states`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `visual_states` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `visual_state_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(250), NOT NULL, DEFAULT 'None')
|
||||||
|
- `min_client_version` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `VisIDX` (`visual_state_id`)
|
9
docs/database/login/web_routes.md
Normal file
9
docs/database/login/web_routes.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
## Table: `web_routes`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `web_routes` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `status` (int(10), NOT NULL, DEFAULT 4294967295)
|
||||||
|
- `route` (varchar(512), NOT NULL, DEFAULT '')
|
14
docs/database/login/web_users.md
Normal file
14
docs/database/login/web_users.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
## Table: `web_users`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `web_users` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `username` (varchar(50), NOT NULL, DEFAULT '')
|
||||||
|
- `passwd` (varchar(512), NOT NULL, DEFAULT '')
|
||||||
|
- `status` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
46
docs/database/login/zones.md
Normal file
46
docs/database/login/zones.md
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
## Table: `zones`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `zones` table in the Login database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(11), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `expansion_id` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `file` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `description` (varchar(255), NOT NULL, DEFAULT 'Describe me in the zones table! :)')
|
||||||
|
- `safe_x` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `safe_y` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `safe_z` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `safe_heading` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `underworld` (float, NOT NULL, DEFAULT -1000000)
|
||||||
|
- `xp_modifier` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `min_recommended` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_recommended` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `zone_type` (varchar(64), DEFAULT '')
|
||||||
|
- `always_loaded` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `city_zone` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `weather_allowed` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `min_status` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `min_level` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_level` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `start_zone` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `instance_type` (enum('NONE','GROUP_LOCKOUT_INSTANCE','GROUP_PERSIST_INSTANCE','RAID_LOCKOUT_INSTANCE','RAID_PERSIST_INSTANCE','SOLO_LOCKOUT_INSTANCE','SOLO_PERSIST_INSTANCE','TRADESKILL_INSTANCE','PUBLIC_INSTANCE','PERSONAL_HOUSE_INSTANCE','GUILD_HOUSE_INSTANCE'), NOT NULL, DEFAULT 'NONE')
|
||||||
|
- `default_reenter_time` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `default_reset_time` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `default_lockout_time` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `force_group_to_zone` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `lua_script` (varchar(255), DEFAULT '')
|
||||||
|
- `shutdown_timer` (int(10), NOT NULL, DEFAULT 300 COMMENT 'In seconds') → In seconds
|
||||||
|
- `zone_motd` (varchar(250), DEFAULT '')
|
||||||
|
- `ruleset_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `login_checksum` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `sky_file` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `NewIndex` (`name`)
|
||||||
|
- KEY `ZoneDescIDX` (`description`)
|
233
docs/database/world/README.md
Normal file
233
docs/database/world/README.md
Normal file
@ -0,0 +1,233 @@
|
|||||||
|
# World Database Schema
|
||||||
|
|
||||||
|
## Tables
|
||||||
|
- [achievements](./achievements.md)
|
||||||
|
- [achievements_requirements](./achievements_requirements.md)
|
||||||
|
- [achievements_rewards](./achievements_rewards.md)
|
||||||
|
- [appearances](./appearances.md)
|
||||||
|
- [bot_appearance](./bot_appearance.md)
|
||||||
|
- [bot_equipment](./bot_equipment.md)
|
||||||
|
- [bots](./bots.md)
|
||||||
|
- [broker_item_map](./broker_item_map.md)
|
||||||
|
- [bugs](./bugs.md)
|
||||||
|
- [channels](./channels.md)
|
||||||
|
- [char_colors](./char_colors.md)
|
||||||
|
- [character_aa](./character_aa.md)
|
||||||
|
- [character_aa_defaults](./character_aa_defaults.md)
|
||||||
|
- [character_achievements](./character_achievements.md)
|
||||||
|
- [character_achievements_items](./character_achievements_items.md)
|
||||||
|
- [character_buyback](./character_buyback.md)
|
||||||
|
- [character_claim_items](./character_claim_items.md)
|
||||||
|
- [character_collection_items](./character_collection_items.md)
|
||||||
|
- [character_collections](./character_collections.md)
|
||||||
|
- [character_details](./character_details.md)
|
||||||
|
- [character_factions](./character_factions.md)
|
||||||
|
- [character_history](./character_history.md)
|
||||||
|
- [character_house_deposits](./character_house_deposits.md)
|
||||||
|
- [character_house_history](./character_house_history.md)
|
||||||
|
- [character_houses](./character_houses.md)
|
||||||
|
- [character_instances](./character_instances.md)
|
||||||
|
- [character_items](./character_items.md)
|
||||||
|
- [character_items_group_members](./character_items_group_members.md)
|
||||||
|
- [character_languages](./character_languages.md)
|
||||||
|
- [character_lua_history](./character_lua_history.md)
|
||||||
|
- [character_macros](./character_macros.md)
|
||||||
|
- [character_mail](./character_mail.md)
|
||||||
|
- [character_pictures](./character_pictures.md)
|
||||||
|
- [character_properties](./character_properties.md)
|
||||||
|
- [character_quest_progress](./character_quest_progress.md)
|
||||||
|
- [character_quest_rewards](./character_quest_rewards.md)
|
||||||
|
- [character_quest_temporary_rewards](./character_quest_temporary_rewards.md)
|
||||||
|
- [character_quests](./character_quests.md)
|
||||||
|
- [character_recipe_books](./character_recipe_books.md)
|
||||||
|
- [character_recipes](./character_recipes.md)
|
||||||
|
- [character_skillbar](./character_skillbar.md)
|
||||||
|
- [character_skills](./character_skills.md)
|
||||||
|
- [character_social](./character_social.md)
|
||||||
|
- [character_spell_effect_targets](./character_spell_effect_targets.md)
|
||||||
|
- [character_spell_effects](./character_spell_effects.md)
|
||||||
|
- [character_spells](./character_spells.md)
|
||||||
|
- [character_spirit_shards](./character_spirit_shards.md)
|
||||||
|
- [character_titles](./character_titles.md)
|
||||||
|
- [characters](./characters.md)
|
||||||
|
- [charactersproperties](./charactersproperties.md)
|
||||||
|
- [chest_traps](./chest_traps.md)
|
||||||
|
- [claim_items](./claim_items.md)
|
||||||
|
- [collection_details](./collection_details.md)
|
||||||
|
- [collection_rewards](./collection_rewards.md)
|
||||||
|
- [collections](./collections.md)
|
||||||
|
- [commands](./commands.md)
|
||||||
|
- [dbeditor_log](./dbeditor_log.md)
|
||||||
|
- [dialog_flavors](./dialog_flavors.md)
|
||||||
|
- [dialog_npcs](./dialog_npcs.md)
|
||||||
|
- [dialog_play_flavors](./dialog_play_flavors.md)
|
||||||
|
- [dialog_play_voices](./dialog_play_voices.md)
|
||||||
|
- [dialog_responses](./dialog_responses.md)
|
||||||
|
- [dialog_text](./dialog_text.md)
|
||||||
|
- [dialog_voiceovers](./dialog_voiceovers.md)
|
||||||
|
- [dialogs](./dialogs.md)
|
||||||
|
- [emotes](./emotes.md)
|
||||||
|
- [entity_commands](./entity_commands.md)
|
||||||
|
- [eq2classes](./eq2classes.md)
|
||||||
|
- [eq2expansions](./eq2expansions.md)
|
||||||
|
- [eq2gm](./eq2gm.md)
|
||||||
|
- [eq2models](./eq2models.md)
|
||||||
|
- [eq2races](./eq2races.md)
|
||||||
|
- [exp_per_level](./exp_per_level.md)
|
||||||
|
- [faction_alliances](./faction_alliances.md)
|
||||||
|
- [factions](./factions.md)
|
||||||
|
- [failed_jobs](./failed_jobs.md)
|
||||||
|
- [flight_paths](./flight_paths.md)
|
||||||
|
- [flight_paths_locations](./flight_paths_locations.md)
|
||||||
|
- [groundspawn_items](./groundspawn_items.md)
|
||||||
|
- [groundspawns](./groundspawns.md)
|
||||||
|
- [guild_colors](./guild_colors.md)
|
||||||
|
- [guild_event_defaults](./guild_event_defaults.md)
|
||||||
|
- [guild_event_filters](./guild_event_filters.md)
|
||||||
|
- [guild_events](./guild_events.md)
|
||||||
|
- [guild_members](./guild_members.md)
|
||||||
|
- [guild_points_history](./guild_points_history.md)
|
||||||
|
- [guild_ranks](./guild_ranks.md)
|
||||||
|
- [guild_ranks_defaults](./guild_ranks_defaults.md)
|
||||||
|
- [guild_recruiting](./guild_recruiting.md)
|
||||||
|
- [guilds](./guilds.md)
|
||||||
|
- [heroic_ops](./heroic_ops.md)
|
||||||
|
- [ho_starter_chains](./ho_starter_chains.md)
|
||||||
|
- [ho_wheel](./ho_wheel.md)
|
||||||
|
- [houses](./houses.md)
|
||||||
|
- [instance_spawns_removed](./instance_spawns_removed.md)
|
||||||
|
- [instances](./instances.md)
|
||||||
|
- [item_appearances](./item_appearances.md)
|
||||||
|
- [item_classifications](./item_classifications.md)
|
||||||
|
- [item_details_achievement_profile](./item_details_achievement_profile.md)
|
||||||
|
- [item_details_adornments](./item_details_adornments.md)
|
||||||
|
- [item_details_armor](./item_details_armor.md)
|
||||||
|
- [item_details_armorset](./item_details_armorset.md)
|
||||||
|
- [item_details_bag](./item_details_bag.md)
|
||||||
|
- [item_details_bauble](./item_details_bauble.md)
|
||||||
|
- [item_details_book](./item_details_book.md)
|
||||||
|
- [item_details_book_pages](./item_details_book_pages.md)
|
||||||
|
- [item_details_decorations](./item_details_decorations.md)
|
||||||
|
- [item_details_food](./item_details_food.md)
|
||||||
|
- [item_details_house](./item_details_house.md)
|
||||||
|
- [item_details_house_container](./item_details_house_container.md)
|
||||||
|
- [item_details_itemset](./item_details_itemset.md)
|
||||||
|
- [item_details_marketplace](./item_details_marketplace.md)
|
||||||
|
- [item_details_pattern](./item_details_pattern.md)
|
||||||
|
- [item_details_range](./item_details_range.md)
|
||||||
|
- [item_details_recipe](./item_details_recipe.md)
|
||||||
|
- [item_details_recipe_items](./item_details_recipe_items.md)
|
||||||
|
- [item_details_reward_crate](./item_details_reward_crate.md)
|
||||||
|
- [item_details_reward_crate_item](./item_details_reward_crate_item.md)
|
||||||
|
- [item_details_reward_voucher](./item_details_reward_voucher.md)
|
||||||
|
- [item_details_shield](./item_details_shield.md)
|
||||||
|
- [item_details_skill](./item_details_skill.md)
|
||||||
|
- [item_details_skills](./item_details_skills.md)
|
||||||
|
- [item_details_thrown](./item_details_thrown.md)
|
||||||
|
- [item_details_weapon](./item_details_weapon.md)
|
||||||
|
- [item_effects](./item_effects.md)
|
||||||
|
- [item_itemset_bonus](./item_itemset_bonus.md)
|
||||||
|
- [item_itemset_bonus_effects](./item_itemset_bonus_effects.md)
|
||||||
|
- [item_itemset_bonus_stats](./item_itemset_bonus_stats.md)
|
||||||
|
- [item_itemset_items](./item_itemset_items.md)
|
||||||
|
- [item_itemsets](./item_itemsets.md)
|
||||||
|
- [item_levels_override](./item_levels_override.md)
|
||||||
|
- [item_mod_stats](./item_mod_stats.md)
|
||||||
|
- [item_mod_strings](./item_mod_strings.md)
|
||||||
|
- [item_pvp_link](./item_pvp_link.md)
|
||||||
|
- [item_stat_subtypes](./item_stat_subtypes.md)
|
||||||
|
- [item_stat_types](./item_stat_types.md)
|
||||||
|
- [item_stats](./item_stats.md)
|
||||||
|
- [items](./items.md)
|
||||||
|
- [itemstats](./itemstats.md)
|
||||||
|
- [languages](./languages.md)
|
||||||
|
- [location_details](./location_details.md)
|
||||||
|
- [locations](./locations.md)
|
||||||
|
- [log_messages](./log_messages.md)
|
||||||
|
- [loot_global](./loot_global.md)
|
||||||
|
- [lootdrop](./lootdrop.md)
|
||||||
|
- [loottable](./loottable.md)
|
||||||
|
- [map_data](./map_data.md)
|
||||||
|
- [merchant_inventory](./merchant_inventory.md)
|
||||||
|
- [merchant_multipliers](./merchant_multipliers.md)
|
||||||
|
- [merchants](./merchants.md)
|
||||||
|
- [name_filter](./name_filter.md)
|
||||||
|
- [npc_appearance](./npc_appearance.md)
|
||||||
|
- [npc_appearance_equip](./npc_appearance_equip.md)
|
||||||
|
- [opcodes](./opcodes.md)
|
||||||
|
- [password_resets](./password_resets.md)
|
||||||
|
- [persisted_respawns](./persisted_respawns.md)
|
||||||
|
- [quest_details](./quest_details.md)
|
||||||
|
- [quest_reward_reqs](./quest_reward_reqs.md)
|
||||||
|
- [quests](./quests.md)
|
||||||
|
- [race_types](./race_types.md)
|
||||||
|
- [raw_sell_prices](./raw_sell_prices.md)
|
||||||
|
- [recipe](./recipe.md)
|
||||||
|
- [recipe_comp_list](./recipe_comp_list.md)
|
||||||
|
- [recipe_comp_list_item](./recipe_comp_list_item.md)
|
||||||
|
- [recipe_components](./recipe_components.md)
|
||||||
|
- [recipe_products](./recipe_products.md)
|
||||||
|
- [recipe_secondary_comp](./recipe_secondary_comp.md)
|
||||||
|
- [recipes](./recipes.md)
|
||||||
|
- [reference_spell_effects](./reference_spell_effects.md)
|
||||||
|
- [revive_points](./revive_points.md)
|
||||||
|
- [ruleset_details](./ruleset_details.md)
|
||||||
|
- [rulesets](./rulesets.md)
|
||||||
|
- [skills](./skills.md)
|
||||||
|
- [spawn](./spawn.md)
|
||||||
|
- [spawn_ground](./spawn_ground.md)
|
||||||
|
- [spawn_instance_data](./spawn_instance_data.md)
|
||||||
|
- [spawn_location_entry](./spawn_location_entry.md)
|
||||||
|
- [spawn_location_group](./spawn_location_group.md)
|
||||||
|
- [spawn_location_group_associations](./spawn_location_group_associations.md)
|
||||||
|
- [spawn_location_group_chances](./spawn_location_group_chances.md)
|
||||||
|
- [spawn_location_name](./spawn_location_name.md)
|
||||||
|
- [spawn_location_placement](./spawn_location_placement.md)
|
||||||
|
- [spawn_loot](./spawn_loot.md)
|
||||||
|
- [spawn_npc_equipment](./spawn_npc_equipment.md)
|
||||||
|
- [spawn_npc_skills](./spawn_npc_skills.md)
|
||||||
|
- [spawn_npc_spell_lists](./spawn_npc_spell_lists.md)
|
||||||
|
- [spawn_npc_spells](./spawn_npc_spells.md)
|
||||||
|
- [spawn_npcs](./spawn_npcs.md)
|
||||||
|
- [spawn_objects](./spawn_objects.md)
|
||||||
|
- [spawn_pet_names](./spawn_pet_names.md)
|
||||||
|
- [spawn_scripts](./spawn_scripts.md)
|
||||||
|
- [spawn_signs](./spawn_signs.md)
|
||||||
|
- [spawn_templates](./spawn_templates.md)
|
||||||
|
- [spawn_widgets](./spawn_widgets.md)
|
||||||
|
- [spell_aa_class_list](./spell_aa_class_list.md)
|
||||||
|
- [spell_aa_list](./spell_aa_list.md)
|
||||||
|
- [spell_aa_nodelist](./spell_aa_nodelist.md)
|
||||||
|
- [spell_aa_tablist](./spell_aa_tablist.md)
|
||||||
|
- [spell_classes](./spell_classes.md)
|
||||||
|
- [spell_data](./spell_data.md)
|
||||||
|
- [spell_display_effects](./spell_display_effects.md)
|
||||||
|
- [spell_error_versions](./spell_error_versions.md)
|
||||||
|
- [spell_tiers](./spell_tiers.md)
|
||||||
|
- [spell_traits](./spell_traits.md)
|
||||||
|
- [spell_ts_ability_index](./spell_ts_ability_index.md)
|
||||||
|
- [spell_visuals](./spell_visuals.md)
|
||||||
|
- [spells](./spells.md)
|
||||||
|
- [starting_details](./starting_details.md)
|
||||||
|
- [starting_factions](./starting_factions.md)
|
||||||
|
- [starting_items](./starting_items.md)
|
||||||
|
- [starting_languages](./starting_languages.md)
|
||||||
|
- [starting_skillbar](./starting_skillbar.md)
|
||||||
|
- [starting_skills](./starting_skills.md)
|
||||||
|
- [starting_spells](./starting_spells.md)
|
||||||
|
- [starting_titles](./starting_titles.md)
|
||||||
|
- [starting_zones](./starting_zones.md)
|
||||||
|
- [statistics](./statistics.md)
|
||||||
|
- [table_versions](./table_versions.md)
|
||||||
|
- [titles](./titles.md)
|
||||||
|
- [tradeskillevents](./tradeskillevents.md)
|
||||||
|
- [transmuting](./transmuting.md)
|
||||||
|
- [transport_maps](./transport_maps.md)
|
||||||
|
- [transporters](./transporters.md)
|
||||||
|
- [variables](./variables.md)
|
||||||
|
- [versioned_spell_errors](./versioned_spell_errors.md)
|
||||||
|
- [visual_states](./visual_states.md)
|
||||||
|
- [voiceovers](./voiceovers.md)
|
||||||
|
- [web_routes](./web_routes.md)
|
||||||
|
- [web_users](./web_users.md)
|
||||||
|
- [zones](./zones.md)
|
27
docs/database/world/achievements.md
Normal file
27
docs/database/world/achievements.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
## Table: `achievements`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `achievements` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `achievement_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `title` (varchar(50), NOT NULL)
|
||||||
|
- `uncompleted_text` (varchar(255), DEFAULT NULL)
|
||||||
|
- `completed_text` (varchar(255), DEFAULT NULL)
|
||||||
|
- `category` (varchar(50), DEFAULT NULL)
|
||||||
|
- `expansion` (varchar(50), DEFAULT NULL)
|
||||||
|
- `icon` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `point_value` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `qty_req` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `hide_achievement` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `unknown3a` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `unknown3b` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_version` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `AchievementTitleIDX` (`achievement_id`,`title`)
|
19
docs/database/world/achievements_requirements.md
Normal file
19
docs/database/world/achievements_requirements.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `achievements_requirements`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `achievements_requirements` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `achievement_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(250), DEFAULT NULL)
|
||||||
|
- `qty_req` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `AchievementNameIDX` (`name`)
|
||||||
|
- KEY `FK_achievement_requirements` (`achievement_id`)
|
||||||
|
- CONSTRAINT `FK_achievement_requirements` FOREIGN KEY (`achievement_id`) REFERENCES `achievements` (`achievement_id`) ON UPDATE CASCADE
|
17
docs/database/world/achievements_rewards.md
Normal file
17
docs/database/world/achievements_rewards.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `achievements_rewards`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `achievements_rewards` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `achievement_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `reward` (varchar(250), DEFAULT '"')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `AchievementRewardIDX` (`achievement_id`,`reward`)
|
||||||
|
- CONSTRAINT `FK_achievement_rewards` FOREIGN KEY (`achievement_id`) REFERENCES `achievements` (`achievement_id`) ON UPDATE CASCADE
|
17
docs/database/world/appearances.md
Normal file
17
docs/database/world/appearances.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `appearances`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `appearances` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `appearance_id` (int(10), NOT NULL)
|
||||||
|
- `name` (varchar(250), NOT NULL)
|
||||||
|
- `min_client_version` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `AppIDX` (`appearance_id`)
|
21
docs/database/world/bot_appearance.md
Normal file
21
docs/database/world/bot_appearance.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `bot_appearance`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `bot_appearance` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `bot_id` (int(10), NOT NULL)
|
||||||
|
- `signed_value` (tinyint(4), NOT NULL, DEFAULT 0)
|
||||||
|
- `type` (varchar(32), NOT NULL)
|
||||||
|
- `red` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
- `green` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
- `blue` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `bot_id_type` (`bot_id`,`type`)
|
||||||
|
- CONSTRAINT `FK_bot_id` FOREIGN KEY (`bot_id`) REFERENCES `bots` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
18
docs/database/world/bot_equipment.md
Normal file
18
docs/database/world/bot_equipment.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `bot_equipment`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `bot_equipment` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `bot_id` (int(10), NOT NULL)
|
||||||
|
- `slot` (tinyint(3), NOT NULL)
|
||||||
|
- `item_id` (int(11), NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `bot_id_slot` (`bot_id`,`slot`)
|
||||||
|
- CONSTRAINT `FK__bots` FOREIGN KEY (`bot_id`) REFERENCES `bots` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
30
docs/database/world/bots.md
Normal file
30
docs/database/world/bots.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
## Table: `bots`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `bots` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL)
|
||||||
|
- `bot_id` (int(10), NOT NULL)
|
||||||
|
- `name` (varchar(64), NOT NULL)
|
||||||
|
- `race` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `class` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `gender` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `model_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `hair_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `face_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `wing_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `chest_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `legs_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `soga_model_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `soga_hair_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `soga_face_type` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `char_id_bot_id` (`char_id`,`bot_id`)
|
||||||
|
- CONSTRAINT `FK_char_id` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
11
docs/database/world/broker_item_map.md
Normal file
11
docs/database/world/broker_item_map.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
## Table: `broker_item_map`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `broker_item_map` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `version_range1` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `version_range2` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `client_bitmask` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
- `server_bitmask` (bigint(20), NOT NULL, DEFAULT 0)
|
27
docs/database/world/bugs.md
Normal file
27
docs/database/world/bugs.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
## Table: `bugs`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `bugs` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `account_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `player` (varchar(64), NOT NULL, DEFAULT ' ')
|
||||||
|
- `category` (varchar(64), NOT NULL, DEFAULT ' ')
|
||||||
|
- `subcategory` (varchar(64), NOT NULL, DEFAULT ' ')
|
||||||
|
- `causes_crash` (varchar(64), NOT NULL, DEFAULT ' ')
|
||||||
|
- `reproducible` (varchar(64), NOT NULL, DEFAULT ' ')
|
||||||
|
- `summary` (varchar(128), NOT NULL, DEFAULT ' ')
|
||||||
|
- `description` (text, NOT NULL)
|
||||||
|
- `version` (varchar(32), NOT NULL, DEFAULT ' ')
|
||||||
|
- `spawn_name` (varchar(64), NOT NULL, DEFAULT 'N/A')
|
||||||
|
- `spawn_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bug_datetime` (timestamp, NOT NULL, DEFAULT current_timestamp())
|
||||||
|
- `zone_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `copied` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `dbversion` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `worldversion` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
19
docs/database/world/channels.md
Normal file
19
docs/database/world/channels.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `channels`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `channels` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `name` (varchar(128), NOT NULL)
|
||||||
|
- `password` (varchar(128), DEFAULT NULL)
|
||||||
|
- `level_restriction` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `classes` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
- `races` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `uk_channels_name` (`name`)
|
21
docs/database/world/char_colors.md
Normal file
21
docs/database/world/char_colors.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `char_colors`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `char_colors` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (bigint(20), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL)
|
||||||
|
- `signed_value` (tinyint(4), NOT NULL, DEFAULT 0)
|
||||||
|
- `type` (varchar(32), NOT NULL)
|
||||||
|
- `red` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
- `green` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
- `blue` (smallint(6), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_char_colors` (`char_id`)
|
||||||
|
- CONSTRAINT `FK_char_colors` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
21
docs/database/world/character_aa.md
Normal file
21
docs/database/world/character_aa.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `character_aa`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_aa` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (bigint(20), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL)
|
||||||
|
- `template_id` (smallint(5), NOT NULL)
|
||||||
|
- `tab_id` (tinyint(3), NOT NULL)
|
||||||
|
- `aa_id` (int(10), NOT NULL)
|
||||||
|
- `order` (smallint(5), NOT NULL)
|
||||||
|
- `treeid` (tinyint(3), NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FX_char` (`char_id`)
|
||||||
|
- CONSTRAINT `FX_char` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
17
docs/database/world/character_aa_defaults.md
Normal file
17
docs/database/world/character_aa_defaults.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `character_aa_defaults`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_aa_defaults` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (bigint(20), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `class` (int(10), NOT NULL)
|
||||||
|
- `template_id` (smallint(5), NOT NULL)
|
||||||
|
- `tab_id` (tinyint(3), NOT NULL)
|
||||||
|
- `aa_id` (int(10), NOT NULL)
|
||||||
|
- `order` (smallint(5), NOT NULL)
|
||||||
|
- `treeid` (tinyint(3), NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
18
docs/database/world/character_achievements.md
Normal file
18
docs/database/world/character_achievements.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `character_achievements`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_achievements` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `achievement_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `completed_date` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_character_achievements` (`char_id`)
|
||||||
|
- CONSTRAINT `FK_character_achievements` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON UPDATE CASCADE
|
14
docs/database/world/character_achievements_items.md
Normal file
14
docs/database/world/character_achievements_items.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
## Table: `character_achievements_items`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_achievements_items` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `achievement_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `items` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
19
docs/database/world/character_buyback.md
Normal file
19
docs/database/world/character_buyback.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `character_buyback`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_buyback` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `item_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `quantity` (smallint(5), NOT NULL, DEFAULT 1)
|
||||||
|
- `price` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_character_buyback` (`char_id`)
|
||||||
|
- CONSTRAINT `FK_character_buyback` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
19
docs/database/world/character_claim_items.md
Normal file
19
docs/database/world/character_claim_items.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `character_claim_items`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_claim_items` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), DEFAULT 0)
|
||||||
|
- `account_id` (int(10), DEFAULT 0)
|
||||||
|
- `item_id` (int(10), DEFAULT 0)
|
||||||
|
- `max_claim` (int(10), DEFAULT 0)
|
||||||
|
- `curr_claim` (int(10), DEFAULT 0)
|
||||||
|
- `one_per_char` (int(11), DEFAULT 0)
|
||||||
|
- `last_claim` (bigint(20), DEFAULT 0)
|
||||||
|
- `veteran_reward_time` (bigint(20), DEFAULT 0 COMMENT 'account age in seconds') → account age in seconds
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
23
docs/database/world/character_collection_items.md
Normal file
23
docs/database/world/character_collection_items.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Table: `character_collection_items`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_collection_items` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL)
|
||||||
|
- `collection_id` (int(10), NOT NULL)
|
||||||
|
- `collection_item_id` (int(10), NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `uk_charactercollectionitems` (`char_id`,`collection_id`,`collection_item_id`)
|
||||||
|
- KEY `fk_charactercollectionitems_collectionid` (`collection_id`)
|
||||||
|
- KEY `fk_charactercollectionitems_collectionitemid` (`collection_item_id`)
|
||||||
|
- CONSTRAINT `FK_char_col_items` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `fk_charactercollectionitems_charid` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `fk_charactercollectionitems_collectionid` FOREIGN KEY (`collection_id`) REFERENCES `collections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `fk_charactercollectionitems_collectionitemid` FOREIGN KEY (`collection_item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
21
docs/database/world/character_collections.md
Normal file
21
docs/database/world/character_collections.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `character_collections`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_collections` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL)
|
||||||
|
- `collection_id` (int(10), NOT NULL)
|
||||||
|
- `completed` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `uk_charactercollections` (`char_id`,`collection_id`)
|
||||||
|
- KEY `fk_charactercollections_collectionid` (`collection_id`)
|
||||||
|
- CONSTRAINT `FK_character_collections` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `fk_charactercollections_charid` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `fk_charactercollections_collectionid` FOREIGN KEY (`collection_id`) REFERENCES `collections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
87
docs/database/world/character_details.md
Normal file
87
docs/database/world/character_details.md
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
## Table: `character_details`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_details` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `hp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `power` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `savagery` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `dissonance` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_concentration` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `attack` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `mitigation` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `avoidance` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `parry` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `deflection` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `block` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `str` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `sta` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `agi` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `wis` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `intel` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `heat` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `cold` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `magic` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `mental` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `divine` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `disease` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `poison` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `elemental` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `arcane` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `noxious` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `coin_copper` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `coin_silver` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `coin_gold` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `coin_plat` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `pet_name` (varchar(32), NOT NULL, DEFAULT 'No Pet')
|
||||||
|
- `status_points` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_power` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_hp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_savagery` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_dissonance` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `xp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `xp_needed` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `xp_debt` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `xp_vitality` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `tradeskill_xp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `tradeskill_xp_needed` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `tradeskill_xp_debt` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `tradeskill_xp_vitality` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `bank_copper` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bank_silver` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bank_gold` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bank_plat` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bind_zone_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bind_x` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `bind_y` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `bind_z` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `bind_heading` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `house_zone_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `combat_voice` (smallint(5), NOT NULL, DEFAULT 52)
|
||||||
|
- `emote_voice` (smallint(5), NOT NULL, DEFAULT 1060)
|
||||||
|
- `biography` (varchar(512), NOT NULL, DEFAULT '')
|
||||||
|
- `flags` (int(10), NOT NULL, DEFAULT 301465665)
|
||||||
|
- `flags2` (int(10), NOT NULL, DEFAULT 131112)
|
||||||
|
- `prefix_title` (int(10), NOT NULL, DEFAULT -1)
|
||||||
|
- `suffix_title` (int(10), NOT NULL, DEFAULT -1)
|
||||||
|
- `current_language` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `assigned_aa` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `unassigned_aa` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `tradeskill_aa` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `unassigned_tradeskill_aa` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `prestige_aa` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `unassigned_prestige_aa` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `tradeskill_prestige_aa` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `unassigned_tradeskill_prestige_aa` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `CharIDX` (`char_id`)
|
||||||
|
- CONSTRAINT `FK_character_details` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
20
docs/database/world/character_factions.md
Normal file
20
docs/database/world/character_factions.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
## Table: `character_factions`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_factions` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `faction_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `faction_level` (mediumint(9), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `NewIndex` (`char_id`,`faction_id`)
|
||||||
|
- KEY `FK_factions` (`faction_id`)
|
||||||
|
- CONSTRAINT `FK_character_factions` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_factions` FOREIGN KEY (`faction_id`) REFERENCES `factions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
24
docs/database/world/character_history.md
Normal file
24
docs/database/world/character_history.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
## Table: `character_history`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_history` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `type` (enum('None','Death','Discovery','XP'), NOT NULL, DEFAULT 'None')
|
||||||
|
- `subtype` (enum('None','Adventure','Tradeskill','Quest','AA','Item','Location'), NOT NULL, DEFAULT 'None')
|
||||||
|
- `value` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `value2` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `location` (varchar(200), DEFAULT '')
|
||||||
|
- `event_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `event_date` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `char_id` (`char_id`,`type`,`subtype`,`value`)
|
||||||
|
- KEY `CharHistoryIDX` (`char_id`,`type`,`subtype`)
|
||||||
|
- CONSTRAINT `FK_character_history` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
15
docs/database/world/character_house_deposits.md
Normal file
15
docs/database/world/character_house_deposits.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Table: `character_house_deposits`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_house_deposits` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `timestamp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `house_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `instance_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `amount` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_amount` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
- `status` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_status` (int(10), NOT NULL, DEFAULT 0)
|
15
docs/database/world/character_house_history.md
Normal file
15
docs/database/world/character_house_history.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Table: `character_house_history`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_house_history` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `timestamp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `house_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `instance_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `reason` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `amount` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
- `status` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `pos_flag` (tinyint(1), NOT NULL, DEFAULT 0)
|
21
docs/database/world/character_houses.md
Normal file
21
docs/database/world/character_houses.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `character_houses`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_houses` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (bigint(20), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `house_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `instance_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `upkeep_due` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `escrow_coins` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
- `escrow_status` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_char` (`char_id`)
|
||||||
|
- CONSTRAINT `FK_char` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
23
docs/database/world/character_instances.md
Normal file
23
docs/database/world/character_instances.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Table: `character_instances`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_instances` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `instance_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `instance_zone_name` (varchar(64), NOT NULL)
|
||||||
|
- `instance_type` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_success_timestamp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_failure_timestamp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `success_lockout_time` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `failure_lockout_time` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `CharacterIDX` (`char_id`)
|
||||||
|
- KEY `InstanceIDX` (`instance_zone_name`)
|
45
docs/database/world/character_items.md
Normal file
45
docs/database/world/character_items.md
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
## Table: `character_items`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_items` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `type` (enum('EQUIPPED','NOT-EQUIPPED','APPEARANCE','DELETED'), NOT NULL, DEFAULT 'NOT-EQUIPPED')
|
||||||
|
- `account_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bag_id` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `slot` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `item_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `creator` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `condition_` (tinyint(3), NOT NULL, DEFAULT 100)
|
||||||
|
- `attuned` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `count` (smallint(5), NOT NULL, DEFAULT 1)
|
||||||
|
- `max_sell_value` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `login_checksum` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn0` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn1` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn2` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn1_time` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn3` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn4` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn5` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn6` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn7` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn8` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn9` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `adorn10` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `no_sale` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_saved` (timestamp, NOT NULL, DEFAULT current_timestamp() ON UPDATE current_timestamp())
|
||||||
|
- `created` (timestamp, NOT NULL, DEFAULT current_timestamp())
|
||||||
|
- `equip_slot` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `NewIndex` (`char_id`,`type`,`bag_id`,`slot`)
|
||||||
|
- KEY `FK_items` (`item_id`)
|
||||||
|
- CONSTRAINT `FK_character_items` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_items` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
9
docs/database/world/character_items_group_members.md
Normal file
9
docs/database/world/character_items_group_members.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
## Table: `character_items_group_members`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_items_group_members` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `unique_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `character_id` (int(10), NOT NULL, DEFAULT 0)
|
16
docs/database/world/character_languages.md
Normal file
16
docs/database/world/character_languages.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
## Table: `character_languages`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_languages` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `language_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_character_languages` (`char_id`)
|
18
docs/database/world/character_lua_history.md
Normal file
18
docs/database/world/character_lua_history.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `character_lua_history`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_lua_history` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `event_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `value` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `value2` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `Characte Event` (`char_id`,`event_id`)
|
20
docs/database/world/character_macros.md
Normal file
20
docs/database/world/character_macros.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
## Table: `character_macros`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_macros` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `macro_number` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `macro_icon` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `macro_name` (varchar(64), DEFAULT NULL)
|
||||||
|
- `macro_text` (text, DEFAULT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_character_macros` (`char_id`)
|
||||||
|
- CONSTRAINT `FK_character_macros` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
31
docs/database/world/character_mail.md
Normal file
31
docs/database/world/character_mail.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
## Table: `character_mail`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_mail` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `player_to_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `player_from` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `subject` (varchar(255), NOT NULL, DEFAULT '')
|
||||||
|
- `mail_body` (text, DEFAULT NULL)
|
||||||
|
- `already_read` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `mail_type` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `coin_copper` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `coin_silver` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `coin_gold` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `coin_plat` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `stack` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `postage_cost` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `attachment_cost` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `char_item_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `time_sent` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `expire_time` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_character_mail` (`player_to_id`)
|
||||||
|
- CONSTRAINT `FK_character_mail` FOREIGN KEY (`player_to_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
17
docs/database/world/character_pictures.md
Normal file
17
docs/database/world/character_pictures.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `character_pictures`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_pictures` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `pic_type` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `picture` (mediumtext, NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `character_pic_id` (`char_id`,`pic_type`)
|
10
docs/database/world/character_properties.md
Normal file
10
docs/database/world/character_properties.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
## Table: `character_properties`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_properties` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `charid` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `propname` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `propvalue` (varchar(64), NOT NULL, DEFAULT '')
|
21
docs/database/world/character_quest_progress.md
Normal file
21
docs/database/world/character_quest_progress.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `character_quest_progress`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_quest_progress` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `quest_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `step_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `progress` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `CharQuestStepIDX` (`char_id`,`quest_id`,`step_id`)
|
||||||
|
- KEY `FK_quest_id` (`quest_id`)
|
||||||
|
- CONSTRAINT `FK_character_quest_progress` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_quest_id` FOREIGN KEY (`quest_id`) REFERENCES `quests` (`quest_id`) ON DELETE CASCADE ON UPDATE CASCADE
|
16
docs/database/world/character_quest_rewards.md
Normal file
16
docs/database/world/character_quest_rewards.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
## Table: `character_quest_rewards`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_quest_rewards` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `quest_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `indexed` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `is_temporary` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `is_collection` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `has_displayed` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `tmp_coin` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
- `tmp_status` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `description` (text, NOT NULL, DEFAULT '')
|
11
docs/database/world/character_quest_temporary_rewards.md
Normal file
11
docs/database/world/character_quest_temporary_rewards.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
## Table: `character_quest_temporary_rewards`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_quest_temporary_rewards` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `quest_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `item_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `count` (smallint(5), NOT NULL, DEFAULT 0)
|
28
docs/database/world/character_quests.md
Normal file
28
docs/database/world/character_quests.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
## Table: `character_quests`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_quests` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `quest_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `quest_giver` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `given_date` (datetime, NOT NULL)
|
||||||
|
- `completed_date` (datetime, DEFAULT NULL)
|
||||||
|
- `current_quest` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `tracked` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `quest_flags` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `hidden` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `complete_count` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `status_to_earn` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `CharQuestIDX` (`char_id`,`quest_id`)
|
||||||
|
- KEY `FK_quest_quests` (`quest_id`)
|
||||||
|
- CONSTRAINT `FK_character_quests` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_quest_quests` FOREIGN KEY (`quest_id`) REFERENCES `quests` (`quest_id`) ON DELETE CASCADE ON UPDATE CASCADE
|
17
docs/database/world/character_recipe_books.md
Normal file
17
docs/database/world/character_recipe_books.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `character_recipe_books`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_recipe_books` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `recipebook_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `fk_characterrecipebook_charid` (`char_id`)
|
||||||
|
- KEY `fk_characterrecipebook_recipebookid` (`recipebook_id`)
|
19
docs/database/world/character_recipes.md
Normal file
19
docs/database/world/character_recipes.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `character_recipes`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_recipes` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `recipe_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `highest_stage` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `fk_characterrecipes_charid` (`char_id`)
|
||||||
|
- KEY `fk_characterrecipes_recipeid` (`recipe_id`)
|
||||||
|
- CONSTRAINT `fk_characterrecipes_charid` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
23
docs/database/world/character_skillbar.md
Normal file
23
docs/database/world/character_skillbar.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Table: `character_skillbar`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_skillbar` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `type` (tinyint(3), NOT NULL, DEFAULT 1)
|
||||||
|
- `hotbar` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `spell_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `tier` (tinyint(3), NOT NULL, DEFAULT 1)
|
||||||
|
- `slot` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `text_val` (varchar(255), NOT NULL, DEFAULT 'Unused')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `NewIndex` (`hotbar`,`char_id`,`slot`)
|
||||||
|
- KEY `FK_character_skillbar` (`char_id`)
|
||||||
|
- CONSTRAINT `FK_character_skillbar` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
22
docs/database/world/character_skills.md
Normal file
22
docs/database/world/character_skills.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
## Table: `character_skills`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_skills` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `skill_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `current_val` (smallint(5), NOT NULL, DEFAULT 1)
|
||||||
|
- `max_val` (smallint(5), NOT NULL, DEFAULT 1)
|
||||||
|
- `progress` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `CharSkillIDX` (`char_id`,`skill_id`)
|
||||||
|
- KEY `FK_skills_character` (`skill_id`)
|
||||||
|
- CONSTRAINT `FK_character_skills` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_skills_character` FOREIGN KEY (`skill_id`) REFERENCES `skills` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
18
docs/database/world/character_social.md
Normal file
18
docs/database/world/character_social.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `character_social`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_social` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `type` (enum('FRIEND','IGNORE'), NOT NULL, DEFAULT 'FRIEND')
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `CharNameIdx` (`char_id`,`name`,`type`)
|
||||||
|
- CONSTRAINT `FK_character_social` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
14
docs/database/world/character_spell_effect_targets.md
Normal file
14
docs/database/world/character_spell_effect_targets.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
## Table: `character_spell_effect_targets`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_spell_effect_targets` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `caster_char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `target_char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `target_type` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `db_effect_type` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `spell_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `effect_slot` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `slot_pos` (int(10), NOT NULL, DEFAULT 0)
|
36
docs/database/world/character_spell_effects.md
Normal file
36
docs/database/world/character_spell_effects.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
## Table: `character_spell_effects`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_spell_effects` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `caster_char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `target_char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `target_type` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `db_effect_type` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `spell_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `effect_slot` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `slot_pos` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `icon` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `icon_backdrop` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `conc_used` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `tier` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `total_time` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `expire_timestamp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `lua_file` (text, NOT NULL, DEFAULT '')
|
||||||
|
- `custom_spell` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `charid` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `damage_remaining` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `effect_bitmask` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `num_triggers` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `had_triggers` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `cancel_after_triggers` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `crit` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `last_spellattack_hit` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `interrupted` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `resisted` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `has_damaged` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `custom_function` (text, NOT NULL)
|
||||||
|
- `caster_level` (smallint(5), NOT NULL, DEFAULT 0)
|
21
docs/database/world/character_spells.md
Normal file
21
docs/database/world/character_spells.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `character_spells`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_spells` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `spell_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `tier` (tinyint(3), NOT NULL, DEFAULT 1)
|
||||||
|
- `knowledge_slot` (mediumint(9), NOT NULL, DEFAULT -1)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `NewIndex` (`char_id`,`spell_id`,`tier`)
|
||||||
|
- KEY `FK_char_spells` (`spell_id`)
|
||||||
|
- CONSTRAINT `FK_char_spells` FOREIGN KEY (`spell_id`) REFERENCES `spells` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_character_spells` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
47
docs/database/world/character_spirit_shards.md
Normal file
47
docs/database/world/character_spirit_shards.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
## Table: `character_spirit_shards`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_spirit_shards` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `timestamp` (timestamp, NOT NULL, DEFAULT current_timestamp())
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `level` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `race` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `gender` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `adventure_class` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `model_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `soga_model_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `hair_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `hair_face_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `wing_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `chest_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `legs_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `soga_hair_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `soga_hair_face_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `hide_hood` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `size` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `collision_radius` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `action_state` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `visual_state` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `mood_state` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `emote_state` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `pos_state` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `activity_status` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `sub_title` (varchar(255), NOT NULL, DEFAULT '')
|
||||||
|
- `prefix_title` (varchar(128), NOT NULL, DEFAULT '')
|
||||||
|
- `suffix_title` (varchar(128), NOT NULL, DEFAULT '')
|
||||||
|
- `lastname` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `x` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `y` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `z` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `heading` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `gridid` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `zoneid` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `instanceid` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `charid` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
17
docs/database/world/character_titles.md
Normal file
17
docs/database/world/character_titles.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `character_titles`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `character_titles` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `title_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_character_titles` (`char_id`)
|
||||||
|
- CONSTRAINT `FK_character_titles` FOREIGN KEY (`char_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
58
docs/database/world/characters.md
Normal file
58
docs/database/world/characters.md
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
## Table: `characters`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `characters` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `account_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `server_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `race` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `class` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `gender` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `deity` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `body_size` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `body_age` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `current_zone_id` (int(11), NOT NULL, DEFAULT 253)
|
||||||
|
- `level` (int(10), NOT NULL, DEFAULT 1)
|
||||||
|
- `tradeskill_class` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `tradeskill_level` (int(10), NOT NULL, DEFAULT 1)
|
||||||
|
- `soga_wing_type` (mediumint(8), NOT NULL)
|
||||||
|
- `soga_chest_type` (mediumint(8), NOT NULL)
|
||||||
|
- `soga_legs_type` (mediumint(8), NOT NULL)
|
||||||
|
- `soga_hair_type` (mediumint(8), NOT NULL)
|
||||||
|
- `soga_facial_hair_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `soga_model_type` (mediumint(8), NOT NULL)
|
||||||
|
- `legs_type` (mediumint(8), NOT NULL)
|
||||||
|
- `chest_type` (mediumint(8), NOT NULL)
|
||||||
|
- `wing_type` (mediumint(8), NOT NULL)
|
||||||
|
- `hair_type` (mediumint(8), NOT NULL)
|
||||||
|
- `facial_hair_type` (mediumint(8), NOT NULL, DEFAULT 0)
|
||||||
|
- `model_type` (mediumint(8), NOT NULL)
|
||||||
|
- `x` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `y` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `z` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `heading` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `instance_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `starting_city` (tinyint(3), NOT NULL, DEFAULT 1)
|
||||||
|
- `deleted` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `unix_timestamp` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `created_date` (timestamp, NOT NULL, DEFAULT '0000-00-00 00:00:00')
|
||||||
|
- `last_played` (timestamp, NOT NULL, DEFAULT current_timestamp() ON UPDATE current_timestamp())
|
||||||
|
- `last_saved` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `admin_status` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `is_online` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `group_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `alignment` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `first_world_login` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
- `zone_duplicating_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `CharIDX` (`name`)
|
||||||
|
- KEY `CharZoneIDX` (`current_zone_id`)
|
||||||
|
- KEY `CharAcctIDX` (`account_id`)
|
10
docs/database/world/charactersproperties.md
Normal file
10
docs/database/world/charactersproperties.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
## Table: `charactersproperties`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `charactersproperties` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `charid` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `propname` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `propvalue` (varchar(64), NOT NULL, DEFAULT '')
|
16
docs/database/world/chest_traps.md
Normal file
16
docs/database/world/chest_traps.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
## Table: `chest_traps`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `chest_traps` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `applicable_zone_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `chest_min_difficulty` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `chest_max_difficulty` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `spell_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `spell_tier` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
16
docs/database/world/claim_items.md
Normal file
16
docs/database/world/claim_items.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
## Table: `claim_items`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `claim_items` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(11), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `item_id` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_claim` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `one_per_char` (int(10), DEFAULT 0)
|
||||||
|
- `veteran_reward_time` (bigint(20), DEFAULT 0)
|
||||||
|
- `comment` (text, DEFAULT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
18
docs/database/world/collection_details.md
Normal file
18
docs/database/world/collection_details.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `collection_details`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `collection_details` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `collection_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `item_id` (int(11), NOT NULL, DEFAULT 0)
|
||||||
|
- `item_index` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_collection_details` (`collection_id`)
|
||||||
|
- CONSTRAINT `FK_collection_details` FOREIGN KEY (`collection_id`) REFERENCES `collections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
19
docs/database/world/collection_rewards.md
Normal file
19
docs/database/world/collection_rewards.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `collection_rewards`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `collection_rewards` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `collection_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `reward_type` (enum('None','Item','Selectable','Coin','XP'), NOT NULL, DEFAULT 'None')
|
||||||
|
- `reward_value` (bigint(20), NOT NULL, DEFAULT 0)
|
||||||
|
- `reward_quantity` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_collection_rewards` (`collection_id`)
|
||||||
|
- CONSTRAINT `FK_collection_rewards` FOREIGN KEY (`collection_id`) REFERENCES `collections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
14
docs/database/world/collections.md
Normal file
14
docs/database/world/collections.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
## Table: `collections`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `collections` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `collection_name` (varchar(512), NOT NULL, DEFAULT 'Unknown')
|
||||||
|
- `collection_category` (varchar(512), NOT NULL, DEFAULT 'Unknown')
|
||||||
|
- `level` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
19
docs/database/world/commands.md
Normal file
19
docs/database/world/commands.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `commands`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `commands` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `type` (tinyint(3), DEFAULT 1)
|
||||||
|
- `command` (varchar(64), DEFAULT NULL)
|
||||||
|
- `subcommand` (varchar(64), DEFAULT NULL)
|
||||||
|
- `handler` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `required_status` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `CommandIDX` (`command`,`subcommand`)
|
19
docs/database/world/dbeditor_log.md
Normal file
19
docs/database/world/dbeditor_log.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
## Table: `dbeditor_log`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dbeditor_log` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `char_id` (int(11), NOT NULL)
|
||||||
|
- `char_name` (varchar(64), DEFAULT NULL)
|
||||||
|
- `admin_status` (smallint(5), NOT NULL)
|
||||||
|
- `item_name` (varchar(250), DEFAULT NULL)
|
||||||
|
- `table_name` (varchar(32), DEFAULT NULL)
|
||||||
|
- `update_query` (text, DEFAULT NULL)
|
||||||
|
- `update_date` (int(11), NOT NULL)
|
||||||
|
- `archived` (tinyint(1), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
28
docs/database/world/dialog_flavors.md
Normal file
28
docs/database/world/dialog_flavors.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
## Table: `dialog_flavors`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dialog_flavors` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `voiceover_id` (int(10), DEFAULT NULL)
|
||||||
|
- `text_id` (int(10), NOT NULL)
|
||||||
|
- `language` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `understood` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `emote` (text, NOT NULL, DEFAULT '')
|
||||||
|
- `emote_text_id` (int(10), DEFAULT NULL)
|
||||||
|
- `unknown4` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
- `log_id` (int(10), NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `IndexEmote` (`emote`(100))
|
||||||
|
- KEY `FK__flavor_dialog_text` (`text_id`)
|
||||||
|
- KEY `FK_dialog_flavors_dialog_voiceovers` (`voiceover_id`)
|
||||||
|
- KEY `FK_dialog_flavors_dialog_text` (`emote_text_id`)
|
||||||
|
- CONSTRAINT `FK__flavor_dialog_text` FOREIGN KEY (`text_id`) REFERENCES `dialog_text` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_dialog_flavors_dialog_text` FOREIGN KEY (`emote_text_id`) REFERENCES `dialog_text` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_dialog_flavors_dialog_voiceovers` FOREIGN KEY (`voiceover_id`) REFERENCES `dialog_voiceovers` (`id`) ON UPDATE CASCADE
|
16
docs/database/world/dialog_npcs.md
Normal file
16
docs/database/world/dialog_npcs.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
## Table: `dialog_npcs`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dialog_npcs` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `zone` (text, NOT NULL)
|
||||||
|
- `name` (text, NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `IndexZone_Name` (`zone`(100),`name`(100))
|
20
docs/database/world/dialog_play_flavors.md
Normal file
20
docs/database/world/dialog_play_flavors.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
## Table: `dialog_play_flavors`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dialog_play_flavors` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `npc_id` (int(10), NOT NULL)
|
||||||
|
- `flavor_id` (int(10), NOT NULL)
|
||||||
|
- `log_id` (int(10), NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `UniqueNpcFlavor` (`npc_id`,`flavor_id`)
|
||||||
|
- KEY `FK__playflavors_dialog_flavors` (`flavor_id`)
|
||||||
|
- CONSTRAINT `FK__playflavors_dialog_flavors` FOREIGN KEY (`flavor_id`) REFERENCES `dialog_flavors` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK__playflavors_dialog_npcs` FOREIGN KEY (`npc_id`) REFERENCES `dialog_npcs` (`id`) ON UPDATE CASCADE
|
24
docs/database/world/dialog_play_voices.md
Normal file
24
docs/database/world/dialog_play_voices.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
## Table: `dialog_play_voices`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dialog_play_voices` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `npc_id` (int(10), NOT NULL)
|
||||||
|
- `voiceover_id` (int(10), NOT NULL)
|
||||||
|
- `language` (tinyint(3), NOT NULL)
|
||||||
|
- `garbled_text_id` (int(10), DEFAULT NULL)
|
||||||
|
- `log_id` (int(10), NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `Unique_NpcVoGarb` (`npc_id`,`voiceover_id`,`garbled_text_id`) USING BTREE
|
||||||
|
- KEY `FK__dialog_voiceovers` (`voiceover_id`)
|
||||||
|
- KEY `FK_dialog_play_voices_dialog_text` (`garbled_text_id`)
|
||||||
|
- CONSTRAINT `FK__dialog_npcs` FOREIGN KEY (`npc_id`) REFERENCES `dialog_npcs` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK__dialog_voiceovers` FOREIGN KEY (`voiceover_id`) REFERENCES `dialog_voiceovers` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_dialog_play_voices_dialog_text` FOREIGN KEY (`garbled_text_id`) REFERENCES `dialog_text` (`id`) ON UPDATE CASCADE
|
23
docs/database/world/dialog_responses.md
Normal file
23
docs/database/world/dialog_responses.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Table: `dialog_responses`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dialog_responses` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `parent_dialog_id` (int(10), NOT NULL)
|
||||||
|
- `index` (int(10), NOT NULL)
|
||||||
|
- `text_id` (int(10), NOT NULL)
|
||||||
|
- `next_dialog_id` (int(10), DEFAULT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK__dialogs` (`parent_dialog_id`)
|
||||||
|
- KEY `FK_dialog_responses_dialog_text` (`text_id`)
|
||||||
|
- KEY `FK__dialogs_2` (`next_dialog_id`) USING BTREE
|
||||||
|
- CONSTRAINT `FK__dialogs` FOREIGN KEY (`parent_dialog_id`) REFERENCES `dialogs` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK__dialogs_2` FOREIGN KEY (`next_dialog_id`) REFERENCES `dialogs` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_dialog_responses_dialog_text` FOREIGN KEY (`text_id`) REFERENCES `dialog_text` (`id`) ON UPDATE CASCADE
|
15
docs/database/world/dialog_text.md
Normal file
15
docs/database/world/dialog_text.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Table: `dialog_text`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dialog_text` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `text` (text, NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `IndexText` (`text`(100))
|
18
docs/database/world/dialog_voiceovers.md
Normal file
18
docs/database/world/dialog_voiceovers.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `dialog_voiceovers`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dialog_voiceovers` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `file` (text, NOT NULL)
|
||||||
|
- `key1` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `key2` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `bChecked` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `IndexFile` (`file`(100))
|
29
docs/database/world/dialogs.md
Normal file
29
docs/database/world/dialogs.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
## Table: `dialogs`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `dialogs` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `npc_id` (int(10), NOT NULL)
|
||||||
|
- `voiceover_id` (int(10), DEFAULT NULL)
|
||||||
|
- `title_text_id` (int(10), DEFAULT NULL)
|
||||||
|
- `msg_text_id` (int(10), DEFAULT NULL)
|
||||||
|
- `closeable` (tinyint(1), NOT NULL, DEFAULT 1)
|
||||||
|
- `signature` (tinyint(1), NOT NULL)
|
||||||
|
- `language` (tinyint(3), NOT NULL)
|
||||||
|
- `log_id` (int(10), NOT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `FK_dialogs_dialog_npcs` (`voiceover_id`)
|
||||||
|
- KEY `FK_dialogs_dialog_npcs1` (`npc_id`)
|
||||||
|
- KEY `FK_dialogs_dialog_text` (`title_text_id`)
|
||||||
|
- KEY `FK_dialogs_dialog_text_2` (`msg_text_id`)
|
||||||
|
- CONSTRAINT `FK_dialogs_dialog_npcs1` FOREIGN KEY (`npc_id`) REFERENCES `dialog_npcs` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_dialogs_dialog_text` FOREIGN KEY (`title_text_id`) REFERENCES `dialog_text` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_dialogs_dialog_text_2` FOREIGN KEY (`msg_text_id`) REFERENCES `dialog_text` (`id`) ON UPDATE CASCADE
|
||||||
|
- CONSTRAINT `FK_dialogs_dialog_voiceovers` FOREIGN KEY (`voiceover_id`) REFERENCES `dialog_voiceovers` (`id`) ON UPDATE CASCADE
|
18
docs/database/world/emotes.md
Normal file
18
docs/database/world/emotes.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `emotes`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `emotes` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `name` (varchar(128), DEFAULT NULL)
|
||||||
|
- `visual_state_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `message` (varchar(255), DEFAULT NULL)
|
||||||
|
- `targeted_message` (varchar(255), DEFAULT NULL)
|
||||||
|
- `self_message` (varchar(255), DEFAULT NULL)
|
||||||
|
- `min_version_range` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `max_version_range` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
21
docs/database/world/entity_commands.md
Normal file
21
docs/database/world/entity_commands.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
## Table: `entity_commands`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `entity_commands` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `command_list_id` (int(10), NOT NULL, DEFAULT 1)
|
||||||
|
- `command_text` (varchar(64), NOT NULL, DEFAULT 'Hail')
|
||||||
|
- `distance` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `command` (varchar(64), NOT NULL, DEFAULT 'hail')
|
||||||
|
- `error_text` (varchar(64), NOT NULL)
|
||||||
|
- `cast_time` (smallint(5), NOT NULL, DEFAULT 0)
|
||||||
|
- `spell_visual` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `EntityCmdIDX` (`command_list_id`,`command_text`)
|
17
docs/database/world/eq2classes.md
Normal file
17
docs/database/world/eq2classes.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `eq2classes`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `eq2classes` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `class_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `class_name` (varchar(64), DEFAULT NULL)
|
||||||
|
- `class_alignment` (enum('Good','Evil'), DEFAULT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `ClassIDX` (`class_id`)
|
15
docs/database/world/eq2expansions.md
Normal file
15
docs/database/world/eq2expansions.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Table: `eq2expansions`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `eq2expansions` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(11), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `expansion_tag` (varchar(16), DEFAULT NULL)
|
||||||
|
- `expansion` (varchar(64), DEFAULT NULL)
|
||||||
|
- `expansion_type` (enum('Expansion','Adventure, DEFAULT NULL)
|
||||||
|
- `release_date` (varchar(20), DEFAULT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
14
docs/database/world/eq2gm.md
Normal file
14
docs/database/world/eq2gm.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
## Table: `eq2gm`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `eq2gm` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `gm_title` (varchar(64), DEFAULT NULL)
|
||||||
|
- `gm_description` (varchar(255), DEFAULT NULL)
|
||||||
|
- `gm_status` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
18
docs/database/world/eq2models.md
Normal file
18
docs/database/world/eq2models.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `eq2models`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `eq2models` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `category` (varchar(64), DEFAULT NULL)
|
||||||
|
- `subcategory` (varchar(64), DEFAULT NULL)
|
||||||
|
- `model_type` (int(10), NOT NULL)
|
||||||
|
- `model_name` (varchar(250), DEFAULT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- KEY `NewIndex1` (`model_type`)
|
15
docs/database/world/eq2races.md
Normal file
15
docs/database/world/eq2races.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Table: `eq2races`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `eq2races` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `race` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `race_type` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `name` (varchar(64), DEFAULT NULL)
|
||||||
|
- `is_player_race` (tinyint(3), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
12
docs/database/world/exp_per_level.md
Normal file
12
docs/database/world/exp_per_level.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
## Table: `exp_per_level`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `exp_per_level` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `level` (int(10), PRIMARY KEY, NOT NULL)
|
||||||
|
- `exp_needed` (int(10), DEFAULT NULL)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- level
|
18
docs/database/world/faction_alliances.md
Normal file
18
docs/database/world/faction_alliances.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Table: `faction_alliances`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `faction_alliances` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `faction_id` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `friend_faction` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `hostile_faction` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
||||||
|
|
||||||
|
**Indexes/Notes:**
|
||||||
|
- UNIQUE KEY `FactionIDX` (`faction_id`,`friend_faction`,`hostile_faction`)
|
||||||
|
- CONSTRAINT `FK_faction_alliances` FOREIGN KEY (`faction_id`) REFERENCES `factions` (`id`) ON UPDATE CASCADE
|
17
docs/database/world/factions.md
Normal file
17
docs/database/world/factions.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Table: `factions`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `factions` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `name` (varchar(64), NOT NULL, DEFAULT '')
|
||||||
|
- `type` (varchar(32), NOT NULL, DEFAULT '')
|
||||||
|
- `description` (text, NOT NULL)
|
||||||
|
- `default_level` (mediumint(9), NOT NULL, DEFAULT 0)
|
||||||
|
- `negative_change` (smallint(5), NOT NULL, DEFAULT 100)
|
||||||
|
- `positive_change` (smallint(5), NOT NULL, DEFAULT 75)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
16
docs/database/world/failed_jobs.md
Normal file
16
docs/database/world/failed_jobs.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
## Table: `failed_jobs`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `failed_jobs` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (bigint(20), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `connection` (text, NOT NULL)
|
||||||
|
- `queue` (text, NOT NULL)
|
||||||
|
- `payload` (longtext, NOT NULL)
|
||||||
|
- `exception` (longtext, NOT NULL)
|
||||||
|
- `failed_at` (timestamp, NOT NULL, DEFAULT current_timestamp())
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
16
docs/database/world/flight_paths.md
Normal file
16
docs/database/world/flight_paths.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
## Table: `flight_paths`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `flight_paths` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `zone_id` (int(10), NOT NULL)
|
||||||
|
- `name` (char(255), NOT NULL)
|
||||||
|
- `speed` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `flying` (tinyint(3), NOT NULL, DEFAULT 1)
|
||||||
|
- `early_dismount` (tinyint(3), NOT NULL, DEFAULT 1)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
15
docs/database/world/flight_paths_locations.md
Normal file
15
docs/database/world/flight_paths_locations.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Table: `flight_paths_locations`
|
||||||
|
|
||||||
|
**Description:**
|
||||||
|
|
||||||
|
Defines `flight_paths_locations` table in the World database.
|
||||||
|
|
||||||
|
**Columns:**
|
||||||
|
- `id` (int(10), PRIMARY KEY, AUTO_INCREMENT, NOT NULL)
|
||||||
|
- `flight_path` (int(10), NOT NULL, DEFAULT 0)
|
||||||
|
- `x` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `y` (float, NOT NULL, DEFAULT 0)
|
||||||
|
- `z` (float, NOT NULL, DEFAULT 0)
|
||||||
|
|
||||||
|
**Primary Keys:**
|
||||||
|
- id
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user