Advertisement
_Stuff_

In Progress: Glop, Son of Glop (Quest=28390)

Apr 12th, 2020
925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 10.16 KB | None | 0 0
  1. DELETE FROM `creature_template_addon` WHERE `entry` IN (43372, 43503);
  2. INSERT INTO `creature_template_addon` (`entry`, `mount`, `bytes1`, `bytes2`, `auras`) VALUES
  3. (43372, 0, 0, 0x1, '81084'),
  4. (43503, 0, 0, 0x1, '79949');
  5.  
  6. DELETE FROM `gossip_menu` WHERE (`menuid`=11739 AND `textid`=16433);
  7. INSERT INTO `gossip_menu` (`menuid`, `textid`) VALUES
  8. (11739, 16433);
  9.  
  10. DELETE FROM `gossip_menu_option` WHERE (`menuid`=11739 AND `optionid`=1);
  11. INSERT INTO `gossip_menu_option` (`menuid`, `optionid`, `optionicon`, `optiontext`) VALUES
  12. (11739, 1, 0, 'I\'m ready when you are, Norsala.');
  13.  
  14. UPDATE creature_template SET gossip_menu_id = 11739 WHERE entry = 43503;
  15.  
  16. DELETE FROM `creature_text` WHERE CreatureID IN (43503, 43372);
  17. INSERT INTO `creature_text` (`CreatureID`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
  18. (43503, 0, 0, 'Let''s finish with this quickly.', 12, 0, 100, 0, 0, 21030, 'Earthmender Norsala'),
  19. (43503, 1, 0, 'You''ve caused enough damage, Glop. The earth welcomes you no longer.', 14, 0, 100, 0, 0, 21031, 'Earthmender Norsala'),
  20. (43503, 2, 0, 'After him, quickly!', 14, 0, 100, 0, 0, 21032, 'Earthmender Norsala'),
  21. (43503, 3, 0, 'Slippery little stone trogg.', 12, 0, 100, 0, 0, 21033, 'Earthmender Norsala'),
  22. (43503, 4, 0, 'You kiddin'' me...', 12, 0, 100, 0, 0, 21034, 'Earthmender Norsala'),
  23.  
  24. (43372, 0, 0, 'No no no! Leave Glop alone! My mushrooms! Mine!', 14, 0, 100, 0, 0, 21769, 'Fungalmancer Glop'),
  25. (43372, 1, 0, 'Stay back! Back!', 14, 0, 100, 0, 0, 21772, 'Fungalmancer Glop'),
  26. (43372, 2, 0, 'Mean... rock fiends...', 14, 0, 100, 0, 0, 21773, 'Fungalmancer Glop');
  27.  
  28. SET @SPELL_FUNGULMANCER_KILL_CREDIT = 96188;
  29. SET @SPELL_THROW_BOOMSHROOM = 81320;
  30.  
  31. UPDATE creature_template SET AIName = 'SmartAI', unit_flags = 0 WHERE entry = 43372;
  32. DELETE FROM `smart_scripts` WHERE entryorguid = 43372 AND source_type = 0;
  33. 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
  34. (43372, 0, 0, 1, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  35. (43372, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  36. (43372, 0, 2, 0, 0, 1, 100, 0, 6000, 8000, 4000, 8000, 11, @SPELL_THROW_BOOMSHROOM, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  37. (43372, 0, 3, 0, 2, 0, 100, 1, 0, 90, 0, 0, 80, 43372*100+0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  38. (43372, 0, 4, 0, 2, 0, 100, 1, 0, 70, 0, 0, 80, 43372*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  39. (43372, 0, 5, 0, 2, 0, 100, 1, 0, 40, 0, 0, 80, 43372*100+2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  40. (43372, 0, 6, 0, 2, 0, 100, 1, 0, 20, 0, 0, 80, 43372*100+3, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  41. (43372, 0, 7, 8, 6, 0, 100, 1, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  42. (43372, 0, 8, 0, 61, 0, 100, 1, 0, 50, 0, 0, 11, @SPELL_FUNGULMANCER_KILL_CREDIT, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  43. (43372, 0, 9, 0, 40, 0, 100, 0, 1, 0, 0, 0, 54, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  44. (43372, 0, 10, 0, 34, 0, 100, 0, 0, 4, 0, 0, 69, 5, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1536.498, -521.337, 168.546, 0, ' - - Target'),
  45. (43372, 0, 11, 0, 34, 0, 100, 0, 0, 5, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1536.498, -521.337, 168.546, 0, ' - - Target'),
  46. (43372, 0, 12, 13, 34, 0, 100, 0, 0, 1, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  47. (43372, 0, 13, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  48. (43372, 0, 14, 15, 34, 0, 100, 0, 0, 2, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  49. (43372, 0, 15, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  50. (43372, 0, 16, 17, 34, 0, 100, 0, 0, 3, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  51. (43372, 0, 17, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  52. -- (43372, 0, 18, 19, 34, 0, 100, 0, 0, 4, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  53. -- (43372, 0, 19, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  54. (43372, 0, 20, 21, 34, 0, 100, 0, 0, 5, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  55. (43372, 0, 21, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  56. (43372, 0, 22, 0, 25, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target');
  57.  
  58. DELETE FROM `smart_scripts` WHERE entryorguid = 43372*100+0 AND source_type = 9;
  59. 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
  60. (43372*100+0, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  61. (43372*100+0, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  62. (43372*100+0, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1575.645, -482.186, 167.015, 0, ' - - Target'),
  63. (43372*100+0, 9, 3, 0, 0, 0, 100, 0, 100, 100, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1575.645, -482.186, 167.015, 0, ' - - Target');
  64.  
  65. DELETE FROM `smart_scripts` WHERE entryorguid = 43372*100+1 AND source_type = 9;
  66. 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
  67. (43372*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  68. (43372*100+1, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1565.07, -425.377, 170.420, 0, ' - - Target'),
  69. (43372*100+1, 9, 2, 0, 0, 0, 100, 0, 100, 100, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1565.07, -425.377, 170.420, 0, ' - - Target');
  70.  
  71. DELETE FROM `smart_scripts` WHERE entryorguid = 43372*100+2 AND source_type = 9;
  72. 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
  73. (43372*100+2, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  74. (43372*100+2, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1499.626, -439.603, 169.883, 0, ' - - Target'),
  75. (43372*100+2, 9, 2, 0, 0, 0, 100, 0, 100, 100, 0, 0, 69, 3, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1499.626, -439.603, 169.883, 0, ' - - Target');
  76.  
  77. DELETE FROM `smart_scripts` WHERE entryorguid = 43372*100+3 AND source_type = 9;
  78. 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
  79. (43372*100+3, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  80. (43372*100+3, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1479.022, -511.723, 168.567, 0, ' - - Target'),
  81. (43372*100+3, 9, 2, 0, 0, 0, 100, 0, 100, 100, 0, 0, 69, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1479.022, -511.723, 168.567, 0, ' - - Target'),
  82. (43372*100+3, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1536.498, -521.337, 168.546, 0, ' - - Target');
  83.  
  84. SET @SPELL_BOOMSHROOM_EXPLOSION                             = 81319;
  85. SET @SPELL_GROW_STACKER                                     = 91861;
  86. SET @SPELL_ACHIEVEMENT_CHECK_CLEAR_FUNGALOPHOBIA    = 95541; -- TODO: clears player aura 95540 (at the end will fail or receive achievment)
  87.  
  88. UPDATE creature_template SET AIName = 'SmartAI', unit_flags = 541184 WHERE entry = 43501;
  89. DELETE FROM `smart_scripts` WHERE entryorguid = 43501 AND source_type = 0;
  90. 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
  91. (43501, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 75, @SPELL_GROW_STACKER, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  92. (43501, 0, 1, 2, 0, 0, 100, 1, 3000, 3000, 0, 0, 11, @SPELL_BOOMSHROOM_EXPLOSION, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  93. (43501, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 11, @SPELL_ACHIEVEMENT_CHECK_CLEAR_FUNGALOPHOBIA, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  94. (43501, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target'),
  95. (43501, 0, 4, 0, 4, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' - - Target');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement