Skip to content

Commit db123e2

Browse files
committed
DB/Stormwind: Added Envoy Manat spawn at Stormwind Embassy
1 parent ddf40a6 commit db123e2

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
SET @CGUID := 11000392;
2+
SET @OGUID := 11000006;
3+
4+
SET @NPCTEXTID := 610007;
5+
6+
-- Creature
7+
DELETE FROM `creature` WHERE `guid` = @CGUID+0;
8+
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES
9+
(@CGUID+0, 249187, 0, 1519, 9171, '0', 0, 0, 0, 1, -8138.8662109375, 787.34027099609375, 72.63970947265625, 2.819438457489013671, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 66527); -- Envoy Manat (Area: Stormwind Embassy - Difficulty: 0) CreateObject1
10+
11+
DELETE FROM `creature_addon` WHERE `guid` = @CGUID+0;
12+
INSERT INTO `creature_addon` (`guid`, `PathId`, `mount`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvpFlags`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `visibilityDistanceType`, `auras`) VALUES
13+
(@CGUID+0, 0, 0, 0, 0, 0, 1, 0, 716, 0, 0, 0, 0, ''); -- Envoy Manat
14+
15+
-- GameObject
16+
DELETE FROM `gameobject` WHERE `guid` = @OGUID+0;
17+
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES
18+
(@OGUID+0, 574613, 0, 1519, 9171, '0', 0, 0, -8137.0244140625, 788.015625, 72.4526214599609375, 2.387194633483886718, 0, 0, 0.929699897766113281, 0.368317902088165283, 120, 255, 1, 66527); -- Haranir (Area: Stormwind Embassy - Difficulty: 0) CreateObject1
19+
20+
-- Template Addon
21+
DELETE FROM `gameobject_template_addon` WHERE `entry` = 574613;
22+
INSERT INTO `gameobject_template_addon` (`entry`, `faction`, `flags`, `WorldEffectID`, `AIAnimKitID`) VALUES
23+
(574613, 0, 0x40000, 0, 0); -- Haranir
24+
25+
-- Template
26+
UPDATE `creature_template` SET `faction`=35, `npcflag`=3, `BaseAttackTime`=2000, `unit_flags`=0x300, `unit_flags2`=0x800 WHERE `entry`=249187; -- Envoy Manat
27+
28+
-- Gossip
29+
DELETE FROM `creature_template_gossip` WHERE (`CreatureID`=249187 AND `MenuID`=40543);
30+
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES
31+
(249187, 40543, 66527); -- Envoy Manat
32+
33+
DELETE FROM `npc_text` WHERE `ID` BETWEEN @NPCTEXTID+0 AND @NPCTEXTID+1;
34+
INSERT INTO `npc_text` (`ID`, `Probability0`, `Probability1`, `Probability2`, `Probability3`, `Probability4`, `Probability5`, `Probability6`, `Probability7`, `BroadcastTextId0`, `BroadcastTextId1`, `BroadcastTextId2`, `BroadcastTextId3`, `BroadcastTextId4`, `BroadcastTextId5`, `BroadcastTextId6`, `BroadcastTextId7`, `VerifiedBuild`) VALUES
35+
(@NPCTEXTID+0, 1, 0, 0, 0, 0, 0, 0, 0, 300131, 0, 0, 0, 0, 0, 0, 0, 66527), -- 249187 (Envoy Manat)
36+
(@NPCTEXTID+1, 1, 0, 0, 0, 0, 0, 0, 0, 300128, 0, 0, 0, 0, 0, 0, 0, 66527); -- 249187 (Envoy Manat)
37+
38+
DELETE FROM `gossip_menu` WHERE (`MenuID`=40542 AND `TextID`=@NPCTEXTID+0) OR (`MenuID`=40543 AND `TextID`=@NPCTEXTID+1);
39+
INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
40+
(40542, @NPCTEXTID+0, 66527), -- 249187 (Envoy Manat)
41+
(40543, @NPCTEXTID+1, 66527); -- 249187 (Envoy Manat)
42+
43+
DELETE FROM `gossip_menu_option` WHERE (`MenuID`=40543 AND `OptionID`=0);
44+
INSERT INTO `gossip_menu_option` (`MenuID`, `GossipOptionID`, `OptionID`, `OptionNpc`, `OptionText`, `OptionBroadcastTextID`, `Language`, `Flags`, `ActionMenuID`, `ActionPoiID`, `GossipNpcOptionID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `SpellID`, `OverrideIconID`, `VerifiedBuild`) VALUES
45+
(40543, 135803, 0, 0, 'Why is the Harandar banner not inside with the rest of them?', 0, 0, 0, 40542, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 66527);
46+
47+
-- Difficulty
48+
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2145, `StaticFlags1`=0x10000000, `VerifiedBuild`=66527 WHERE (`Entry`=249187 AND `DifficultyID`=0); -- 249187 (Envoy Manat) - CanSwim

0 commit comments

Comments
 (0)