Guest User

Untitled

a guest
Nov 24th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. -- Altruis the Sufferer SAI
  2. -- [Q] Survey the Land
  3. -- [Q] Illidan's Pupil
  4. SET @ENTRY := 18417;
  5. SET @GOSSIP := 53000;
  6. SET @QUEST_SURVEY := 9991;
  7. SET @QUEST_PUPIL := 10646;
  8. UPDATE `quest_template` SET `SpecialFlags`=`SpecialFlags`|2 WHERE `entry` IN (@QUEST_SURVEY,@QUEST_PUPIL);
  9. UPDATE `creature_template` SET `gossip_menu_id`=@GOSSIP+0,`AIName`='SmartAI',`ScriptName`='' WHERE `entry`=@ENTRY;
  10. DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY,@ENTRY*100);
  11. 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
  12. -- Survey the Land
  13. (@ENTRY,0,0,0,62,0,100,0,@GOSSIP+1,0,0,0,52,532,0,0,0,0,0,7,0,0,0,0,0,0,0,"Altruis the Sufferer - On Gossip Select - Activate Taxi Path"),
  14. (@ENTRY,0,1,0,62,0,100,0,@GOSSIP+1,0,0,0,26,@QUEST_SURVEY,0,0,0,0,0,7,0,0,0,0,0,0,0,"Altruis the Sufferer - On Gossip Select - Quest Credit"),
  15. -- Illidan's Pupil
  16. (@ENTRY,0,2,0,62,0,100,0,@GOSSIP+6,0,0,0,26,@QUEST_PUPIL,0,0,0,0,0,7,0,0,0,0,0,0,0,"Altruis the Sufferer - On Gossip Select - Give Quest Credit");
  17.  
  18. DELETE FROM `gossip_menu` WHERE `entry`=@GOSSIP+0 AND `text_id`=9427;
  19. DELETE FROM `gossip_menu` WHERE `entry`=@GOSSIP+1 AND `text_id`=10492;
  20. DELETE FROM `gossip_menu` WHERE `entry`=@GOSSIP+2 AND `text_id`=10493;
  21. DELETE FROM `gossip_menu` WHERE `entry`=@GOSSIP+3 AND `text_id`=10494;
  22. DELETE FROM `gossip_menu` WHERE `entry`=@GOSSIP+4 AND `text_id`=10495;
  23. DELETE FROM `gossip_menu` WHERE `entry`=@GOSSIP+5 AND `text_id`=10497;
  24. INSERT INTO `gossip_menu` (`entry`,`text_id`) VALUES
  25. (@GOSSIP+0,9427), -- Survey the Land
  26. (@GOSSIP+1,10492), -- Illidan's Pupil
  27. (@GOSSIP+2,10493), -- Illidan's Pupil
  28. (@GOSSIP+3,10494), -- Illidan's Pupil
  29. (@GOSSIP+4,10495), -- Illidan's Pupil
  30. (@GOSSIP+5,10497); -- Illidan's Pupil
  31.  
  32. -- Insert menu options
  33. DELETE FROM `gossip_menu_option` WHERE `menu_id` BETWEEN @GOSSIP+0 AND @GOSSIP+6;
  34. INSERT INTO `gossip_menu_option` (`menu_id`,`id`,`option_icon`,`option_text`,`option_id`,`npc_option_npcflag`,`action_menu_id`) VALUES
  35. -- Survey the Land
  36. (@GOSSIP+0,0,0,"Well?",1,3,@GOSSIP+1),
  37. (@GOSSIP+1,0,0,"Ok.",1,3,0),
  38. -- Illidan's Pupil
  39. (@GOSSIP+0,1,0,"Tell me about the demon hunter training grounds at the Ruins of Karabor.",1,3,@GOSSIP+2),
  40. (@GOSSIP+2,0,0,"I'm listening.",1,3,@GOSSIP+3),
  41. (@GOSSIP+3,0,0,"Go on, please.",1,3,@GOSSIP+4),
  42. (@GOSSIP+4,0,0,"Interesting.",1,3,@GOSSIP+5),
  43. (@GOSSIP+5,0,0,"That's quite a story.",1,3,@GOSSIP+6),
  44. (@GOSSIP+6,0,0,"There was something else I wanted to ask you, Altruis.",1,3,@GOSSIP+0); -- Back to first page
  45.  
  46. -- Conditions for gossip menu of quest Survey the Land
  47. DELETE FROM `conditions` WHERE `SourceGroup` IN (@GOSSIP+0,@GOSSIP+10) AND `ConditionValue1` IN (@QUEST_SURVEY,@QUEST_PUPIL);
  48. INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
  49. (15,@GOSSIP+0,0,0,9,@QUEST_SURVEY,0,0,0,'',"Only show first gossip if player is on quest Survey the Land"),
  50. (15,@GOSSIP+0,1,0,9,@QUEST_PUPIL,0,0,0,'',"Only show first gossip if player is on quest Illidans Pupil");
Add Comment
Please, Sign In to add comment