Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ulduar: Convert Hodir to BossAI and Spell Lists #441

Closed
wants to merge 14 commits into from

Conversation

insunaa
Copy link
Contributor

@insunaa insunaa commented Feb 22, 2023

🍰 Pullrequest

This PR converts Hodir to BossAI and adds Spell Lists

Todo / Checklist

  • Spell Scripts
  • Testing
DELETE FROM `creature_spell_list` WHERE `Id`  IN (3284500, 3284600);
INSERT INTO `creature_spell_list` (`Id`, `Position`, `SpellId`, `InitialMin`, `InitialMax`, `RepeatMin`, `RepeatMax`, `Flags`, `TargetId`, `ScriptId`, `Availability`, `Probability`, `Comments`) VALUES
(3284500, 0, 61968, 50000, 50000, 40000, 40000, 2,   0,     0, 100, 1, 'Hodir 10 - Flash Freeze'),
(3284500, 1, 62478, 70000, 70000, 60000, 60000, 0,   0, 29281, 100, 1, 'Hodir 10 - Frozen Blows'),
(3284500, 2, 62469, 25000, 30000, 15000, 15000, 2, 100,     0, 100, 1, 'Hodir 10 - Freeze'),
(3284600, 0, 61968, 50000, 50000, 40000, 40000, 2,   0,     0, 100, 1, 'Hodir 25 - Flash Freeze'),
(3284600, 1, 63512, 70000, 70000, 60000, 60000, 0,   0, 29281, 100, 1, 'Hodir 25 - Frozen Blows'),
(3284600, 2, 62469, 25000, 30000, 15000, 15000, 2, 100,     0, 100, 1, 'Hodir 25 - Freeze');

DELETE FROM `creature_spell_list_entry` WHERE `Id` IN (3284500, 3284600);
INSERT INTO `creature_spell_list_entry` VALUES
(3284500, 'Ulduar - Hodir (10)', 100, 100),
(3284600, 'Ulduar - Hodir (25)', 100, 100);

UPDATE `creature_template` SET `SpellList`=3284500 WHERE `entry`=32845;
UPDATE `creature_template` SET `SpellList`=3284600 WHERE `entry`=32846;

DELETE FROM `dbscripts_on_relay` WHERE `id` IN (29280, 29282, 29281);
INSERT INTO `dbscripts_on_relay` (`id`, `command`, `dataint`, `comments`) VALUES
(29281, 0, 33313, 'Hodir - Emote Frozen Blows');

INSERT INTO `dbscripts_on_relay` (`id`, `command`, `datalong`, `datalong2`, `comments`) VALUES
(29281, 16, 15556, 0, 'Hodir - Play Sound Frozen Blows');

UPDATE `broadcast_text` SET `ChatTypeID`=3 WHERE `Id`=33314;
UPDATE `broadcast_text` SET `ChatTypeID`=3 WHERE `Id`=33313;
UPDATE `broadcast_text` SET `ChatTypeID`=1,`SoundEntriesID1`=15552 WHERE `Id`=34336;
UPDATE `broadcast_text` SET `ChatTypeID`=1,`SoundEntriesID1`=15553 WHERE `Id`=34337;
UPDATE `broadcast_text` SET `ChatTypeID`=1,`SoundEntriesID1`=15554 WHERE `Id`=34338;
UPDATE `broadcast_text` SET `ChatTypeID`=1,`SoundEntriesID1`=15555 WHERE `Id`=34339;
UPDATE `broadcast_text` SET `ChatTypeID`=1,`SoundEntriesID1`=15557 WHERE `Id`=33484;
UPDATE `broadcast_text` SET `ChatTypeID`=1,`SoundEntriesID1`=15558 WHERE `Id`=34340;

DELETE FROM `creature_ai_scripts` WHERE `creature_id` = 33174;
UPDATE `creature_template` SET `AIName` = '', `ScriptName` = 'npc_snowpack_target' WHERE `Entry` = 33174;

DELETE FROM `creature_ai_scripts` WHERE `creature_id` = 33169;
UPDATE `creature_template` SET `AIName` = 'EventAI', `ScriptName` = '' WHERE `Entry` = 33169;
INSERT INTO `creature_ai_scripts` (`id`, `creature_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action1_type`, `action1_param1`, `action1_param2`, `action1_param3`, `action2_type`, `action2_param1`, `action2_param2`, `action2_param3`, `action3_type`, `action3_param1`, `action3_param2`, `action3_param3`, `comment`) VALUES 
(3316901, 33169, 29, 0, 100, 1024, 3500, 3500, 0, 0, 0, 0, 11, 62453, 15, 0, 11, 62236, 15, 2, 0, 0, 0, 0, 'Time = 4 seconds - Self: Cast Icicle (62453) on none, Self: Cast Icicle (62236) on none with flags TRIGGERED, ');

UPDATE `creature_template` SET `StaticFlags1`=`StaticFlags1`|0x00000100|0x02000000 WHERE `entry`=33174;
UPDATE `creature_template` SET `ScriptName`='' WHERE `entry`=33174;

DELETE FROM `string_id` WHERE `Name`='ULDUAR_HODIR_HELPERS';
INSERT INTO `string_id` VALUES
(6030701,'ULDUAR_HODIR_HELPERS');

DELETE FROM `string_id` WHERE `Name`='ULDUAR_HODIR_FIRES';
INSERT INTO `string_id` VALUES
(6030702,'ULDUAR_HODIR_FIRES');

UPDATE `creature_template` SET `StringId1`=6030701 WHERE `entry` IN (32941, 33333, 32950, 33332, 32946, 33331, 32948, 33330, 32901, 33325, 32900, 33328, 32893, 33327, 32897, 33326, 33342);

UPDATE `creature_template` SET `StringId2`=6030702 WHERE `entry`=33342;

-- Testing only!

DELETE FROM `spell_scripts` WHERE `Id` IN (61968, 62038, 62039, 62457, 65272);
INSERT INTO `spell_scripts` VALUES
(61968,'spell_flash_freeze'),
(62038,'spell_biting_cold'),
(62039,'spell_biting_cold_damage'),
(62457,'spell_ice_shards'),
(65272,'spell_shatter_chest'),
(63499,'spell_hodir_dispel_magic');

@al3xc1985
Copy link

@insunaa don;t forget to rebase so I can allocate time to test them

@insunaa
Copy link
Contributor Author

insunaa commented Aug 3, 2024

@al3xc1985 Sorry I've been unusually busy, I'll see if I can get it rebased today

@insunaa
Copy link
Contributor Author

insunaa commented Sep 15, 2024

Alright, did some more testing, some more fixing, imo this PR is now ready to be merged on the Core side. I'll create a new PR on the wotlk-db repo to get the DB parts set. (Some changes to the Core PR will the also occur, because some of the DB changes will probably need to happen in Core SQL files)

@al3xc1985
Copy link

Luv ya! Allways! Maybe we can have all the others in ocre 2 :D

@killerwife killerwife closed this in e522570 Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants