Advertisement
Guest User

Untitled

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