fix(DB\SAI):Mottled Screechers calls for help properly now at low health (#8579)

This commit is contained in:
Ragelezz
2021-10-31 05:04:43 +02:00
committed by GitHub
parent 6c0bd9c2eb
commit 4925bfa31d
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1634467700982963900');
SET @ENTRY := 1021;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = @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, 1, 2, 0, 100, 1, 0, 30, 0, 0, 39, 20, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mottled Screecher - When health between 0%-30% (check once) - Self: Call for help within 20 yards'),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mottled Screecher - When health between 0%-30% (check once) - Self: Talk 0 to invoker');

View File

@@ -145,7 +145,7 @@ void AddSC_tirisfal_glades();
void AddSC_undercity();
void AddSC_western_plaguelands();
void AddSC_westfall();
// void AddSC_wetlands();
//void AddSC_wetlands();
// The name of this function should match:
// void Add${NameOfDirectory}Scripts()