fix(Scripts/Midsummer): Implement Ribbon Pole dance effects (#17417)

* fix(Scripts/Midsummer): Implement Ribbon Pole dance effects

* midsummer.cpp: remove whitespaces at end of lines

* midsummer.cpp: fix unused parameter error

* add spacing after 0.0f

* replace Milliseconds(...) by ...ms and Seconds(...) by ...s

* cleanup comments

* remove manual cleanups / despawns from DoCleanupChecks()

- rely on NPC despawn timers
- manual cleanup / removal actually is a bit excessive

* set INTERVAL_DANCING_FLAMES to 15s

* set despawn time to 1min for big dancing flames according to spell 46827

* set spawnDist to 12 for big dancing flames according so spell 46827

* use library function Acore::Containers::RandomShuffle() to shuffle _danclerList

* sql: do not set SmartAI for NPC 17066

already using ScriptName and can't have both

* combine 3 sql files into 1

* remove INTERVAL_... enum values

* remove unnecessary checks of if(_bunny)

* sql: fix smartscript comment

* rename spell define to correct spell name
This commit is contained in:
Ludwig
2023-10-18 14:22:26 +02:00
committed by GitHub
parent 54ab8dafc2
commit 630b90a633
2 changed files with 279 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
-- midsummer creatureAI npc_midsummer_ribbon_pole_target
UPDATE `creature_template` SET `ScriptName` = 'npc_midsummer_ribbon_pole_target' WHERE `entry` = 17066;
-- midsummer NPC Big Dancing Flame - SmartAI - fire dance spell
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 26267;
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 26267);
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`, `event_param6`, `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
(26267, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 45418, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Big Dancing Flames - On Just Summoned - Cast Spell \'Fire Dancing\'');
-- midsummer add spell script spell_midsummer_ribbon_pole_firework
DELETE FROM `spell_script_names` WHERE `spell_id` = 46847;
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(46847, 'spell_midsummer_ribbon_pole_firework');