Guest User

Untitled

a guest
May 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. -- Vyčarování portálu do SC po nabrání q + Gossip
  2. SET @GUID_TIRION := 821056; -- quest giver
  3. SET @NPC_TIRION := 31044; -- Tirion
  4. SET @QUEST_REQUIRE := 13081; -- quest The Will of the Naaru
  5. SET @NPC_RHYDIAN := 30656; -- Summoner portalu
  6. SET @GUID_RHYDIAN := 821053; -- Summoner portalu
  7. SET @SPELL_SC_PORT := 57676; -- portal
  8. SET @GOSSIP := 30656;
  9.  
  10. UPDATE `creature_template` SET `gossip_menu_id`=@GOSSIP WHERE `entry`=@GOSSIP;
  11. DELETE FROM `gossip_menu` WHERE `entry`=@GOSSIP;
  12. INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES (@GOSSIP, 1);
  13. DELETE FROM `gossip_menu_option` WHERE `menu_id`=@GOSSIP;
  14. INSERT INTO `gossip_menu_option` (`menu_id` ,`id` ,`option_icon` ,`option_text` ,`option_id` ,`npc_option_npcflag` ,`action_menu_id` ,`action_poi_id` ,`action_script_id` ,`box_coded` ,`box_money` ,`box_text`) VALUES
  15. (@GOSSIP, 0, 0, 'Hail. I could not help but overhear your conversation. Please allow me to lend some assistance.', 1, 1, 0, 0, @GOSSIP, 0, 0, NULL);
  16. DELETE FROM `conditions` WHERE `SourceGroup`=@GOSSIP;
  17. INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
  18. (15, @GOSSIP, 0, 0, 9, @QUEST_REQUIRE, 0, 0, 0, '', 'Rhydian portal to Shattrath');
  19.  
  20. -- SAI
  21. -- Tirion
  22. UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@NPC_TIRION;
  23. DELETE FROM `smart_scripts` WHERE `entryorguid`=@GUID_TIRION AND `source_type`=0;
  24. 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
  25. (@GUID_TIRION, 0, 0, 0, 19, 0, 100, 1, @QUEST_REQUIRE, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, @GUID_RHYDIAN, @NPC_RHYDIAN, 0, 0, 0, 0, 0, 'Tirion - On Q Accept - Set Data for Rhydian');
  26. -- Rhydian
  27. UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='', `npcflag`=1 WHERE `entry` =@NPC_RHYDIAN;
  28. DELETE FROM `smart_scripts` WHERE `entryorguid` =@GUID_RHYDIAN;
  29. 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
  30. (@GUID_RHYDIAN, 0, 0, 0, 38, 0, 100, 1, 1, 1, 0, 0, 11, @SPELL_SC_PORT, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rhydian - On Data from Tirion - Summon portal SC'),
  31. (@GUID_RHYDIAN, 0, 1, 2, 62, 0, 100, 0, @GOSSIP, 0, 0, 0, 11, @SPELL_SC_PORT, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rhydian - On gossip select - Cast Portal On Self'),
  32. (@GUID_RHYDIAN, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Rhydian - On gossip select - Close gossip');
Add Comment
Please, Sign In to add comment