Calendar/GameEvents: Store + Send holiday data to calendar (#589)
* Calendar/GameEvents: Store + Send holiday data to calendar Fix by @Gerhood port by Sucofog for AC * Remove comments * Fixed an sql error * Fixed spell casting destination to require ENABLE_LOGS and ENABLE_EXTRA_LOGS to be enabled (#646) * Fixed spell casting destination to require ENABLE_LOGS and ENABLE_EXTRA_LOGS to be enabled (#601) * Fixed line spacing * Fixed file spacing * Revert "Fixed file spacing" This reverts commitc32f081fe2. * Revert "Fixed line spacing" This reverts commit5a922bbfe8. * Revert "Fixed spell casting destination to require ENABLE_LOGS and ENABLE_EXTRA_LOGS to be enabled (#601)" This reverts commit0d57b3c273. * Fixed spell casting destination to require ENABLE_LOGS and ENABLE_EXTRA_LOGS to be enabled * Core: step 1 - starting to fix core warnings expecially from headers and some cpp files Scripts and tools in next steps * Core: Step 2 - Fixed warnings with clang 3.9+ issue #121 * Core: Step 3 - removed all warnings from core related to #121 Next step: Scripts and extractor tools * Scripts: Step 4 - Fixed all warnings inside scripts issue #121 Next step: enabling -DWITH_WARNINGS and fix * Implement banned_addons (#647) * Removed more warnings, mostly related to unused-variable issue #121 We still have to work on unused-parameter * Script: Fixed yogg saron Drive Me Crazy achievement * uncommented releaseModelInstance to fix a warning * Improved travis compilation Including pending sql and enabling tools, core-debug, extra-logs and perftools * Fixed compilation * Fixed all unused-parameters warnings issue #121 used clang-tidy to achieve this * Removed unused variables in WaypointMovementGenerator * Solved cmake D9025 issue with MSVC * Fixed some variable/parameters type issues * Uncommented some utils functions for LFG * Fixed linux compilation error with linker This was caused by a GNUC compiler optimization that removes LFG.obj from binaries since its functions have never been called by gamelib. So we had to call at least one of them on LFGMgr forcing compiler to include LFG.cpp in build. I can't find another way. * Pending sql * Cleaning unused variables * Update issue_template.md * Coverity badge * Fixed other badges * Add GMSummonPlayer Config Option (#643) * Stratholme's Rat Traps (#613) * now rat traps in stratholme work correctly * Implemented sql importing for db_assembler script It includes a backup system that saves your day if you push the "red button" (importing bases on a production db) * Bash: Fixed Quit option * Bash: Allow action non-interactive selection You can directly run a specific action from command lines useful for cronjobs for example + splitted db_assembler in more files ready to be included from other bash scripts * Cmake: Compiling with warnings by default Forcing all contributors to fix all warnings before push a commit (i hope) * Fixed gcc warnings * Build without PCH to catch missing headers + changed to Debug build type * Fixed PCH compilation and gcc warnings fixed + removed some useless warning suppressions * Improved travis compilation it must give us errors on warnings allowing contributors to fix them as soon as possible (best before accepting PR) * Improved db assembler, now can create DBs * Bash: implemented installer script for server and modules (beta) + minor fixes * Installer: minor fix * Bash: fixed mysql default conf * updated doc * Installer: differentiate linux distro * Use PLAYER_BYTES_3 instead of gender to avoid displayid problems - This fix night elfs corpse turning into a cube * Fix CMake custom script (#658) * CMake - CMake now detects custom scripts in the Custom directory * CMake - CMake now detects the custom script headers * CMake - Added an example in the README on how to make a CMakeLists.txt for a custom script * Scarlet Monastery - Chapel: Last Boss (#599) * Core/Misc Created handler for character creation * [Core/Boss] Reworked final figth Scarlet Monastery - Chapel * correct the animation when Whitemain cast resurrection * Fixed max heroic attempts ICC it must be 50 instead of 25 * Workaround to import sql with zero value in date on mysql 5.7 Maybe we need to fix those fields or find another better way * Various fixes for installer script and db_assembler * Db_Assembler: hide mysql password in prompt * Revert "Cmake: Compiling with warnings by default" It generates compile errors on windows Maybe we should separate warning cmake define for each compiler (?) This reverts commit8ad3c15d63. * Fixed warnings when EXTRA_LOGS are off * Fixed and optimized EXTRA_LOGS code about 1700 lines of code manually checked * Bash: Minor fixes for installer
This commit is contained in:
154
data/sql/updates/pending_db_world/rev_1504044222560696700.sql
Normal file
154
data/sql/updates/pending_db_world/rev_1504044222560696700.sql
Normal file
@@ -0,0 +1,154 @@
|
||||
INSERT INTO version_db_world (`sql_rev`) VALUES ('1504044222560696700');
|
||||
|
||||
-- fix NO_ZERO_DATE error on mysql 5.7 (for latest linux platforms)
|
||||
-- please use 5.6 on windows
|
||||
SET SESSION sql_mode = "ONLY_FULL_GROUP_BY,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES";
|
||||
|
||||
DROP TABLE IF EXISTS holiday_dates;
|
||||
CREATE TABLE holiday_dates (
|
||||
id INT UNSIGNED NOT NULL,
|
||||
date_id TINYINT UNSIGNED NOT NULL,
|
||||
date_value INT UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (id, date_id)
|
||||
);
|
||||
|
||||
CREATE FUNCTION packDate (yy TINYINT UNSIGNED, mm TINYINT UNSIGNED, dd TINYINT UNSIGNED)
|
||||
RETURNS INT UNSIGNED DETERMINISTIC
|
||||
RETURN (yy << 24) | ((mm - 1) << 20) | ((dd - 1) << 14);
|
||||
|
||||
INSERT INTO holiday_dates VALUES
|
||||
(181, 6, 220692480 + (1 << 14)), -- rescheduled
|
||||
(181, 7, 238338048 + (1 << 14)),
|
||||
(181, 8, 254869504 + (1 << 14)),
|
||||
(181, 9, 270958592 + (1 << 14)),
|
||||
(181, 10, 288635520), -- 7.2 (PTR) dbc
|
||||
(181, 11, 305166976),
|
||||
(181, 12, 322271872),
|
||||
(201, 9, 221723264),
|
||||
(201, 10, 238484096),
|
||||
(201, 11, 255244928),
|
||||
(201, 12, 272661120),
|
||||
(201, 13, 289421952),
|
||||
(201, 14, 305625728),
|
||||
(201, 15, 322386560),
|
||||
(321, 7, 210106368),
|
||||
(321, 8, 226704000),
|
||||
(321, 9, 243300992),
|
||||
(321, 10, 260389504),
|
||||
(321, 11, 276970112),
|
||||
(321, 12, 294075008),
|
||||
(321, 13, 310672000),
|
||||
(327, 7, 218429440 + (7 << 14)),
|
||||
(327, 8, 235207296),
|
||||
(327, 9, 252967552),
|
||||
(327, 10, 269499008),
|
||||
(327, 11, 285555328),
|
||||
(327, 12, 303184512),
|
||||
(327, 13, 319224448),
|
||||
(404, 4, 228997760),
|
||||
(404, 5, 245758592),
|
||||
(404, 6, 262519424),
|
||||
(404, 7, 279263872),
|
||||
(404, 8, 296024704),
|
||||
(404, 9, 312785536),
|
||||
(404, 10, 329661056),
|
||||
(423, 3, 219185152 + (7 << 14)),
|
||||
(423, 4, 236092032),
|
||||
(423, 5, 252738176),
|
||||
(423, 6, 269728384),
|
||||
(423, 7, 286374528),
|
||||
(423, 8, 303184512),
|
||||
(423, 9, 319881856),
|
||||
|
||||
(374, 0, packDate(16, 12, 02)),
|
||||
(375, 0, packDate(16, 12, 30)),
|
||||
(376, 0, packDate(17, 02, 03)),
|
||||
(374, 1, packDate(17, 03, 03)),
|
||||
(375, 1, packDate(17, 03, 31)),
|
||||
(376, 1, packDate(17, 04, 28)),
|
||||
(374, 2, packDate(17, 06, 02)),
|
||||
(375, 2, packDate(17, 06, 30)),
|
||||
(376, 2, packDate(17, 08, 04)),
|
||||
(374, 3, packDate(17, 09, 01)),
|
||||
(375, 3, packDate(17, 09, 29)),
|
||||
(376, 3, packDate(17, 11, 03)),
|
||||
(374, 4, packDate(17, 12, 01)),
|
||||
(375, 4, packDate(17, 12, 29)),
|
||||
(376, 4, packDate(18, 02, 02)),
|
||||
(374, 5, packDate(18, 03, 02)),
|
||||
(375, 5, packDate(18, 03, 30)),
|
||||
(376, 5, packDate(18, 05, 04)),
|
||||
(374, 6, packDate(18, 06, 01)),
|
||||
(375, 6, packDate(18, 06, 29)),
|
||||
(376, 6, packDate(18, 08, 03)),
|
||||
(374, 7, packDate(18, 08, 31)),
|
||||
(375, 7, packDate(18, 09, 28)),
|
||||
(376, 7, packDate(18, 11, 02)),
|
||||
(374, 8, packDate(18, 11, 30)),
|
||||
(375, 8, packDate(19, 01, 04)),
|
||||
(376, 8, packDate(19, 02, 01)),
|
||||
(374, 9, packDate(19, 03, 01)),
|
||||
(375, 9, packDate(19, 03, 29)),
|
||||
(376, 9, packDate(19, 05, 03)),
|
||||
(374, 10, packDate(19, 05, 31)),
|
||||
(375, 10, packDate(19, 06, 28)),
|
||||
(376, 10, packDate(19, 08, 02)),
|
||||
(374, 11, packDate(19, 08, 30)),
|
||||
(375, 11, packDate(19, 10, 04)),
|
||||
(376, 11, packDate(19, 11, 01)),
|
||||
(374, 12, packDate(19, 11, 29)),
|
||||
(375, 12, packDate(20, 01, 03)),
|
||||
(376, 12, packDate(20, 01, 31)),
|
||||
(374, 13, packDate(20, 02, 28)),
|
||||
(375, 13, packDate(20, 04, 03)),
|
||||
(376, 13, packDate(20, 05, 01)),
|
||||
(374, 14, packDate(20, 05, 29)),
|
||||
(375, 14, packDate(20, 07, 03)),
|
||||
(376, 14, packDate(20, 07, 31)),
|
||||
(374, 15, packDate(20, 09, 04)),
|
||||
(375, 15, packDate(20, 10, 02)),
|
||||
(376, 15, packDate(20, 10, 30)),
|
||||
(374, 16, packDate(20, 12, 04)),
|
||||
(375, 16, packDate(21, 01, 01)),
|
||||
(376, 16, packDate(21, 01, 29)),
|
||||
(374, 17, packDate(21, 02, 26)),
|
||||
(375, 17, packDate(21, 04, 02)),
|
||||
(376, 17, packDate(21, 04, 30)),
|
||||
(374, 18, packDate(21, 06, 04)),
|
||||
(375, 18, packDate(21, 07, 02)),
|
||||
(376, 18, packDate(21, 07, 30)),
|
||||
(374, 19, packDate(21, 09, 03)),
|
||||
(375, 19, packDate(21, 10, 01)),
|
||||
(376, 19, packDate(21, 10, 29)),
|
||||
(374, 20, packDate(21, 12, 03)),
|
||||
(375, 20, packDate(21, 12, 31)),
|
||||
(376, 20, packDate(22, 02, 04)),
|
||||
(374, 21, packDate(22, 03, 04)),
|
||||
(375, 21, packDate(22, 04, 01)),
|
||||
(376, 21, packDate(22, 04, 29)),
|
||||
(374, 22, packDate(22, 06, 03)),
|
||||
(375, 22, packDate(22, 07, 01)),
|
||||
(376, 22, packDate(22, 07, 29)),
|
||||
(374, 23, packDate(22, 09, 02)),
|
||||
(375, 23, packDate(22, 09, 30)),
|
||||
(376, 23, packDate(22, 11, 04)),
|
||||
(374, 24, packDate(22, 12, 02)),
|
||||
(375, 24, packDate(22, 12, 30)),
|
||||
(376, 24, packDate(23, 02, 03)),
|
||||
(374, 25, packDate(23, 03, 03)),
|
||||
(375, 25, packDate(23, 03, 31)),
|
||||
(376, 25, packDate(23, 04, 28));
|
||||
|
||||
UPDATE holiday_dates SET date_value = date_value & ~0x3FFF;
|
||||
|
||||
DROP FUNCTION packDate;
|
||||
|
||||
ALTER TABLE game_event ADD COLUMN holidayStage TINYINT UNSIGNED NOT NULL DEFAULT 0 AFTER holiday;
|
||||
|
||||
UPDATE game_event SET holiday = 424 WHERE eventEntry = 64;
|
||||
UPDATE game_event SET holiday = 0 WHERE eventEntry = 63;
|
||||
UPDATE game_event SET holiday = 374 WHERE eventEntry = 23;
|
||||
UPDATE game_event SET holiday = 375 WHERE eventEntry = 110;
|
||||
UPDATE game_event SET holiday = 376 WHERE eventEntry = 62;
|
||||
UPDATE game_event SET holidayStage = 1 WHERE eventEntry IN (1, 2, 7, 8, 9, 10, 11, 12, 18, 19, 20, 21, 23, 24, 26, 50, 51, 53, 54, 62, 110);
|
||||
UPDATE game_event SET holidayStage = 2 WHERE eventEntry IN (3, 4, 5);
|
||||
Reference in New Issue
Block a user