Advertisement
Guest User

Untitled

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