Advertisement
Guest User

Untitled

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