From a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3 Mon Sep 17 00:00:00 2001 From: FrancescoBorzi Date: Mon, 25 Feb 2019 19:24:20 +0100 Subject: Import DB wiki from TC 335 --- docs/game_event.md | 188 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 176 insertions(+), 12 deletions(-) (limited to 'docs/game_event.md') diff --git a/docs/game_event.md b/docs/game_event.md index ecaaf03..d0bccbb 100644 --- a/docs/game_event.md +++ b/docs/game_event.md @@ -1,12 +1,176 @@ -[Database Structure](Database-Structure) > [World-Database](World-Database) > [game_event](game_event) - -Column | Type | Description ---- | --- | --- -EventEntry | tinyint(3) unsigned | -Start_time | timestamp | -End_time | timestamp | -Occurence | bigint(20) unsigned | -Length | bigint(20) unsigned | -Holiday | mediumint(8) unsigned | -Description | varchar(255) | -World_event | tinyint(3) unsigned | +# game\_event + +**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

tinyint(3)

unsigned

PRI

NO


+

Unique

Entry of the game event

start_time

timestamp


+


+

YES

NULL


+

Absolute start date, the event will never start before

end_time

timestamp


+


+

YES

NULL


+

Absolute end date, the event will never start after

occurrence

bigint(20)

unsigned


+

NO

5184000


+

Delay in minutes between occurrences of the event

length

bigint(20)

unsigned


+

NO

2592000


+

Length in minutes of the event

holiday

mediumint(8)

unsigned


+

NO

0


+

Client side holiday id (from dbc)

holidayStagetinyint(3)unsigned
+
NO0
+
?

description

varchar(255)

signed


+

YES

NULL


+

Description of the event displayed in console

world_event

tinyint(3)

unsigned


+

NO

0


+

0 if normal event, 1 if world event

announcetinyint(3)unsigned
+
YES2
+
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 + +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 + +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) + +### 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](http://collab.kpsn.org/display/tc/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 + +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. -- cgit