目录

game_event 表


<-返回:World 数据库

This table holds definitions for all game events that are activated or deactivated automatically by the Game Event System in the core.

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
eventEntryTINYINTUNSIGNEDPRINO UniqueEntry of the game event
start_timeTIMESTAMP YESNULL Absolute start date, the event will never start before
end_timeTIMESTAMP YESNULL 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
occurrenceBIGINTUNSIGNED NO Delay in minutes between occurrences of the event
lengthBIGINTUNSIGNED NO Length in minutes of the event
holidayMEDIUMINTUNSIGNED NO Client side holiday id (from dbc)
holidayStageTINYINTUNSIGNED NO
descriptionVARCHAR(255)SIGNED YESNULL Description of the event displayed in console
world_eventTINYINTUNSIGNED NO 0 if normal event, 1 if world event
announceTINYINTUNSIGNED YES2 0 dont announce, 1 announce, 2 value from config

字段说明


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. 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.

announce