/sql/old/ancient/3.3.5a/TDB49_to_TDB50_updates/world/2012_10_21_01_world_misc.sql

https://gitlab.com/trinitycore/TrinityCore_434 · SQL · 37 lines · 22 code · 7 blank · 8 comment · 0 complexity · 9321620eadca53f6549b779d06e8af94 MD5 · raw file

  1. -- Area conditions for Plant Chieftains Totem
  2. DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=56765;
  3. INSERT INTO `conditions`(`SourceTypeOrReferenceId`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ErrorTextId`,`Comment`) VALUES
  4. (17,56765,29,30446,15,64,'Plant Chieftains Totem only useable next to Rift');
  5. -- Apply Close Rift to The Chieftain's Totem
  6. DELETE FROM `creature_template_addon` WHERE `entry`=30444;
  7. INSERT INTO `creature_template_addon`(`entry`,`auras`) VALUES
  8. (30444,'56763');
  9. -- Assign aura script to Close Rift
  10. DELETE FROM `spell_script_names` WHERE `spell_id`=56763;
  11. INSERT INTO `spell_script_names`(`spell_id`,`ScriptName`) VALUES
  12. (56763,'spell_close_rift');
  13. -- Target conditions for spell triggered by Close Rift Periodic
  14. DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry` IN (56764,61665);
  15. INSERT INTO `conditions`(`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`Comment`) VALUES
  16. (13,1,56764,31,3,30446,'Close Rift Periodic targets Frostfloe Rift'),
  17. (13,1,61665,31,3,30446,'Despawn Rift targets Frostfloe Rift');
  18. -- Assign SmartAI to Frostfloe Rift
  19. UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName`='' WHERE `entry`=30446;
  20. -- Create SAI for Frostfloe Rift
  21. DELETE FROM `smart_scripts` WHERE `entryorguid`=30446 AND `source_type`=0;
  22. INSERT INTO `smart_scripts`(`entryorguid`,`id`,`link`,`event_type`,`event_param1`,`action_type`,`action_param1`,`action_param2`,`target_type`,`comment`) VALUES
  23. (30446,1,2,8,61665,45,1,1,7,'Frostfloe Rift - On spell hit - Set data of invoker'),
  24. (30446,2,0,61,0,41,0,0,1,'Frostfloe Rift - On spell hit - Despawn');
  25. -- Assign SmartAI to Chieftain's Totem
  26. UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName`='' WHERE `entry`=30444;
  27. -- Create SAI for Chieftain's Totem
  28. DELETE FROM `smart_scripts` WHERE `entryorguid`=30444 AND `source_type`=0;
  29. INSERT INTO `smart_scripts`(`entryorguid`,`event_type`,`event_param1`,`event_param2`,`action_type`,`action_param1`,`target_type`,`comment`) VALUES
  30. (30444,38,1,1,33,30444,23,'Chieftains Totem - On data set - Give quest credit');