diff --git a/data/sql/updates/pending_db_world/rev_1776695444.sql b/data/sql/updates/pending_db_world/rev_1776695444.sql new file mode 100644 index 000000000..221aa9cfc --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1776695444.sql @@ -0,0 +1,218 @@ + +-- Set equipment_id to 0 +UPDATE `creature` SET `equipment_id` = 0 WHERE (`id1` IN (29519, 29520, 29565, 29566, 29567)); + +-- Set Emotes for Unworthy Initiate texts. +UPDATE `creature_text` SET `Emote` = 1 WHERE `GroupID` = 0 AND (`CreatureID` IN (29519, 29520, 29565, 29566, 29567)); +UPDATE `creature_text` SET `Emote` = 397 WHERE `GroupID` = 1 AND (`CreatureID` IN (29519, 29520, 29565, 29566, 29567)); + +-- Set SAI for Acherus Soul Prisons. +UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI', `ScriptName` = '' WHERE (`entry` IN (191577, 191580, 191581, 191582, 191583, 191584, 191585, 191586, 191587, 191588, 191589, 191590)); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 1) AND (`entryorguid` IN (191577, 191580, 191581, 191582, 191583, 191584, 191585, 191586, 191587, 191588, 191589, 191590)); +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 +(191577, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191577, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191577, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191580, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191580, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191580, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191581, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191581, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191581, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191582, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191582, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191582, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191583, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191583, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191583, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191584, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191584, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191584, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191585, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191585, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191585, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191586, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191586, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191586, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191587, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191587, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191587, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191588, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191588, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191588, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191589, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191589, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191589, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'), +(191590, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Store Targetlist'), +(191590, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Send Target 1'), +(191590, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 20, 0, 0, 0, 0, 0, 19, 29521, 2, 0, 0, 0, 0, 0, 0, 'Acherus Soul Prison - On Gossip Hello - Do Action ID 20'); + +-- Set SAI for Unworthy Initiates. +UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE (`entry` IN (29519, 29520, 29565, 29566, 29567)); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0) AND (`entryorguid` IN (29519, 29520, 29565, 29566, 29567)); +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 +(29519, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 18, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Flags Immune To Players'), +(29519, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Reactstate Passive'), +(29519, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 54612, 2, 0, 0, 0, 0, 19, 29521, 5, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Cast \'Chained Peasant (Chest)\''), +(29519, 0, 3, 4, 72, 0, 100, 0, 21, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Remove Aura \'Chained Peasant (Chest)\''), +(29519, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 80, 2951900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Run Script'), +(29519, 0, 5, 0, 0, 0, 100, 0, 1000, 1000, 5000, 5000, 0, 0, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Icy Touch\''), +(29519, 0, 6, 0, 0, 0, 100, 0, 2000, 2000, 5000, 5000, 0, 0, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Blood Strike\''), +(29519, 0, 7, 0, 0, 0, 100, 0, 3000, 3000, 5000, 5000, 0, 0, 11, 52373, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Plague Strike\''), +(29519, 0, 8, 0, 0, 0, 100, 0, 5000, 5000, 5000, 5000, 0, 0, 11, 52375, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Death Coil\''), +(29519, 0, 9, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Evade - Despawn In 3000 ms'), +(29519, 0, 10, 0, 1, 1, 100, 0, 15000, 15000, 15000, 15000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Out of Combat - Despawn Instant (Phase 1)'), +(29520, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 18, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Flags Immune To Players'), +(29520, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Reactstate Passive'), +(29520, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 54612, 2, 0, 0, 0, 0, 19, 29521, 5, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Cast \'Chained Peasant (Chest)\''), +(29520, 0, 3, 4, 72, 0, 100, 0, 21, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Remove Aura \'Chained Peasant (Chest)\''), +(29520, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 80, 2951900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Run Script'), +(29520, 0, 5, 0, 0, 0, 100, 0, 1000, 1000, 5000, 5000, 0, 0, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Icy Touch\''), +(29520, 0, 6, 0, 0, 0, 100, 0, 2000, 2000, 5000, 5000, 0, 0, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Blood Strike\''), +(29520, 0, 7, 0, 0, 0, 100, 0, 3000, 3000, 5000, 5000, 0, 0, 11, 52373, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Plague Strike\''), +(29520, 0, 8, 0, 0, 0, 100, 0, 5000, 5000, 5000, 5000, 0, 0, 11, 52375, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Death Coil\''), +(29520, 0, 9, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Evade - Despawn In 3000 ms'), +(29520, 0, 10, 0, 1, 1, 100, 0, 15000, 15000, 15000, 15000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Out of Combat - Despawn Instant (Phase 1)'), +(29565, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 18, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Flags Immune To Players'), +(29565, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Reactstate Passive'), +(29565, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 54612, 2, 0, 0, 0, 0, 19, 29521, 5, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Cast \'Chained Peasant (Chest)\''), +(29565, 0, 3, 4, 72, 0, 100, 0, 21, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Remove Aura \'Chained Peasant (Chest)\''), +(29565, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 80, 2951900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Run Script'), +(29565, 0, 5, 0, 0, 0, 100, 0, 1000, 1000, 5000, 5000, 0, 0, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Icy Touch\''), +(29565, 0, 6, 0, 0, 0, 100, 0, 2000, 2000, 5000, 5000, 0, 0, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Blood Strike\''), +(29565, 0, 7, 0, 0, 0, 100, 0, 3000, 3000, 5000, 5000, 0, 0, 11, 52373, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Plague Strike\''), +(29565, 0, 8, 0, 0, 0, 100, 0, 5000, 5000, 5000, 5000, 0, 0, 11, 52375, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Death Coil\''), +(29565, 0, 9, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Evade - Despawn In 3000 ms'), +(29565, 0, 10, 0, 1, 1, 100, 0, 15000, 15000, 15000, 15000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Out of Combat - Despawn Instant (Phase 1)'), +(29566, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 18, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Flags Immune To Players'), +(29566, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Reactstate Passive'), +(29566, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 54612, 2, 0, 0, 0, 0, 19, 29521, 5, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Cast \'Chained Peasant (Chest)\''), +(29566, 0, 3, 4, 72, 0, 100, 0, 21, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Remove Aura \'Chained Peasant (Chest)\''), +(29566, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 80, 2951900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Run Script'), +(29566, 0, 5, 0, 0, 0, 100, 0, 1000, 1000, 5000, 5000, 0, 0, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Icy Touch\''), +(29566, 0, 6, 0, 0, 0, 100, 0, 2000, 2000, 5000, 5000, 0, 0, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Blood Strike\''), +(29566, 0, 7, 0, 0, 0, 100, 0, 3000, 3000, 5000, 5000, 0, 0, 11, 52373, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Plague Strike\''), +(29566, 0, 8, 0, 0, 0, 100, 0, 5000, 5000, 5000, 5000, 0, 0, 11, 52375, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Death Coil\''), +(29566, 0, 9, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Evade - Despawn In 3000 ms'), +(29566, 0, 10, 0, 1, 1, 100, 0, 15000, 15000, 15000, 15000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Out of Combat - Despawn Instant (Phase 1)'), +(29567, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 18, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Flags Immune To Players'), +(29567, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Set Reactstate Passive'), +(29567, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 54612, 2, 0, 0, 0, 0, 19, 29521, 5, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Respawn - Cast \'Chained Peasant (Chest)\''), +(29567, 0, 3, 4, 72, 0, 100, 0, 21, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Remove Aura \'Chained Peasant (Chest)\''), +(29567, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 80, 2951900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Action 21 Done - Run Script'), +(29567, 0, 5, 0, 0, 0, 100, 0, 1000, 1000, 5000, 5000, 0, 0, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Icy Touch\''), +(29567, 0, 6, 0, 0, 0, 100, 0, 2000, 2000, 5000, 5000, 0, 0, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Blood Strike\''), +(29567, 0, 7, 0, 0, 0, 100, 0, 3000, 3000, 5000, 5000, 0, 0, 11, 52373, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Plague Strike\''), +(29567, 0, 8, 0, 0, 0, 100, 0, 5000, 5000, 5000, 5000, 0, 0, 11, 52375, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - In Combat - Cast \'Death Coil\''), +(29567, 0, 9, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - On Evade - Despawn In 3000 ms'), +(29567, 0, 10, 0, 1, 1, 100, 0, 15000, 15000, 15000, 15000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Out of Combat - Despawn Instant (Phase 1)'); + +-- Set Action List. +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` = 2951900); +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 +(2951900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Remove FlagStandstate Kneel'), +(2951900, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Say Line 0'), +(2951900, 9, 2, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 0, 66, 1, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Set Orientation [unsupported target type]'), +(2951900, 9, 3, 0, 0, 0, 100, 0, 500, 500, 0, 0, 0, 0, 46, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Move Forward 2 Yards'), +(2951900, 9, 4, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 0, 5, 381, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Play Emote 381'), +(2951900, 9, 5, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 0, 11, 51519, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Cast \'Death Knight Initiate Visual\''), +(2951900, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 124, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Load Equipment Id 1'), +(2951900, 9, 7, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Set Orientation Stored'), +(2951900, 9, 8, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Say Line 1'), +(2951900, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Set Event Phase 1'), +(2951900, 9, 10, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Set Faction 14'), +(2951900, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 19, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Remove Flags Immune To Players'), +(2951900, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Set Reactstate Aggressive'), +(2951900, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate - Actionlist - Start Attacking'); + +-- Set SAI for Unworthy Initiate Anchor. +UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = 29521; + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0) AND (`entryorguid` IN (-128571, -128567, -128570, -128576, -128565, -128574, -128573, -128568, -128566, -128572, -128575, -128569)); +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 +(-128571, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128571, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65915, 191577, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128571, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65915, 191577, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128571, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65915, 191577, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128571, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128571, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128571, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128567, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128567, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65916, 191580, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128567, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65916, 191580, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128567, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65916, 191580, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128567, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128567, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128567, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128570, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128570, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65920, 191581, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128570, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65920, 191581, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128570, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65920, 191581, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128570, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128570, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128570, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128576, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128576, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65921, 191582, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128576, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65921, 191582, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128576, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65921, 191582, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128576, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128576, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128576, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128565, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128565, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65923, 191583, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128565, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65923, 191583, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128565, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65923, 191583, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128565, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128565, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128565, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128574, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128574, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65925, 191584, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128574, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65925, 191584, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128574, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65925, 191584, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128574, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128574, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128574, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128573, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128573, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65926, 191585, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128573, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65926, 191585, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128573, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65926, 191585, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128573, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128573, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128573, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128568, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128568, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65927, 191586, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128568, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65927, 191586, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128568, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65927, 191586, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128568, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128568, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128568, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128566, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128566, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65928, 191587, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128566, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65928, 191587, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128566, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65928, 191587, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128566, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128566, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128566, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128572, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128572, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65929, 191588, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128572, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65929, 191588, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128572, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65929, 191588, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128572, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128572, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128572, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128575, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128575, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65930, 191589, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128575, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65930, 191589, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128575, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65930, 191589, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128575, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128575, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128575, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'), +(-128569, 0, 0, 1, 8, 0, 100, 0, 54612, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Store Targetlist'), +(-128569, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 0, 14, 65931, 191590, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set GO State To 1'), +(-128569, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 65931, 191590, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Set Lootstate Ready'), +(-128569, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 0, 14, 65931, 191590, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Spellhit \'Chained Peasant (Chest)\' - Remove Gameobject Flags In Use'), +(-128569, 0, 4, 5, 72, 0, 100, 0, 20, 0, 0, 0, 0, 0, 28, 54612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Remove Aura \'Chained Peasant (Chest)\''), +(-128569, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Send Target 1'), +(-128569, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 21, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Unworthy Initiate Anchor - On Action 20 Done - Do Action ID 21'); diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp index 0fc4e7d23..bcc48a812 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp @@ -314,286 +314,7 @@ public: enum UnworthyInitiate { - SPELL_SOUL_PRISON_CHAIN = 54612, SPELL_DK_INITIATE_VISUAL = 51519, - - SPELL_ICY_TOUCH = 52372, - SPELL_PLAGUE_STRIKE = 52373, - SPELL_BLOOD_STRIKE = 52374, - SPELL_DEATH_COIL = 52375, - - SAY_EVENT_START = 0, - SAY_EVENT_ATTACK = 1, - - EVENT_ICY_TOUCH = 1, - EVENT_PLAGUE_STRIKE = 2, - EVENT_BLOOD_STRIKE = 3, - EVENT_DEATH_COIL = 4 -}; - -enum UnworthyInitiatePhase -{ - PHASE_CHAINED, - PHASE_TO_EQUIP, - PHASE_EQUIPING, - PHASE_TO_ATTACK, - PHASE_ATTACKING, -}; - -uint32 acherus_soul_prison[12] = -{ - 191577, - 191580, - 191581, - 191582, - 191583, - 191584, - 191585, - 191586, - 191587, - 191588, - 191589, - 191590 -}; - -//uint32 acherus_unworthy_initiate[5] = -//{ -// 29519, -// 29520, -// 29565, -// 29566, -// 29567 -//}; - -class npc_unworthy_initiate : public CreatureScript -{ -public: - npc_unworthy_initiate() : CreatureScript("npc_unworthy_initiate") { } - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_unworthy_initiateAI(creature); - } - - struct npc_unworthy_initiateAI : public ScriptedAI - { - npc_unworthy_initiateAI(Creature* creature) : ScriptedAI(creature) - { - me->SetReactState(REACT_PASSIVE); - if (!me->GetCurrentEquipmentId()) - me->SetCurrentEquipmentId(me->GetOriginalEquipmentId()); - } - - ObjectGuid playerGUID; - UnworthyInitiatePhase phase; - uint32 wait_timer; - float anchorX, anchorY; - ObjectGuid anchorGUID; - - EventMap events; - - void Reset() override - { - anchorGUID.Clear(); - phase = PHASE_CHAINED; - events.Reset(); - me->SetFaction(FACTION_CREATURE); - me->SetImmuneToPC(true); - me->SetUInt32Value(UNIT_FIELD_BYTES_1, 8); - me->LoadEquipment(0, true); - } - - void JustEngagedWith(Unit* /*who*/) override - { - events.ScheduleEvent(EVENT_ICY_TOUCH, 1s, GCD_CAST); - events.ScheduleEvent(EVENT_PLAGUE_STRIKE, 3s, GCD_CAST); - events.ScheduleEvent(EVENT_BLOOD_STRIKE, 2s, GCD_CAST); - events.ScheduleEvent(EVENT_DEATH_COIL, 5s, GCD_CAST); - } - - void MovementInform(uint32 type, uint32 id) override - { - if (type != POINT_MOTION_TYPE) - return; - - if (id == 1) - { - wait_timer = 5000; - me->LoadEquipment(1); - me->CastSpell(me, SPELL_DK_INITIATE_VISUAL, true); - - if (Player* starter = ObjectAccessor::GetPlayer(*me, playerGUID)) - Talk(SAY_EVENT_ATTACK, starter); - - phase = PHASE_TO_ATTACK; - } - } - - void EventStart(Creature* anchor, Player* target) - { - wait_timer = 5000; - phase = PHASE_TO_EQUIP; - - me->SetUInt32Value(UNIT_FIELD_BYTES_1, 0); - me->RemoveAurasDueToSpell(SPELL_SOUL_PRISON_CHAIN); - - float z; - anchor->GetContactPoint(me, anchorX, anchorY, z, 1.0f); - - playerGUID = target->GetGUID(); - Talk(SAY_EVENT_START, target); - } - - void UpdateAI(uint32 diff) override - { - switch (phase) - { - case PHASE_CHAINED: - if (!anchorGUID) - { - if (Creature* anchor = me->FindNearestCreature(29521, 30)) - { - anchor->AI()->SetGUID(me->GetGUID()); - anchor->CastSpell(me, SPELL_SOUL_PRISON_CHAIN, true); - anchorGUID = anchor->GetGUID(); - } - - float dist = 99.0f; - GameObject* prison = nullptr; - - for (uint8 i = 0; i < 12; ++i) - { - if (GameObject* temp_prison = me->FindNearestGameObject(acherus_soul_prison[i], 100)) - { - if (me->IsWithinDist(temp_prison, dist, false)) - { - dist = me->GetDistance2d(temp_prison); - prison = temp_prison; - } - } - } - // Must check for loot state as out of order updates will reset - // the prison gameobject during spawn causing invalid state - if (prison && prison->getLootState() != GO_NOT_READY) - prison->ResetDoorOrButton(); - } - break; - case PHASE_TO_EQUIP: - if (wait_timer) - { - if (wait_timer > diff) - wait_timer -= diff; - else - { - me->GetMotionMaster()->MovePoint(1, anchorX, anchorY, me->GetPositionZ()); - //LOG_DEBUG("scripts.ai", "npc_unworthy_initiateAI: move to {} {} {}", anchorX, anchorY, me->GetPositionZ()); - phase = PHASE_EQUIPING; - wait_timer = 0; - } - } - break; - case PHASE_TO_ATTACK: - if (wait_timer) - { - if (wait_timer > diff) - wait_timer -= diff; - else - { - me->SetFaction(FACTION_MONSTER); - me->SetImmuneToPC(false); - phase = PHASE_ATTACKING; - - if (Player* target = ObjectAccessor::GetPlayer(*me, playerGUID)) - AttackStart(target); - wait_timer = 0; - } - } - break; - case PHASE_ATTACKING: - if (!UpdateVictim()) - return; - - events.Update(diff); - - while (uint32 eventId = events.ExecuteEvent()) - { - switch (eventId) - { - case EVENT_ICY_TOUCH: - DoCastVictim(SPELL_ICY_TOUCH); - events.DelayEvents(1s, GCD_CAST); - events.ScheduleEvent(EVENT_ICY_TOUCH, 5s, GCD_CAST); - break; - case EVENT_PLAGUE_STRIKE: - DoCastVictim(SPELL_PLAGUE_STRIKE); - events.DelayEvents(1s, GCD_CAST); - events.ScheduleEvent(EVENT_PLAGUE_STRIKE, 5s, GCD_CAST); - break; - case EVENT_BLOOD_STRIKE: - DoCastVictim(SPELL_BLOOD_STRIKE); - events.DelayEvents(1s, GCD_CAST); - events.ScheduleEvent(EVENT_BLOOD_STRIKE, 5s, GCD_CAST); - break; - case EVENT_DEATH_COIL: - DoCastVictim(SPELL_DEATH_COIL); - events.DelayEvents(1s, GCD_CAST); - events.ScheduleEvent(EVENT_DEATH_COIL, 5s, GCD_CAST); - break; - } - } - - DoMeleeAttackIfReady(); - break; - default: - break; - } - } - }; -}; - -class npc_unworthy_initiate_anchor : public CreatureScript -{ -public: - npc_unworthy_initiate_anchor() : CreatureScript("npc_unworthy_initiate_anchor") { } - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_unworthy_initiate_anchorAI(creature); - } - - struct npc_unworthy_initiate_anchorAI : public PassiveAI - { - npc_unworthy_initiate_anchorAI(Creature* creature) : PassiveAI(creature) {} - - ObjectGuid prisonerGUID; - - void SetGUID(ObjectGuid const& guid, int32 /*id*/) override - { - if (!prisonerGUID) - prisonerGUID = guid; - } - - ObjectGuid GetGUID(int32 /*id*/) const override - { - return prisonerGUID; - } - }; -}; - -class go_acherus_soul_prison : public GameObjectScript -{ -public: - go_acherus_soul_prison() : GameObjectScript("go_acherus_soul_prison") { } - - bool OnGossipHello(Player* player, GameObject* go) override - { - if (Creature* anchor = go->FindNearestCreature(29521, 15)) - if (ObjectGuid prisonerGUID = anchor->AI()->GetGUID()) - if (Creature* prisoner = ObjectAccessor::GetCreature(*player, prisonerGUID)) - CAST_AI(npc_unworthy_initiate::npc_unworthy_initiateAI, prisoner->AI())->EventStart(anchor, player); - - return false; - } }; class spell_death_knight_initiate_visual : public SpellScript @@ -732,9 +453,6 @@ void AddSC_the_scarlet_enclave_c1() RegisterSpellScript(spell_q12698_the_gift_that_keeps_on_giving); new npc_scarlet_ghoul(); new npc_dkc1_gothik(); - new npc_unworthy_initiate(); - new npc_unworthy_initiate_anchor(); - new go_acherus_soul_prison(); RegisterSpellScript(spell_death_knight_initiate_visual); RegisterSpellScript(spell_lich_king_whisper); RegisterSpellScript(spell_lich_king_vo_blocker);