-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* game_event updated Added Back to World Fixed Headers Added Re-directs to proper pages Added values to annouce with description Added Database values * game_event_quest updated Fixed the headers * Updated game_event_conditions Corrected headers Fixed re-directs * Removed the database information
- Loading branch information
1 parent
1b3dafd
commit 56951de
Showing
3 changed files
with
60 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,69 @@ | ||
# game\_event | ||
# game_event | ||
|
||
[<-Back-to:World](database-world) | ||
|
||
**The \`game_event\` table** | ||
|
||
**Table Structure** | ||
|
||
This table holds definitions for all game events that are activated or deactivated automatically by the Game Event System in the core. | ||
|
||
| Field | Type | Attributes | Key | Null | Default | Extra | Comment | | ||
| ----------------- | ------------ | ---------- | --- | ---- | ------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------ | | ||
| [eventEntry][1] | TINYINT | UNSIGNED | PRI | NO | | Unique | Entry of the game event | | ||
| [start_time][2] | TIMESTAMP | | | YES | NULL | | Absolute start date, the event will never start before | | ||
| [end_time][3] | TIMESTAMP | | | YES | NULL | | Absolute end date, the event will never start after; if NULL it will be implicitly set to 2 years in the future on each server start | | ||
| [occurrence][4] | BIGINT | UNSIGNED | | NO | | | Delay in minutes between occurrences of the event | | ||
| [length][5] | BIGINT | UNSIGNED | | NO | | | Length in minutes of the event | | ||
| [holiday][6] | MEDIUMINT | UNSIGNED | | NO | | | Client side holiday id (from dbc) | | ||
| [holidayStage][7] | TINYINT | UNSIGNED | | NO | | | | | ||
| [description][8] | VARCHAR(255) | SIGNED | | YES | NULL | | Description of the event displayed in console | | ||
| [world_event][9] | TINYINT | UNSIGNED | | NO | | | 0 if normal event, 1 if world event | | ||
| [announce][10] | TINYINT | UNSIGNED | | YES | 2 | | 0 dont announce, 1 announce, 2 value from config | | ||
|
||
[1]: #evententry | ||
[2]: #start_time | ||
[3]: #end_time | ||
[4]: #occurrence | ||
[5]: #length | ||
[6]: #holiday | ||
[7]: #holidaystage | ||
[8]: #description | ||
[9]: #world_event | ||
[10]: #announce | ||
| Field | Type | Attributes | Key | Null | Default | Extra | Comment | | ||
| ---------------------------- | ------------ | ---------- | --- | ---- | ------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------ | | ||
| [eventEntry](#evententry) | TINYINT | UNSIGNED | PRI | NO | | Unique | Entry of the game event | | ||
| [start_time](#starttime) | TIMESTAMP | | | YES | NULL | | Absolute start date, the event will never start before | | ||
| [end_time](#endtime) | TIMESTAMP | | | YES | NULL | | Absolute end date, the event will never start after; if NULL it will be implicitly set to 2 years in the future on each server start | | ||
| [occurrence](#occurrence) | BIGINT | UNSIGNED | | NO | | | Delay in minutes between occurrences of the event | | ||
| [length](#length) | BIGINT | UNSIGNED | | NO | | | Length in minutes of the event | | ||
| [holiday](#holiday) | MEDIUMINT | UNSIGNED | | NO | | | Client side holiday id (from dbc) | | ||
| [holidayStage](holidaystage) | TINYINT | UNSIGNED | | NO | | | | | ||
| [description](#description) | VARCHAR(255) | SIGNED | | YES | NULL | | Description of the event displayed in console | | ||
| [world_event](#worldevent) | TINYINT | UNSIGNED | | NO | | | 0 if normal event, 1 if world event | | ||
| [announce](#announce) | TINYINT | UNSIGNED | | YES | 2 | | 0 dont announce, 1 announce, 2 value from config | | ||
|
||
**Field Descriptions** | ||
|
||
### eventEntry | ||
|
||
Entry of the event. Keep it as low as possible and prevent making holes in the list. Higher the max id is, the more memory will be used to store the event data. | ||
|
||
### start\_time | ||
### start_time | ||
|
||
Absolute start date of the event. The event will start occurring only if the local time at the server is after the one set here. | ||
|
||
### end\_time | ||
### end_time | ||
|
||
Absolute end date of the event. The event will stop occurring if the local time at the server is after the one set here. | ||
|
||
### occurrence | ||
|
||
Number of minutes between 2 occurrences of the event. (2880 = 2 days, 1440 = 1 day, etc) | ||
|
||
{% include warning.html content="Value can't be 0 or the server will crash." %} | ||
|
||
### length | ||
|
||
Number of minutes the event will last after the start of the occurrence. (2880 = 2 days, 1440 = 1 day, etc) | ||
This value must be lower than occurrence one or the event will never stop. | ||
|
||
|
||
### holiday | ||
|
||
Holiday ID from [Holidays DBC file](Holidays). This is sent to the client to update the calender. | ||
Holiday ID from [Holidays DBC file](holidays). This is sent to the client to update the calender. | ||
|
||
### description | ||
|
||
String containing the name of the event displayed in console each time it starts or stops. | ||
|
||
### world\_event | ||
### world_event | ||
|
||
This is a boolean field that determines if this game event is a world event or not. 0 = normal event, 1 = world event. For the world event to work, you need to at a minimum, populate game\_event\_condition and game\_event\_quest\_condition. | ||
This is a boolean field that determines if this game event is a world event or not. 0 = normal event, 1 = world event. For the world event to work, you need to at a minimum, populate [game_event_condition](game_event_condition) and [game_event_quest_condition](game_event_quest_condition). | ||
|
||
### announce | ||
|
||
| Value | Description | | ||
| ----- | -------------------------------------------------- | | ||
| 0 | Don't announce the Event | | ||
| 1 | Announce the description of the Event to the world | | ||
| 2 | Use the `event.announce` settings from the config | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters