diff options
| author | Discover- <amort11@hotmail.com> | 2011-10-02 01:45:12 +0100 |
|---|---|---|
| committer | Nay <dnpd.dd@gmail.com> | 2011-10-02 01:45:12 +0100 |
| commit | 60245469b9e446243ad2ad54f54beb29a126e1f3 (patch) | |
| tree | ed047f8d4b577a367002e742c347c1067dba1a6a | |
| parent | e38453991bea16a021cb6c5cfc057caf321fc44a (diff) | |
DB/SAI: Fix quest Scourgekabob
Correct a guid used few commits ago
Closes #1916
Closes #2864
| -rw-r--r-- | sql/updates/world/2011_10_01_12_world_creatures.sql | 2 | ||||
| -rw-r--r-- | sql/updates/world/2011_10_02_04_world_sai.sql | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/sql/updates/world/2011_10_01_12_world_creatures.sql b/sql/updates/world/2011_10_01_12_world_creatures.sql index 6dd571a2e77..c6e63c19595 100644 --- a/sql/updates/world/2011_10_01_12_world_creatures.sql +++ b/sql/updates/world/2011_10_01_12_world_creatures.sql @@ -1,7 +1,7 @@ -- Jormunger Control Orb DELETE FROM `gameobject` WHERE `id`=192262; INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES -(@OGUID, 192262, 571, 1, 0x8, 8497.219, -90.90104, 789.2875, 0.1396245, 0, 0, 0.06975555, 0.9975641, 0, 0, 0); +(173, 192262, 571, 1, 0x8, 8497.219, -90.90104, 789.2875, 0.1396245, 0, 0, 0.06975555, 0.9975641, 0, 0, 0); DELETE FROM `creature` WHERE `id` IN (30301,30322,30300); 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 diff --git a/sql/updates/world/2011_10_02_04_world_sai.sql b/sql/updates/world/2011_10_02_04_world_sai.sql new file mode 100644 index 00000000000..fbec8e12b55 --- /dev/null +++ b/sql/updates/world/2011_10_02_04_world_sai.sql @@ -0,0 +1,13 @@ +-- [Q] Scourgekabob +-- Despawn Mummy Bunny SAI +SET @ENTRY := 27931; +SET @SPELL_CREDIT := 50035; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,11,@SPELL_CREDIT,0,0,0,0,0,7,0,0,0,0,0,0,0,'Despawn Mummy Bunny - Just Summoned - Quest Credit'); + +-- Fix an older sql guid +DELETE FROM `gameobject` WHERE `id`=192262; -- Jormunger Control Orb +INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES +(173, 192262, 571, 1, 0x8, 8497.219, -90.90104, 789.2875, 0.1396245, 0, 0, 0.06975555, 0.9975641, 0, 0, 0); |
