Advertisement
Emulation

Untitled

Sep 27th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.13 KB | None | 0 0
  1. -- A lot of missing spawns. Objects and creatures
  2. SET @CGUID := 1700000;
  3. SET @OGUID := 1700000;
  4. SET @EVENT := 24;
  5. -- Berfest Reveler
  6. DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+33;
  7. INSERT INTO `creature` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`modelid`,`equipment_id`,`position_x`,`position_y`,`position_z`,`orientation`,`spawntimesecs`,`spawndist`,`currentwaypoint`,`curhealth`,`curmana`,`MovementType`,`npcflag`,`unit_flags`,`dynamicflags`) VALUES
  8. -- Barleybrew Apprentice <Barleybrew Brew Vendor>
  9. (@CGUID+0,23482,530,1,1,22395,0,-4016.6,-11833,0.106771,4.04165,300,0,0,2215,0,0,0,0,0),
  10. -- Brewfest Reveler - Exodar
  11. (@CGUID+1,24484,530,1,1,21843,86,-4004.32,-11859.4,0.177081,0.860784,300,0,0,2215,0,0,0,0,0),
  12. (@CGUID+2,24484,530,1,1,21844,86,-4001.38,-11855.2,0.211436,4.18773,300,0,0,2215,0,0,0,0,0),
  13. (@CGUID+3,24484,530,1,1,21843,86,-4010.47,-11852.8,0.118782,4.25763,300,0,0,2215,0,0,0,0,0),
  14. (@CGUID+4,24484,530,1,1,21842,86,-4009.89,-11854.7,0.121793,3.64502,300,0,0,2215,0,0,0,0,0),
  15. (@CGUID+5,24484,530,1,1,21844,86,-4012.09,-11839.5,0.131949,0.507355,300,0,0,2215,0,0,0,0,0),
  16. (@CGUID+6,24484,530,1,1,21845,86,-4005.04,-11840.8,0.203372,2.26665,300,0,0,2215,0,0,0,0,0),
  17. (@CGUID+7,24484,530,1,1,21842,86,-4017.34,-11851.2,0.047381,1.00608,300,0,0,2215,0,0,0,0,0),
  18. (@CGUID+8,24484,530,1,1,21845,86,-4013.17,-11842.1,0.114192,4.16731,300,0,0,2215,0,0,0,0,0),
  19. (@CGUID+9,24484,530,1,1,21844,86,-4012.1,-11847.4,0.111304,2.65935,300,0,0,2215,0,0,0,0,0),
  20. (@CGUID+10,24484,530,1,1,21843,86,-4017.5,-11845,0.0595054,5.9266,300,0,0,2215,0,0,0,0,0),
  21. -- Brewfest Reveler - Eversong Woods
  22. (@CGUID+11,24484,530,1,1,21841,86,9318.1,-7278.19,13.3383,0.709729,300,0,0,2215,0,0,0,0,0),
  23. (@CGUID+12,24484,530,1,1,21838,86,9318.04,-7274.55,13.3571,5.13466,300,0,0,2215,0,0,0,0,0),
  24. (@CGUID+13,24484,530,1,1,21840,86,9322.69,-7278.57,13.2085,3.03844,300,0,0,2215,0,0,0,0,0),
  25. (@CGUID+14,24484,530,1,1,21839,86,9323.46,-7274.86,13.2653,3.31333,300,0,0,2215,0,0,0,0,0),
  26. (@CGUID+15,24484,530,1,1,21840,86,9333.88,-7275.82,13.514,5.39384,300,0,0,2215,0,0,0,0,0),
  27. (@CGUID+16,24484,530,1,1,21841,86,9335.93,-7281.15,13.695,2.03234,300,0,0,2215,0,0,0,0,0),
  28. (@CGUID+17,24484,530,1,1,21838,86,9340.67,-7275.46,14.0555,4.97837,300,0,0,2215,0,0,0,0,0),
  29. (@CGUID+18,24484,530,1,1,21839,86,9343.15,-7280.24,14.3778,2.35828,300,0,0,2215,0,0,0,0,0),
  30. (@CGUID+19,24484,530,1,1,21840,86,9334.47,-7296.27,13.7759,3.58271,300,0,0,2215,0,0,0,0,0),
  31. (@CGUID+20,24484,530,1,1,21839,86,9329.98,-7295.05,13.7486,5.6758,300,0,0,2215,0,0,0,0,0),
  32. (@CGUID+21,24484,530,1,1,21841,86,9340.93,-7269.42,14.5058,0.837748,300,0,0,2215,0,0,0,0,0),
  33. -- Troll Commoner
  34. (@CGUID+22,19177,1,1,1,21876,0,1748.94,-4497.53,28.793,5.47104,300,0,0,42,0,0,0,0,0),
  35. (@CGUID+23,19177,1,1,1,21877,0,1752.58,-4499.43,28.2911,2.89886,300,0,0,42,0,0,0,0,0),
  36. -- Orc Commoner
  37. (@CGUID+24,19175,1,1,1,21868,0,1609.47,-4323.21,2.33176,3.34811,300,0,0,42,0,0,0,0,0),
  38. (@CGUID+25,19175,1,1,1,21869,0,1605.95,-4324.2,2.19915,0.0101724,300,0,0,42,0,0,0,0,0),
  39. -- Gnome Commoner
  40. (@CGUID+26,19172,0,1,1,21850,0,-4831.74,-1172.58,502.278,6.19592,2,0,0,42,0,0,3,0,0),
  41. (@CGUID+27,19172,0,1,1,21853,0,-4829.88,-1173.25,502.277,2.49582,2,0,0,42,0,0,3,0,0),
  42. -- Bok Dropcertain
  43. (@CGUID+28,24527,1,1,1,0,0,795.14,-4522.59,6.31052,5.20636,300,0,0,1004,0,0,0,0,0),
  44. -- Drohn's Distillery Apprentice
  45. (@CGUID+29,24501,530,1,1,22491,0,9333.7,-7269.67,13.7715,4.52047,300,0,0,2215,0,0,0,0,0),
  46. -- Gordok Brew Apprentice <Gordok Brew Vendor>
  47. (@CGUID+30,23511,530,1,1,0,0,-4020.13,-11855.6,0.0061873,1.0273,300,0,0,2215,0,0,0,0,0),
  48. (@CGUID+31,23511,530,1,1,0,0,9313.83,-7281.3,13.8523,0.903714,300,0,0,2215,0,0,0,0,0),
  49. -- T'chali's Voodoo Brewery Apprentice <Voodoo Brew Vendor>
  50. (@CGUID+32,23533,530,1,1,22493,0,9330.11,-7285.87,13.7137,1.37103,300,0,0,2215,0,0,0,0,0),
  51. -- Thunderbrew Apprentice
  52. (@CGUID+33,23510,530,1,1,0,0,-4021.3,-11842.9,0.0212859,5.9439,300,0,0,2215,0,0,0,0,0);
  53.  
  54. -- Make the above spawns only happen if Brewfest is active
  55. DELETE FROM `game_event_creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+33;
  56. INSERT INTO `game_event_creature` VALUES
  57. (@EVENT,@CGUID+0),(@EVENT,@CGUID+1),(@EVENT,@CGUID+2),(@EVENT,@CGUID+3),
  58. (@EVENT,@CGUID+4),(@EVENT,@CGUID+5),(@EVENT,@CGUID+6),(@EVENT,@CGUID+7),
  59. (@EVENT,@CGUID+8),(@EVENT,@CGUID+9),(@EVENT,@CGUID+10),(@EVENT,@CGUID+11),
  60. (@EVENT,@CGUID+12),(@EVENT,@CGUID+13),(@EVENT,@CGUID+14),(@EVENT,@CGUID+15),
  61. (@EVENT,@CGUID+16),(@EVENT,@CGUID+17),(@EVENT,@CGUID+18),(@EVENT,@CGUID+19),
  62. (@EVENT,@CGUID+20),(@EVENT,@CGUID+21),(@EVENT,@CGUID+22),(@EVENT,@CGUID+23),
  63. (@EVENT,@CGUID+24),(@EVENT,@CGUID+25),(@EVENT,@CGUID+26),(@EVENT,@CGUID+27),
  64. (@EVENT,@CGUID+28),(@EVENT,@CGUID+29),(@EVENT,@CGUID+30),(@EVENT,@CGUID+31),
  65. (@EVENT,@CGUID+32),(@EVENT,@CGUID+33);
  66.  
  67. DELETE FROM `gameobject` WHERE `guid` BETWEEN @OGUID+0 AND @OGUID+20;
  68. INSERT INTO `gameobject` VALUES
  69. -- Exodar
  70. (@OGUID+0,178666,530,1,1,-4015.97,-11829.2,0.146814,2.80549,0,0,0.985913,0.167262,300,0,1),
  71. (@OGUID+1,178666,530,1,1,-4024.94,-11840.7,-0.0137537,4.17208,0,0,0.870173,-0.492747,300,0,1),
  72. (@OGUID+2,186259,530,1,1,-4029.42,-11849.1,-0.0817791,3.05053,0,0,0.998964,0.0455147,300,0,1),
  73. (@OGUID+3,186260,530,1,1,-4008.1,-11835.5,0.186614,1.27632,0,0,0.595718,0.803194,300,0,1),
  74. (@OGUID+4,186257,530,1,1,-4016.1,-11859.2,0.0441619,4.26476,0,0,0.846413,-0.532527,300,0,1),
  75. (@OGUID+5,186221,530,1,1,-4008.42,-11850.7,0.144533,2.04601,0,0,0.853677,0.520803,300,0,1),
  76. (@OGUID+6,186717,530,1,1,-4008.29,-11857.1,0.135722,5.47893,0,0,0.391378,-0.92023,300,0,1),
  77. (@OGUID+7,186717,530,1,1,-4002.56,-11851,0.205429,5.13728,0,0,0.542116,-0.840304,300,0,1),
  78. -- Darnassus
  79. (@OGUID+8,186717,1,1,1,9962.87,2218.32,1329.82,1.77101,0,0,0.774236,0.632897,300,0,1),
  80. (@OGUID+9,186717,1,1,1,9963.64,2192.59,1328.52,4.74374,0,0,0.695937,-0.718103,300,0,1),
  81. -- Eversong Woods
  82. (@OGUID+10,178666,530,1,1,9333.24,-7265.71,13.7149,3.15074,0,0,0.99999,-0.00457361,300,0,1),
  83. (@OGUID+11,178666,530,1,1,9330.88,-7289.79,13.7388,0.18586,0,0,0.0927961,0.995685,300,0,1),
  84. (@OGUID+12,186717,530,1,1,9319.23,-7265.19,13.7578,2.02761,0,0,0.84885,0.528633,300,0,1),
  85. (@OGUID+13,186717,530,1,1,9310.25,-7291.41,14.4908,2.53027,0,0,0.953648,0.300923,300,0,1),
  86. (@OGUID+14,186221,530,1,1,9318.17,-7291.17,14.4236,0.649241,0,0,0.318949,0.947772,300,0,1),
  87. (@OGUID+15,186257,530,1,1,9318.61,-7289.66,14.436,0.782759,0,0,0.381464,0.924384,300,0,1),
  88. (@OGUID+16,186256,530,1,1,9341.19,-7288.21,14.3979,4.71368,0,0,0.70665,-0.707563,300,0,1),
  89. (@OGUID+17,186255,530,1,1,9343.07,-7265.55,14.691,1.48569,0,0,0.676387,0.736546,300,0,1),
  90. (@OGUID+18,180037,530,1,1,9316.77,-7283.36,13.7084,3.63768,0,0,0.969394,-0.24551,300,0,1),
  91. (@OGUID+19,180037,530,1,1,9313.62,-7285.06,13.9541,3.38636,0,0,0.992521,-0.122077,300,0,1),
  92. (@OGUID+20,180037,530,1,1,9308.97,-7280.39,14.447,5.40091,0,0,0.426971,-0.904265,300,0,1);
  93.  
  94. -- Make the above game objects only spawn if Brewfest is active
  95. DELETE FROM `game_event_gameobject` WHERE `guid` BETWEEN @OGUID AND @OGUID+20;
  96. INSERT INTO `game_event_gameobject` VALUES
  97. (@EVENT,@OGUID+1),(@EVENT,@OGUID+2),(@EVENT,@OGUID+3),(@EVENT,@OGUID+4),
  98. (@EVENT,@OGUID+5),(@EVENT,@OGUID+6),(@EVENT,@OGUID+7),(@EVENT,@OGUID+8),
  99. (@EVENT,@OGUID+9),(@EVENT,@OGUID+10),(@EVENT,@OGUID+11),(@EVENT,@OGUID+12),
  100. (@EVENT,@OGUID+13),(@EVENT,@OGUID+14),(@EVENT,@OGUID+15),(@EVENT,@OGUID+16),
  101. (@EVENT,@OGUID+17),(@EVENT,@OGUID+18),(@EVENT,@OGUID+19),(@EVENT,@OGUID+20);
  102.  
  103. -- [Q] [H] Catch the Wild Wolpertinger!
  104. -- Alliance version already had this
  105. DELETE FROM `creature_involvedrelation` WHERE `id`=24657 AND `quest`=11431;
  106. INSERT INTO `creature_involvedrelation` (`id`,`quest`) VALUES
  107. (24657,11431);
  108. DELETE FROM `creature_questrelation` WHERE `id`=24657 AND `quest`=11431;
  109. INSERT INTO `creature_questrelation` (`id`,`quest`) VALUES
  110. (24657,11431);
  111.  
  112. -- [Q] [A/H] Did Someone Say "Souvenir?" & Say, There Wouldn't Happen to be a Souvenir This Year, Would There?
  113. DELETE FROM `creature_questrelation` WHERE `quest` IN (11321,11413,12194,12193);
  114. DELETE FROM `creature_involvedrelation` WHERE `quest` IN (24510,24468);
  115.  
  116. -- [Q] [A/H] Another Year, Another Souvenir.
  117. DELETE FROM `creature_involvedrelation` WHERE `id` IN (24495,23710) AND `quest` IN (13931,13932);
  118. INSERT INTO `creature_involvedrelation` (`id`,`quest`) VALUES
  119. (24495,13931), -- Horde
  120. (23710,13932); -- Alliance
  121. DELETE FROM `creature_questrelation` WHERE `id` IN (24510,24468) AND `quest` IN (13931,13932);
  122. INSERT INTO `creature_questrelation` (`id`,`quest`) VALUES
  123. (24510,13931), -- Horde
  124. (24468,13932); -- Alliance
  125.  
  126. -- [Q] [A/H] Did Someone Say "Souvenir?" - removed in 2.4.3
  127. DELETE FROM `creature_involvedrelation` WHERE `id` IN (23710,24495) AND `quest` IN (11321,11413);
  128. DELETE FROM `creature_questrelation` WHERE `id` IN (23710,24495) AND `quest` IN (11321,11413);
  129.  
  130. -- [Q] [A] Direbrew's Dire Brew - removed PrevQuestId in 2010
  131. -- Horde version already had this
  132. UPDATE `quest_template` SET `PrevQuestId`=0 WHERE `entry`=12491;
  133.  
  134. -- [Q] [A/H] Save Brewfest! - removed in 2.4.3
  135. DELETE FROM `creature_involvedrelation` WHERE `id` IN (23710,24495) AND `quest` IN (11321,11413);
  136. DELETE FROM `creature_questrelation` WHERE `id` IN (23710,24495) AND `quest` IN (11321,11413);
  137.  
  138. -- [Q] A/H] Save Brewfest! should have pre-req Welcome to Brewfest!
  139. UPDATE `quest_template` SET `PrevQuestId`=11442 WHERE `entry` IN (12318,11447);
  140.  
  141. -- Misc.
  142. DELETE FROM `creature_ai_scripts` WHERE `creature_id`=23698; -- Drunken Brewfest Reveler
  143. UPDATE `creature_template_addon` SET `auras`='43905' WHERE `entry`=23698; -- Drunken Brewfest Reveler
  144. UPDATE `creature_template` SET `AIName`='' WHERE `entry`=23698; -- Drunken Brewfest Reveler
  145. UPDATE `creature` SET `spawntimesecs`=450 WHERE `id`=24484; -- Brewfest Reveler had 12 hour respawntime ...
  146.  
  147. -- Send a mail on quest complete "Brew of the Month Club" - there is no wait time so we won't use RewMailDelaySecs
  148. -- Alliance quest missed quest texts
  149. SET @MAIL_A := 209;
  150. SET @MAIL_H := 210;
  151. UPDATE `quest_template` SET `RewMailTemplateId`=@MAIL_A,`OfferRewardText`="Your paperwork looks to be in order. Welcome to the club, $N!$B$BYou can expect to get our mail at the start of every month. If you like what you got, stop by and we can sell you some more. This is the club that keeps on giving.",`RequestItemsText`="Do you have your membership forms filled out?" WHERE `entry`=12420;
  152. UPDATE `quest_template` SET `RewMailTemplateId`=@MAIL_H WHERE `entry`=12306;
  153.  
  154. -- Ray'ma and Larkin were also finishing the incorrect quests
  155. DELETE FROM `creature_involvedrelation` WHERE `quest` IN (12278,12421);
  156.  
  157. -- The alliance vendors were selling wrong item - Ray'ma already had one but Blix was missing
  158. DELETE FROM `npc_vendor` WHERE `item` IN (37571,37736,37599);
  159. INSERT INTO `npc_vendor` (`entry`,`slot`,`item`,`maxcount`,`incrtime`,`ExtendedCost`) VALUES
  160. (23710,0,37736,0,0,2276), -- Belbi Quikswitch
  161. (27478,0,37736,0,0,2276), -- Larkin Thunderbrew
  162. (24495,0,37599,0,0,2276); -- Blix Fixwidget
  163.  
  164. -- Insert missing Pint-Sized Pink Pachyderm for 100 tokens
  165. DELETE FROM `npc_vendor` WHERE `item`=46707;
  166. INSERT INTO `npc_vendor` (`entry`,`slot`,`item`,`maxcount`,`incrtime`,`ExtendedCost`) VALUES
  167. (23710,0,46707,0,0,2275), -- Belbi Quikswitch
  168. (27478,0,46707,0,0,2275), -- Larkin Thunderbrew
  169. (24495,0,46707,0,0,2275), -- Blix Fixwidget
  170. (27489,0,46707,0,0,2275); -- Ray'ma
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement