aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorTeppic1 <Teppic1@users.noreply.github.com>2017-10-21 13:05:51 +0200
committerKillyana <morphone1@gmail.com>2017-10-21 13:05:51 +0200
commitc11552a5d4192f783a450181da199a9b763a9749 (patch)
treeb2a9a776822462cc16f4ddde9f4b89637808a13c /sql/updates
parent7e9ad877883422bd8a4f368ab87d0628fd6c6c44 (diff)
DB/Creature: Snagglespear
Closes #20668
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/world/3.3.5/2017_10_21_07_world_335.sql23
1 files changed, 23 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2017_10_21_07_world_335.sql b/sql/updates/world/3.3.5/2017_10_21_07_world_335.sql
new file mode 100644
index 00000000000..afe232375b6
--- /dev/null
+++ b/sql/updates/world/3.3.5/2017_10_21_07_world_335.sql
@@ -0,0 +1,23 @@
+SET @POOLENTRY := 378; -- need a new pool_template entry for this
+SET @GUID := 36943; -- need a new GUID for the 2nd spawn
+SET @CGUID := 26081; -- original TDB spawn
+
+-- new spawn location (sniff)
+DELETE FROM `creature` WHERE `guid`=@GUID;
+INSERT INTO `creature` (`guid`, `id`, `map`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `curhealth`) VALUES
+(@GUID, 5786, 1, 1, -2780.27, -702.809, 6.526313, 0.1570796, 3600, 176);
+
+DELETE FROM `creature_addon` WHERE `guid`=@GUID;
+INSERT INTO `creature_addon` (`guid`, `bytes2`) VALUES (@GUID, 4097);
+
+DELETE FROM `pool_template` WHERE `entry`=@POOLENTRY;
+INSERT INTO `pool_template` (`entry`,`max_limit`,`description`) VALUES
+(@POOLENTRY, 1, 'Snagglespear');
+
+DELETE FROM `pool_creature` WHERE `guid` IN (@CGUID, @GUID);
+INSERT INTO `pool_creature` (`guid`,`pool_entry`,`chance`,`description`) VALUES
+(@CGUID, @POOLENTRY, 0, 'Snagglespear Spawn 1'),
+(@GUID, @POOLENTRY, 0, 'Snagglespear Spawn 2');
+
+-- Reduce original Snagglespear (5786) spawn time to 1 hour
+UPDATE `creature` SET `spawntimesecs`=3600 WHERE `guid`=@CGUID;