Skip to content

Commit d2b1330

Browse files
committed
DB: correct Saragosa's SAI script and movement template
1 parent 24dcc1f commit d2b1330

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
-- Saragosa
2+
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (26231);
3+
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`) VALUES
4+
(26231, 1, 1, 1, 0);
5+
6+
-- Saragosa smart ai
7+
SET @ENTRY := 26231;
8+
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
9+
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
10+
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
11+
(@ENTRY, 0, 0, 0, 1, 1, 100, 1, 6000, 6000, 0, 0, 28, 46789, 0, 0, 0, 0, 0, 19, 26265, 40, 0, 0, 0, 0, 0, 'Time = 6 seconds (OOC) - Closest alive creature Saragosa\'s End Invisman (26265) in 40 yards: Remove aura due to spell Blue Power Focus (46789)'),
12+
(@ENTRY, 0, 1, 2, 1, 1, 100, 1, 12000, 12000, 0, 0, 12, 26232, 1, 120000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Time = 12 seconds (OOC) - Self: Summon creature Saragosa (26232) at Self\'s position, moved by offset (0, 0, 0, 0) as summon type timed or dead despawn with duration 120 seconds'),
13+
(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Time = 12 seconds (OOC) - Self: Despawn instantly'),
14+
(@ENTRY, 0, 3, 0, 54, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'On just summoned - Set event phase to phase 1');
15+
16+
17+
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 26231 AND `SourceId` = 0;

0 commit comments

Comments
 (0)