Advertisement
Guest User

Untitled

a guest
Jul 6th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6.90 KB | None | 0 0
  1. sub EVENT_SAY {
  2. my %h = ("Warrior" => 100858,
  3. "Cleric" => 100851,
  4. "Paladin" => 100853,
  5. "Ranger" => 100859,
  6. "Shadowknight" => 100852,
  7. "Druid" => 100860,
  8. "Monk" => 100862,
  9. "Bard" => 100863,
  10. "Rogue" => 100854,
  11. "Shaman" => 100857,
  12. "Necromancer" => 100861,
  13. "Wizard" => 100848,
  14. "Magician" => 100850,
  15. "Enchanter" => 100855,
  16. "Beastlord" => 100856,
  17. "Berserker" => 100849);
  18. my %flags = (
  19. ## Somnium Solo Missions
  20. 0 => [1, "Stage1Somnium", 0, "The Battle of Somnium Stage 1"],
  21. 1 => [1, "Stage2Somnium", 0, "The Battle of Somnium Stage 2"],
  22. 2 => [1, "Stage3Somnium", 0, "The Battle of Somnium Stage 3"],
  23. 3 => [1, "Stage4Somnium", 0, "The Battle of Somnium Stage 4"],
  24. 4 => [1, "Stage5Somnium", 0, "The Battle of Somnium Stage 5"],
  25. ## Morell Castle Solo Missions
  26. 5 => [1, "Stage1Morell", 0, "The Battle of Morell's Castle Stage 1"],
  27. 6 => [1, "Stage2Morell", 0, "The Battle of Morell's Castle Stage 2"],
  28. 7 => [1, "Stage3Morell", 0, "The Battle of Morell's Castle Stage 3"],
  29. 8 => [1, "Stage4Morell", 0, "The Battle of Morell's Castle Stage 4"],
  30. 9 => [1, "Stage5Morell", 0, "The Battle of Morell's Castle Stage 5"],
  31. ## Sleepers Solo Missions
  32. 10 => [2, "Stage1Sleeper", 0, "Honor of the Dragon Part 1"],
  33. 11 => [2, "Stage2Sleeper", 0, "Honor of the Dragon Part 2"],
  34. 12 => [2, "Stage3Sleeper", 0, "Honor of the Dragon Part 3"],
  35. 13 => [2, "Stage4Sleeper", 0, "Honor of the Dragon Part 4"],
  36. 14 => [2, "Stage5Sleeper", 0, "Honor of the Dragon Part 5"],
  37. ## Small Group
  38. 15 => [3, "SmallGroup1", 0, "New Recruits Part 1"],
  39. 16 => [3, "SmallGroup2", 0, "New Recruits Part 2"],
  40. 17 => [3, "SmallGroup3", 0, "New Recruits Part 3"],
  41. ## Regular Group
  42. 18 => [4, "RegularGroup1", 0, "Knighthood and Chivalry Part 1"],
  43. 19 => [4, "RegularGroup2", 0, "Knighthood and Chivalry Part 2"],
  44. ## Small Raid
  45. 20 => [5, "SmallRaid1", 0, "Cursed Outcasts in Time Part 1"],
  46. 21 => [5, "SmallRaid2", 0, "Cursed Outcasts in Time Part 2"],
  47. 22 => [5, "MediumRaid1", 0, "The Master of the Guard"],
  48. 23 => [6, "Stage1Sebilis", 0, "Area A - Sebilis"],
  49. ## Kunark Missions
  50. 24 => [6, "Stage2Sebilis", 0, "Area B - Sebilis"],
  51. 25 => [6, "Stage3Sebilis", 0, "Area C - Sebilis"],
  52. 26 => [6, "Stage4Sebilis", 0, "Area D - Sebilis"],
  53. 27 => [6, "Stage5Sebilis", 0, "Area E - Sebilis (BOSS: Trakanon)"],
  54. 28 => [7, "Stage1Overthere", 0, "Camp 1 - Overthere"],
  55. 29 => [7, "Stage2Overthere", 0, "Camp 2 - Overthere"],
  56. 30 => [7, "Stage3Overthere", 0, "Camp 3 - Overthere"],
  57. 31 => [7, "Stage4Overthere", 0, "Camp 4 - Overthere"],
  58. 32 => [7, "Stage5Overthere", 0, "Camp 5 - Overthere (BOSS: General T'Vara)"],
  59. 33 => [8, "Stage1Fieldofbone", 0, "Spot 1 - Field of Bone"],
  60. 34 => [8, "Stage2Fieldofbone", 0, "Spot 2 - Field of Bone"],
  61. 35 => [8, "Stage3Fieldofbone", 0, "Spot 3 - Field of Bone"],
  62. 36 => [8, "Stage4Fieldofbone", 0, "Spot 4 - Field of Bone"],
  63. 37 => [8, "Stage5Fieldofbone", 0, "Spot 5 - Field of Bone (BOSS: The Tangrin)"],
  64. ## Electric Dog Flags
  65. 38 => [9, "electricdog", 0, "Electric Dog Mk. 1 (Required Flag to Obtain Electric Dog Mk. V)"],
  66. 39 => [9, "electricdogmk2", 0, "Electric Dog Mk. 2 (Required Flag to Obtain Electric Dog Mk. V)"],
  67. 40 => [9, "electricdogmk3", 0, "Electric Dog Mk. 3 (Required Flag to Obtain Electric Dog Mk. V)"],
  68. 41 => [9, "electricdogmk4", 0, "Electric Dog Mk. 4 (Required Flag to Obtain Electric Dog Mk. V)"]);
  69. if ($text=~/Epic 6.0/i && !defined quest::get_data($client->CharacterID()."_epic60finished")) {#CHANGEME
  70. if (defined quest::get_data($client->CharacterID()."_Stage1Somnium") && defined quest::get_data($client->CharacterID()."_Stage2Somnium") && defined quest::get_data($client->CharacterID()."_Stage3Somnium") && defined $qglobals{"Stage4Somnium"}  && defined $qglobals{"Stage5Somnium"}  && defined $qglobals{"Stage1Morell"}  && defined $qglobals{"Stage2Morell"}  && defined $qglobals{"Stage3Morell"}  && defined $qglobals{"Stage4Morell"}  && defined $qglobals{"Stage5Morell"}  && defined $qglobals{"Stage1Sleeper"}  && defined $qglobals{"Stage2Sleeper"} && defined $qglobals{"Stage3Sleeper"}  && defined $qglobals{"Stage4Sleeper"} && defined $qglobals{"Stage5Sleeper"} && defined $qglobals{"SmallGroup1"} && defined $qglobals{"SmallGroup2"} && defined $qglobals{"SmallGroup3"} && defined $qglobals{"RegularGroup1"} && defined $qglobals{"RegularGroup2"}) {#CHANGEME
  71. quest::summonitem($h{$class});
  72. plugin::Whisper("Here you are.");
  73. quest::set_data($client->CharacterID()."_epic60finished",'1');#CHANGEME
  74. } else {
  75. plugin::Whisper("You don't have all the flags needed! Keep doing the missions in here, you need all the solo and group missions to obtain it.");
  76. }
  77. }
  78. if ($text=~/Epic/i && defined quest::get_data($client->CharacterID()."_epic60finished")) {#CHANGEME
  79. plugin::Whisper("You have already finished your Epic 6.0");
  80. }
  81. if ($text=~/Electric Dog Mk. V/i && !defined quest::get_data($client->CharacterID()."_electricdogmk5")) {
  82. if (defined quest::get_data($client->CharacterID()."_electricdog") && defined quest::get_data($client->CharacterID()."_electricdogmk2") && defined quest::get_data($client->CharacterID()."_electricdogmk3") && defined $qglobals{"electricdogmk4"}  && defined $qglobals{"Stage1Sebilis"}  && defined $qglobals{"Stage2Sebilis"}  && defined $qglobals{"Stage3Sebilis"}  && defined $qglobals{"Stage4Sebilis"}  && defined $qglobals{"Stage5Sebilis"}  && defined $qglobals{"Stage1Overthere"}  && defined $qglobals{"Stage2Overthere"}  && defined $qglobals{"Stage3Overthere"} && defined $qglobals{"Stage4Overthere"}  && defined $qglobals{"Stage5Overthere"} && defined $qglobals{"Stage1Fieldofbone"} && defined $qglobals{"Stage2Fieldofbone"} && defined $qglobals{"Stage3Fieldofbone"} && defined $qglobals{"Stage4Fieldofbone"} && defined $qglobals{"Stage5Fieldofbone"}) {#CHANGEME
  83. quest::summonitem(100943);
  84. plugin::Whisper("Here you are.");
  85. quest::set_data($client->CharacterID()."_electricdogmk5",'1');#CHANGEME
  86. } else {
  87. plugin::Whisper("You don't have all the flags needed! Keep doing the missions from Zaxonian Betrayer to obtain the flags.");
  88. }
  89. }
  90. if ($text=~/Epic/i && defined quest::get_data($client->CharacterID()."_electricdogmk5")) {#CHANGEME
  91. plugin::Whisper("You have already finished your Electric Dog Mk. 5");
  92. }
  93. if ($text=~/Hail/i) {
  94. plugin::Whisper("Hail $name, I am here to check your " . quest::saylink("flags", 1) . " you will need all of these to obtain your " . quest::saylink("Epic 6.0", 1) . " or your " . quest::saylink("Electric Dog Mk. V", 1) . ".");
  95. } elsif ($text=~/Flags/i) {
  96. foreach my $key (keys %flags) {
  97. if (quest::get_data($client->CharacterID() . "_" . $flags{$key}[1])) {#CHANGEME
  98. $flags{$key}[2] = 1;
  99. }
  100. }
  101. plugin::Message("Your mission flags are as follows:");
  102. plugin::Message("");
  103. foreach my $key (sort {$a <=> $b} keys %flags) {
  104. if ($key != 0 && $flags{$key - 1}[0] != $flags{$key}[0]) {
  105. plugin::Message(" ");
  106. }
  107. plugin::Message($flags{$key}[3] . " is " . ($flags{$key}[2] == 1 ? "complete" : "incomplete") . ".");
  108. }
  109. }
  110. }
  111. sub EVENT_ITEM {
  112. if(plugin::check_handin(\%itemcount, 100000 => 4)) {
  113. }
  114. plugin::return_items(\%itemcount);
  115. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement