DB/SAI: Prevent Gavis Greyshield (involved in quest The End of the Deserters) from getting killed and disable health regen when becoming friendly

Closes #24827

(cherry picked from commit b2ad5d5b2b1a14c15ccc0e116008171fca7aaf30)
This commit is contained in:
Rothend
2022-01-19 21:07:56 +01:00
committed by Shauren
parent ea6619552c
commit b65aff8323
@@ -0,0 +1,9 @@
--
DELETE FROM `smart_scripts` WHERE `entryorguid`=23941 AND `source_type`=0;
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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23941, 0, 0, 0, 11, 0, 100, 0, 0, 15, 0, 0, 0, 42, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - On Respawn - Set Invincible (1 HP)"),
(23941, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 11, 42660, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Cast 'Gavis Greyshield Credit' (No Repeat)"),
(23941, 0, 2, 3, 2, 0, 100, 1, 0, 15, 0, 0, 0, 80, 2394100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Run Script (No Repeat)"),
(23941, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Disable Health Regen"),
(23941, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Set Faction 35"),
(23941, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Set Root On");