Skip to content

Commit

Permalink
Add ghostlands tin veins
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 23, 2023
1 parent f640ec0 commit c4b2a23
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions Updates/0275_tbc_starter_zone_vein_overhaul.sql
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,64 @@ INSERT INTO `spawn_group_spawn` (`Id`, `Guid`, `SlotId`) VALUES
(@SGGUID+30, @GGUID+37, -1),
(@SGGUID+30, @GGUID+32, -1);

-- Ghostlands
DELETE FROM gameobject WHERE id = 1732 and map =530 and position_x BETWEEN 6390 AND 8130 AND position_y BETWEEN -8032 AND -6138; -- tin
SET @GGUID := 5305400;
INSERT INTO gameobject(guid, id, map, spawnMask, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecsmin, spawntimesecsmax) VALUES
(@GGUID+1, '1732', '530', '1', 6531.1650390625, -7405.35400390625, 69.88683319091796875, 6.021387100219726562, 0, 0, -0.13052558898925781, 0.991444945335388183, '600', '600'),
(@GGUID+2, '1732', '530', '1', 7258.173828125, -7591.01904296875, 84.4684906005859375, 0.907570242881774902, 0, 0, 0.438370704650878906, 0.898794233798980712, '600', '600'),
(@GGUID+3, '1732', '530', '1', 7227.4970703125, -7778.51123046875, 155.5157470703125, 3.298687219619750976, 0, 0, -0.99691677093505859, 0.078466430306434631, '600', '600'),
(@GGUID+4, '1732', '530', '1', 6593.041015625, -7201.85400390625, 46.59514999389648437, 2.478367090225219726, 0, 0, 0.94551849365234375, 0.325568377971649169, '600', '600'),
(@GGUID+5, '1732', '530', '1', 6830.7646484375, -6491.1396484375, 18.61792945861816406, 5.113816738128662109, 0, 0, -0.55193614959716796, 0.833886384963989257, '600', '600'),
(@GGUID+6, '1732', '530', '1', 6397.53125, -6185.12255859375, 76.44435882568359375, 0.994837164878845214, 0, 0, 0.477158546447753906, 0.878817260265350341, '600', '600'),
(@GGUID+7, '1732', '530', '1', 6873.1884765625, -6164.6142578125, 35.75304031372070312, 1.343901276588439941, 0, 0, 0.622513771057128906, 0.78260880708694458, '600', '600'),
(@GGUID+8, '1732', '530', '1', 7241.1787109375, -6447.51806640625, 48.11412429809570312, 0.453785061836242675, 0, 0, 0.224950790405273437, 0.974370121955871582, '600', '600'),
(@GGUID+9, '1732', '530', '1', 6514.77783203125, -6599.46875, 56.04701614379882812, 5.480334281921386718, 0, 0, -0.39073085784912109, 0.920504987239837646, '600', '600'),
(@GGUID+10, '1732', '530', '1', 7105.4072265625, -6559.611328125, 11.49820137023925781, 2.234017848968505859, 0, 0, 0.898793220520019531, 0.438372820615768432, '600', '600'),
(@GGUID+11, '1732', '530', '1', 6607.630859375, -6206.34130859375, 50.3685302734375, 4.345870018005371093, 0, 0, -0.82412624359130859, 0.566406130790710449, '600', '600'),
(@GGUID+12, '1732', '530', '1', 6786.3515625, -7436.8671875, 50.39150238037109375, 1.535889506340026855, 0, 0, 0.694658279418945312, 0.719339847564697265, '600', '600'),
(@GGUID+13, '1732', '530', '1', 7379.89306640625, -7913.66259765625, 158.57257080078125, 5.480334281921386718, 0, 0, -0.39073085784912109, 0.920504987239837646, '600', '600'),
(@GGUID+14, '1732', '530', '1', 7531.0087890625, -7893.50244140625, 187.5872955322265625, 5.410521507263183593, 0, 0, -0.42261791229248046, 0.906307935714721679, '600', '600'),
(@GGUID+15, '1732', '530', '1', 7189.4541015625, -7578.66650390625, 51.69826507568359375, 2.827429771423339843, 0, 0, 0.987688064575195312, 0.156436234712600708, '600', '600'),
(@GGUID+16, '1732', '530', '1', 7080.5498046875, -7550.861328125, 57.31962203979492187, 1.256635904312133789, 0, 0, 0.587784767150878906, 0.809017360210418701, '600', '600'),
(@GGUID+17, '1732', '530', '1', 7474.2265625, -7953.95068359375, 166.739105224609375, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, '600', '600'),
(@GGUID+18, '1732', '530', '1', 6748.51171875, -6519.2490234375, 22.44476890563964843, 3.141592741012573242, 0, 0, -1, 0, '600', '600'),
(@GGUID+19, '1732', '530', '1', 6977.28564453125, -6562.70947265625, 11.20953559875488281, 5.916667938232421875, 0, 0, -0.18223476409912109, 0.98325502872467041, '600', '600'),
(@GGUID+20, '1732', '530', '1', 7134.18994140625, -6613.6630859375, 52.88366317749023437, 3.839725255966186523, 0, 0, -0.93969249725341796, 0.34202045202255249, '600', '600'),
(@GGUID+21, '1732', '530', '1', 6383.08837890625, -6547.10888671875, 91.9244384765625, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, '600', '600');

DELETE FROM spawn_group WHERE Id BETWEEN @SGGUID+31 AND @SGGUID+33;
INSERT INTO `spawn_group` (`Id`, `Name`, `Type`, `MaxCount`, `WorldState`, `Flags`) VALUES
(@SGGUID+31, 'Ghostlands - Tin Vein - Deatholme', 0, 1, 0, 0),
(@SGGUID+32, 'Ghostlands - Tin Vein - Scar and Zul', 0, 2, 0, 0),
(@SGGUID+33, 'Ghostlands - Tin Vein - ZebTela', 0, 1, 0, 0);

INSERT INTO `spawn_group_spawn` (`Id`, `Guid`, `SlotId`) VALUES
-- Deatholme
(@SGGUID+31, @GGUID+3, -1),
(@SGGUID+31, @GGUID+13, -1),
(@SGGUID+31, @GGUID+14, -1),
(@SGGUID+31, @GGUID+17, -1),
-- Scar and Zul
(@SGGUID+32, @GGUID+1, -1),
(@SGGUID+32, @GGUID+2, -1),
(@SGGUID+32, @GGUID+4, -1),
(@SGGUID+32, @GGUID+5, -1),
(@SGGUID+32, @GGUID+7, -1),
(@SGGUID+32, @GGUID+8, -1),
(@SGGUID+32, @GGUID+10, -1),
(@SGGUID+32, @GGUID+12, -1),
(@SGGUID+32, @GGUID+15, -1),
(@SGGUID+32, @GGUID+16, -1),
(@SGGUID+32, @GGUID+18, -1),
(@SGGUID+32, @GGUID+19, -1),
(@SGGUID+32, @GGUID+20, -1),
-- ZebTela
(@SGGUID+33, @GGUID+6, -1),
(@SGGUID+33, @GGUID+9, -1),
(@SGGUID+33, @GGUID+11, -1),
(@SGGUID+33, @GGUID+21, -1);

-- when porting adjust these accordingly
DELETE FROM pool_gameobject WHERE guid IN(75024,75025,75051,75052,75090,75091,75099,75100,75105,75106,101242,101243);
DELETE FROM pool_gameobject WHERE guid IN(101244,101245,101246,101247,101248,101249,101250,101251,101252,101253,101254,101255);
Expand Down

0 comments on commit c4b2a23

Please sign in to comment.