Advertisement
Guest User

Untitled

a guest
Dec 29th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 5.17 KB | None | 0 0
  1. sub EVENT_SPAWN {
  2. $npc->SpellEffect(478, 3000, 0, 1, 0, 0);
  3. #$npc->SpellEffect(469, 3000, 0, 1, 0, 0);
  4. }
  5. sub EVENT_SAY {
  6. my $link1 = quest::saylink("Mission",1);
  7. my $link2 = quest::saylink("Tasks",1);
  8. my $link3 = quest::saylink("Epic 7",1);
  9. my $link4 = quest::saylink("Epic 8",1);
  10. if($text=~/Hail/i){
  11. plugin::Whisper("Greetings, $name! I am here to upgrade your epics , first you need to get the [$link2] to upgrade your epic.  Once you have that you can get your [$link1] which you will need to complete the task.");
  12. #quest::popup("CAUTION", "CAUTION: BE SURE TO CHANGE YOUR ARMOR INTO ITS ORIGINAL FORM (PLATE) BEFORE USING THIS NPC.. ALSO MAKE SURE YOU GIVE THE NPC THE CORRECT ITEMS OR IT WILL EAT YOUR ITEMS!!");
  13. }
  14. if($text=~/Mission/i){
  15. plugin::Whisper("Here is what I have to offer.");
  16. plugin::Whisper("[$link3]");
  17. plugin::Whisper("[$link4]");
  18. #plugin::Whisper("[$link4]");
  19. #plugin::Whisper("[$link5]");
  20. #plugin::Whisper("[$link6]");
  21. }
  22. if($text=~/Epic 7/i || ($text=~/hail/i && plugin::GetExpeditionVariable( "instance_name" ) eq "The Battle of Mistmoore Castle")){
  23. $expedition_description = "The Battle of Mistmoore Castle";
  24. plugin::HandleExpeditionOffer(
  25. $expedition_description, #Instance Identifier
  26. "Two Groups - No Bots", #Description of Adventure (Ex: Group)
  27. 12, #Number of Players
  28. 769, #Task ID Association
  29. $expedition_description, #Description of Adventure
  30. 16000, #Duration Timer (Seconds)
  31. 3, #Version
  32. "mistmoore", #ZoneSN
  33. 122, #Instance Destination X
  34. -292, #Instance Destination Y
  35. -177, #Instance Destination Z
  36. 67.5, #Instance Destination H
  37. 106, #Required Average Level
  38. 1, #Minimum # of Players
  39. 1, #Is Shared Task (0/1)
  40. 248400, #Lockout Duration
  41. 0, ### Boot on completion
  42. 0, # X Compass Loc
  43. 0, # Y Compass Loc
  44. 0, # Z Compass Loc
  45. 1, # Force Initial Entry
  46. 60, # Minimum Level
  47. );
  48. }
  49. if($text=~/Task/i){
  50. plugin::Whisper("Yes here are some things you will need to upgrade your old 6.0 please bring them to me when you get them.");
  51. quest::taskselector(770);
  52. }
  53. }
  54. sub EVENT_ITEM {
  55. my %h = ("Warrior" => 101033,
  56. "Cleric" => 101026,
  57. "Paladin" => 101028,
  58. "Ranger" => 101034,
  59. "Shadowknight" => 101027,
  60. "Druid" => 101035,
  61. "Monk" => 101037,
  62. "Bard" => 101038,
  63. "Rogue" => 101029,
  64. "Shaman" => 101032,
  65. "Necromancer" => 101036,
  66. "Wizard" => 101023,
  67. "Magician" => 101025,
  68. "Enchanter" => 101030,
  69. "Beastlord" => 101031,
  70. "Berserker" => 101024);
  71. if (quest::get_data($client->CharacterID()."_epic70finished")) {#CHANGEME
  72. plugin::Whisper("You have already done this.");
  73. }
  74. if (plugin::check_handin(\%itemcount, 101018 => 1)) {
  75. plugin::Whisper("Task has been updated, thank you!");
  76. }
  77. if (plugin::check_handin(\%itemcount, 101019 => 1)) {
  78. plugin::Whisper("Task has been updated, thank you!");
  79. }
  80. if (plugin::check_handin(\%itemcount, 101020 => 1)) {
  81. plugin::Whisper("Task has been updated, thank you!");
  82. }
  83. if (plugin::check_handin(\%itemcount, 101021 => 1)) {
  84. plugin::Whisper("Task has been updated, thank you!");
  85. }
  86. if (plugin::check_handin(\%itemcount, 100848 => 1)) {
  87. plugin::Whisper("Task has been updated, thank you!");
  88. }
  89. if (plugin::check_handin(\%itemcount, 100849 => 1)) {
  90. plugin::Whisper("Task has been updated, thank you!");
  91. }
  92. if (plugin::check_handin(\%itemcount, 100850 => 1)) {
  93. plugin::Whisper("Task has been updated, thank you!");
  94. }
  95. if (plugin::check_handin(\%itemcount, 100851 => 1)) {
  96. plugin::Whisper("Task has been updated, thank you!");
  97. }
  98. if (plugin::check_handin(\%itemcount, 100852 => 1)) {
  99. plugin::Whisper("Task has been updated, thank you!");
  100. }
  101. if (plugin::check_handin(\%itemcount, 100853 => 1)) {
  102. plugin::Whisper("Task has been updated, thank you!");
  103. }
  104. if (plugin::check_handin(\%itemcount, 100854 => 1)) {
  105. plugin::Whisper("Task has been updated, thank you!");
  106. }
  107. if (plugin::check_handin(\%itemcount, 100855 => 1)) {
  108. plugin::Whisper("Task has been updated, thank you!");
  109. }
  110. if (plugin::check_handin(\%itemcount, 100856 => 1)) {
  111. plugin::Whisper("Task has been updated, thank you!");
  112. }
  113. if (plugin::check_handin(\%itemcount, 100857 => 1)) {
  114. plugin::Whisper("Task has been updated, thank you!");
  115. }
  116. if (plugin::check_handin(\%itemcount, 100858 => 1)) {
  117. plugin::Whisper("Task has been updated, thank you!");
  118. }
  119. if (plugin::check_handin(\%itemcount, 100859 => 1)) {
  120. plugin::Whisper("Task has been updated, thank you!");
  121. }
  122. if (plugin::check_handin(\%itemcount, 100860 => 1)) {
  123. plugin::Whisper("Task has been updated, thank you!");
  124. }
  125. if (plugin::check_handin(\%itemcount, 100861 => 1)) {
  126. plugin::Whisper("Task has been updated, thank you!");
  127. }
  128. if (plugin::check_handin(\%itemcount, 100862 => 1)) {
  129. plugin::Whisper("Task has been updated, thank you!");
  130. }
  131. if (plugin::check_handin(\%itemcount, 100863 => 1)) {
  132. plugin::Whisper("Task has been updated, thank you!");
  133. }
  134. elsif (!quest::get_data($client->CharacterID()."_epic70finished")) {#CHANGEME
  135. if (plugin::check_handin(\%itemcount, 101022 => 1) && $class ~~ @{[keys %h]}) {
  136. quest::summonitem($h{$class});
  137. plugin::Whisper("Here you are.");
  138. quest::set_data($client->CharacterID()."_epic70finished",'1','F');#CHANGEME
  139. }
  140. } elsif (quest::get_data($client->CharacterID()."_epic70finished")) {#CHANGEME
  141. plugin::Whisper("You have already given me the Power Source $name.");
  142. }
  143. plugin::return_items(\%itemcount);
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement