Skip to content

Commit

Permalink
Merge github.com:TrinityCore/TrinityCore
Browse files Browse the repository at this point in the history
Conflicts:
	src/server/game/Scripting/ScriptLoader.cpp
  • Loading branch information
maanuel committed Mar 27, 2011
2 parents 6f7ec88 + c8ec491 commit 9dc3302
Show file tree
Hide file tree
Showing 787 changed files with 10,110 additions and 4,747 deletions.
3 changes: 2 additions & 1 deletion THANKS
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ svannon, jurkovic.nikola, Willian Krueger, BioHazard, Ille000, Erocoloco,
terrorbringer, antihrists, Havenard, scarymovie87, D3VIL, FaTe753, PrinceCreed,
spgm, Dakeyras, sombre88, 19Maxx83, moriquendu, Ille, breakerfly,
zthoreen, clement.roussel, p.alexej, Ceris, Nayre, Kiper, announce, thmarth,
Ner'zhul, DarkXuan
Ner'zhul, DarkXuan, leak, linencloth, SnakeIce, Supabad, Tome, Nay, Kaelima,
Svannon
12 changes: 6 additions & 6 deletions sql/base/characters_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ CREATE TABLE `character_inventory` (
`slot` tinyint(3) unsigned NOT NULL DEFAULT '0',
`item` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Global Unique Identifier',
PRIMARY KEY (`item`),
UNIQUE KEY (`guid`,`bag`,`slot`),
UNIQUE KEY `guid` (`guid`,`bag`,`slot`),
KEY `idx_guid` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
Expand Down Expand Up @@ -1224,7 +1224,7 @@ CREATE TABLE `corpse` (
`position_z` float NOT NULL DEFAULT '0',
`orientation` float NOT NULL DEFAULT '0',
`map` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier',
`phaseMask` tinyint(3) unsigned NOT NULL DEFAULT '1',
`phaseMask` smallint(5) unsigned NOT NULL DEFAULT '1',
`displayId` int(10) unsigned NOT NULL DEFAULT '0',
`itemCache` text NOT NULL,
`bytes1` int(10) unsigned NOT NULL DEFAULT '0',
Expand Down Expand Up @@ -1285,10 +1285,10 @@ DROP TABLE IF EXISTS `game_event_condition_save`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_event_condition_save` (
`event_id` smallint(5) unsigned NOT NULL,
`eventEntry` tinyint(3) unsigned NOT NULL,
`condition_id` int(10) unsigned NOT NULL DEFAULT '0',
`done` float DEFAULT '0',
PRIMARY KEY (`event_id`,`condition_id`)
PRIMARY KEY (`eventEntry`,`condition_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

Expand All @@ -1309,10 +1309,10 @@ DROP TABLE IF EXISTS `game_event_save`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_event_save` (
`event_id` smallint(5) unsigned NOT NULL,
`eventEntry` tinyint(3) unsigned NOT NULL,
`state` tinyint(3) unsigned NOT NULL DEFAULT '1',
`next_start` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`event_id`)
PRIMARY KEY (`eventEntry`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

Expand Down
10 changes: 9 additions & 1 deletion sql/base/world_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18189,6 +18189,8 @@ INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment
( 71480, 71483, 1, 'Blood-Queen: Bloodbolt Splash'),
( 71952, 70995, 1, 'Blood-Queen: Presence of the Darkfallen'),
( 70157, 69700, 2, 'Sindragosa - Ice Tomb resistance'),
-- Eye Of Eternity
( 56397, 63934, 1,'Arcane Barrage - Arcane Barrage'),
-- Isle of Conquest
( 66548, 66550, 0, 'Isle of Conquest (IN>OUT)'),
( 66549, 66551, 0, 'Isle of Conquest (OUT>IN)'),
Expand All @@ -18212,6 +18214,7 @@ INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment
( 50141, 50001, 0, 'Blood Oath to Blood Oath Aura'),
( 61263, 61267, 0, 'Intravenous Healing Effect'),
( 61263, 61268, 0, 'Intravenous Mana Regeneration Effect'),
(-57350,60242,0, 'Darkmoon Card: Illusion'),
-- PvP Trinket / Every Man for Himself / Will of the Forsaken
(7744, 72757, 0, 'Will of the Forsaken Cooldown Trigger (WOTF)'),
(42292, 72752, 0, 'Will of the Forsaken Cooldown Trigger'),
Expand Down Expand Up @@ -18380,6 +18383,11 @@ INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFam
( 11180, 0x10, 3, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Winter's Chill (Rank 1)
( 11185, 0x00, 3, 0x00000080, 0x00000000, 0x00000000, 0x00050000, 0x00000000, 0, 0, 0), -- Improved Blizzard (Rank 1)
( 11255, 0x00, 3, 0x00004000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Improved Counterspell (Rank 1)
( 11213, 0x00, 3, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Arcane Concentration (Rank 1)
( 12574, 0x00, 3, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Arcane Concentration (Rank 2)
( 12575, 0x00, 3, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Arcane Concentration (Rank 3)
( 12576, 0x00, 3, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Arcane Concentration (Rank 4)
( 12577, 0x00, 3, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Arcane Concentration (Rank 5)
( 12169, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000040, 0, 0, 0), -- Shield Block
( 12289, 0x00, 4, 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Improved Hamstring (Rank 1)
( 12298, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000070, 0, 0, 0), -- Shield Specialization (Rank 1)
Expand Down Expand Up @@ -27806,7 +27814,7 @@ CREATE TABLE `vehicle_accessory` (
`seat_id` TINYINT(1) SIGNED NOT NULL DEFAULT 0,
`minion` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
`description` TEXT NOT NULL,
PRIMARY KEY (`entry`, `seat_id`)
PRIMARY KEY (`accessory_entry`, `seat_id`)
)
COLLATE=utf8_general_ci
ENGINE=MyISAM
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 30 additions & 2 deletions sql/scripts/world_scripts_full.sql
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,16 @@ UPDATE `creature_template` SET `ScriptName`='npc_apprentice_mirveda' WHERE `entr
UPDATE `creature_template` SET `ScriptName`='npc_infused_crystal' WHERE `entry`=16364;
UPDATE `gameobject_template` SET `ScriptName`='go_second_trial' WHERE `entry` IN (182052);

/* EYE OF ETERNITY */
UPDATE `instance_template` SET `script`='instance_eye_of_eternity' WHERE `map`=616;
UPDATE `creature_template` SET `ScriptName`='boss_malygos' WHERE `entry`=28859;
UPDATE `creature_template` SET `ScriptName`='npc_power_spark' WHERE `entry`=30084;
UPDATE `creature_template` SET `ScriptName`='npc_portal_eoe' WHERE `entry`=30118;
UPDATE `creature_template` SET `ScriptName`='npc_hover_disk' WHERE `entry` IN (30234,30248);
UPDATE `creature_template` SET `ScriptName`='npc_arcane_overload' WHERE `entry`=30282;
UPDATE `creature_template` SET `ScriptName`='npc_wyrmrest_skytalon' WHERE `entry`=30161;
UPDATE `creature_template` SET `ScriptName`='npc_alexstrasza_eoe' WHERE `entry`=32295;

/* FELWOOD */
UPDATE `creature_template` SET `ScriptName`='npcs_riverbreeze_and_silversky' WHERE `entry` IN (9528,9529);

Expand Down Expand Up @@ -1514,6 +1524,8 @@ UPDATE `creature_template` SET `ScriptName`='boss_ignis' WHERE `entry`=33118;
UPDATE `creature_template` SET `ScriptName`='npc_iron_construct' WHERE `entry`=33121;
UPDATE `creature_template` SET `ScriptName`='npc_scorch_ground' WHERE `entry`=33221;
UPDATE `creature_template` SET `ScriptName`='boss_razorscale' WHERE `entry`=33186;
UPDATE `creature_template` SET `ScriptName`='boss_razorscale_controller' WHERE `entry`=33233;
UPDATE `gameobject_template` SET `ScriptName`='go_razorscale_harpoon' WHERE `entry` IN(194519,194541,194542,194543);
UPDATE `creature_template` SET `ScriptName`='npc_devouring_flame' WHERE `entry`=34188;
UPDATE `creature_template` SET `ScriptName`='npc_mole_machine_trigger' WHERE `entry`=33245;
UPDATE `creature_template` SET `ScriptName`='npc_expedition_commander' WHERE `entry`=33210;
Expand Down Expand Up @@ -1762,7 +1774,7 @@ UPDATE `outdoorpvp_template` SET `ScriptName`='outdoorpvp_si' WHERE `TypeId`=5;
UPDATE `outdoorpvp_template` SET `ScriptName`='outdoorpvp_ep' WHERE `TypeId`=6;

/* ACHIEVEMENTS */
DELETE FROM `achievement_criteria_data` WHERE `criteria_id` IN (3693,6641,6642,6643,6644,3804,3805,3806,3807,3808,3809,3810,3811,3812,3813,1234,1239,5605,5606,12778,13036,13035,13037,12977,12967,12986,12982,12993,12780,13012,13011,13013,12062,12063,12064,12065,12183,12068,12060,12061,12822,12996,12972,12989) AND `type` IN (0,11);
DELETE FROM `achievement_criteria_data` WHERE `criteria_id` IN (3693,6641,6642,6643,6644,3804,3805,3806,3807,3808,3809,3810,3811,3812,3813,1234,1239,5605,5606,12778,13036,13035,13037,12977,12967,12986,12982,12993,12780,13012,13011,13013,12062,12063,12064,12065,12183,12068,12060,12061,12822,12996,12972,12989,10062,10063,10054,10055,10046,10047,10048,10049,10050,10051,10044,10045) AND `type` IN (0,11);
INSERT INTO `achievement_criteria_data` (`criteria_id`,`type`,`value1`,`value2`,`ScriptName`) VALUES
(3693,11,0,0, 'achievement_storm_glory'),
(6641,11,0,0, 'achievement_school_of_hard_knocks'),
Expand Down Expand Up @@ -1807,7 +1819,19 @@ INSERT INTO `achievement_criteria_data` (`criteria_id`,`type`,`value1`,`value2`,
(12822,11,0,0, 'achievement_all_you_can_eat'),
(12996,11,0,0, 'achievement_all_you_can_eat'),
(12972,11,0,0, 'achievement_all_you_can_eat'),
(12989,11,0,0, 'achievement_all_you_can_eat');
(12989,11,0,0, 'achievement_all_you_can_eat'),
(10044,11,0,0, 'achievement_unbroken'),
(10045,11,0,0, 'achievement_unbroken'),
(10054,11,0,0, 'achievement_shutout'),
(10055,11,0,0, 'achievement_shutout'),
(10046,11,0,0, 'achievement_three_car_garage_chopper'),
(10047,11,0,0, 'achievement_three_car_garage_siege'),
(10048,11,0,0, 'achievement_three_car_garage_demolisher'),
(10049,11,0,0, 'achievement_three_car_garage_chopper'),
(10050,11,0,0, 'achievement_three_car_garage_siege'),
(10051,11,0,0, 'achievement_three_car_garage_demolisher'),
(10062,11,0,0, 'achievement_quick_shave'),
(10063,11,0,0, 'achievement_quick_shave');

/* SPELLS */
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
Expand Down Expand Up @@ -2060,6 +2084,7 @@ INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
( 68646, 'spell_gen_leeching_swarm'),
( 68647, 'spell_gen_leeching_swarm'),
-- Ulduar
( 63308, 'spell_razorscale_devouring_flame'),
( 62717, 'spell_ignis_slag_pot'),
( 63477, 'spell_ignis_slag_pot'),
( 62521, 'spell_attuned_to_nature_dose_reduction'),
Expand All @@ -2074,6 +2099,9 @@ INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
( 62166, 'spell_ulduar_stone_grip_cast_target'),
( 63981, 'spell_ulduar_stone_grip_cast_target'),
( 64702, 'spell_ulduar_squeezed_lifeless'),
-- Eye Of Eternity
( 56105, 'spell_malygos_vortex_dummy'),
( 55873, 'spell_malygos_vortex_visual'),
-- quest
( 8913, 'spell_q55_sacred_cleansing'),
( 17271, 'spell_q5206_test_fetid_skull'),
Expand Down
1 change: 1 addition & 0 deletions sql/updates/auth_char/2011_03_17_00_characters_corpse.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `corpse` CHANGE COLUMN `phaseMask` `phaseMask` smallint(5) unsigned NOT NULL DEFAULT '1';
19 changes: 19 additions & 0 deletions sql/updates/auth_char/2011_03_18_00_characters_game_event_misc.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- Create temporary table that holds the entry conversion data. (See corresponding world db update)
CREATE TABLE `game_event_temp` (
`entryOld` TINYINT(3) UNSIGNED NOT NULL,
`entryNew` TINYINT(3) UNSIGNED NOT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;

-- Renumbered entry data
INSERT INTO `game_event_temp` (`entryOld`,`entryNew`) VALUES
(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10),(11,11),(12,12),(13,13),(14,14),(15,15),(16,16),(17,17),(18,18),(19,19),(20,20),(21,21),(22,22),
(23,23),(26,24),(27,25),(28,26),(29,27),(30,28),(31,29),(32,30),(33,31),(34,32),(35,33),(36,34),(37,35),(38,36),(39,37),(40,38),(41,39),(42,40),(43,41),(44,42),
(45,43),(46,44),(47,45),(48,46),(49,47),(50,48),(51,49),(52,50),(53,51),(54,52),(124,53),(125,54),(126,55),(127,56),(128,57),(129,58),(130,59),(131,60);

-- Update game_event_save
UPDATE `game_event_save`, `game_event_temp` SET `game_event_save`.`event_id` = `game_event_temp`.`entryNew` WHERE `game_event_save`.`event_id` = `game_event_temp`.`entryOld`;
ALTER TABLE `game_event_save` CHANGE `event_id` `eventEntry` TINYINT(3) UNSIGNED NOT NULL;

-- Update game_event_condition_save
UPDATE `game_event_condition_save`, `game_event_temp` SET `game_event_condition_save`.`event_id` = `game_event_temp`.`entryNew` WHERE `game_event_condition_save`.`event_id` = `game_event_temp`.`entryOld`;
ALTER TABLE `game_event_condition_save` CHANGE `event_id` `eventEntry` TINYINT(3) UNSIGNED NOT NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Remove temporary table
DROP TABLE `game_event_temp`;
Loading

0 comments on commit 9dc3302

Please sign in to comment.