Advertisement
Guest User

Untitled

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