Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. sub EVENT_SPAWN {
  2. quest::settimer("Nimbus", 5);
  3. }
  4.  
  5. sub EVENT_TIMER {
  6. if ($timer eq "Nimbus") {
  7. $npc->SpellEffect(669, 3000, 0, 1, 0, 0);
  8. #$npc->SpellEffect(469, 3000, 0, 1, 0, 0);
  9. quest::stoptimer("Nimbus");
  10. }
  11. }
  12.  
  13. sub EVENT_SAY {
  14. my $link1 = quest::saylink("do for me",1);
  15. my $link2 = quest::saylink("The Master of the Guard",1);
  16. if ($text=~/hail/i && defined $qglobals{"SmallRaid1"} && defined $qglobals{"SmallRaid2"}) {
  17. plugin::Whisper("You have what it takes to move on, here is what you can [$link1]");
  18. } else {
  19. plugin::Whisper("You are not worthy of my time $name now begone!");
  20. }
  21. if ($text=~/do for me/i && defined $qglobals{"SmallRaid1"} && defined $qglobals{"SmallRaid2"}) {
  22. plugin::Whisper("Well thank you, yeah I have a few missions...");
  23. plugin::Whisper("-=RAIDS=-");
  24. plugin::Whisper("[$link2]");
  25. }
  26. ##### MEDIUM RAIDS #####
  27. if ($text=~/The Master of the Guard/i) {
  28. @AdvInfo = plugin::LoadExpeditionInfo2(); plugin::CheckForStaleInstances();
  29. if ($AdvInfo[0] > 0){ plugin::DisplayInstanceQueue($AdvInfo[0]); }
  30. elsif (defined $qglobals{"SmallRaid1"} && defined $qglobals{"SmallRaid2"}) {
  31. $expedition_description = "The Master of the Guard";
  32. plugin::HandleExpeditionOffer(
  33. $expedition_description, #Instance Identifier
  34. "18-24 Players", #Description of Adventure (Ex: Group)
  35. 24, #Number of Players
  36. 636, #Task ID Association
  37. $expedition_description, #Description of Adventure
  38. 36000, #Duration Timer (Seconds)
  39. 1, #Version
  40. "sleeper", #ZoneSN
  41. 400.47, #Instance Destination X
  42. -181.02, #Instance Destination Y
  43. 5, #Instance Destination Z
  44. 128.1, #Instance Destination H
  45. 60, #Required Average Level
  46. 1, #Minimum # of Players
  47. 1, #Is Shared Task (0/1)
  48. 248400, #Lockout Duration
  49. 0, ### Boot on completion
  50. 0, # X Compass Loc
  51. 0, # Y Compass Loc
  52. 0, # Z Compass Loc
  53. 1, # Force Initial Entry
  54. 60, # Minimum Level
  55. );
  56. } else {
  57. plugin::Whisper("You aren't worthy $name");
  58. plugin::Whisper("You need both of the small raids to speak with me..");
  59. }
  60. }
  61. }
  62.  
  63. sub EVENT_ITEM {
  64. my %h = (100359 => [100887, 100894, "DragonPartisanArmsFinished"],
  65. 100361 => [100885, 100892, "DragonPartisanHelmFinished"],
  66. 100362 => [100884, 100891, "DragonPartisanGlovesFinished"],
  67. 100358 => [100888, 100895, "DragonPartisanLegsFinished"],
  68. 100363 => [100883, 100890, "DragonPartisanWristFinished"],
  69. 100360 => [100886, 100893, "DragonPartisanBootsFinished"],
  70. 100357 => [100889, 100896, "DragonPartisanBPFinished"]);
  71. {
  72. foreach my $key (keys %h) {
  73. if (plugin::check_handin(\%itemcount, $key => 1, 100918 => 1, $h{$key}[0] => 1 && defined $qglobals{"SmallRaid1"} && defined $qglobals{"SmallRaid2"} && defined $qglobals{"MediumRaid1"})) {
  74. quest::summonitem($_) for ($h{$key}[1]);
  75. quest::setglobal($h{$key}[2], 1, 5, "F");
  76. plugin::Whisper("Enjoy your new item!");
  77. }
  78. }
  79. }
  80. plugin::return_items(\%itemcount);
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement