Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 5.65 KB | None | 0 0
  1. ########################################################################
  2. ## Name: Coldain Surgeon
  3. ## Quest: A Lich's Nightmare
  4. ## Description: Allow players to unlock level 61-65
  5. ## Author: Wrathfulone
  6. ## Last Edited: 07-27-2016
  7. ##
  8.  
  9. sub EVENT_TIMER { ## cant do this as written as timer belongs to no particular player sev later to work
  10.     quest::stoptimer("brainsurgery");
  11. }
  12.  
  13. sub EVENT_SAY {
  14.     if ($text =~ /testremove/i) {
  15.     quest::say("fuck");
  16.         $client->SetGlobal("CharMaxLevel", 65, 5, "F");
  17.     }
  18.    
  19.     if ($qglobals{"levelquest"} == 4) {
  20.         if ($text =~ /Hail/i) {
  21.             plugin::Whisper (   "Greetings, $name, I have been ".quest::saylink("expecting", 1, "[expecting]")." your ".
  22.                                 "arrival for some time now.");
  23.             $client->SetEntityVariable("levelquestdialog", 1);
  24.         }
  25.         elsif ($text =~ /expecting/i && $client->GetEntityVariable("levelquestdialog") == 1) {
  26.             plugin::Whisper (   "Indeed, expecting.  Much of what I know before becoming a surgeon, I have learned from ".
  27.                                 "Scholar Felim.  However, in regards to ".quest::saylink("surgery", 1, "[surgery]").", ".
  28.                                 "and otherwise the transplantation of brains, the student has become the teacher.");
  29.             $client->SetEntityVariable("levelquestdialog", 2);
  30.         }
  31.         elsif ($text =~ /surgery/i && $client->GetEntityVariable("levelquestdialog") == 2) {
  32.             plugin::Whisper (   "So let's begin shall we?  Please hand me the head in which you wish to have the brain ".
  33.                                 "extracted from.");
  34.             $client->SetEntityVariable("levelquestdialog", 0);
  35.         }
  36.     }
  37.     elsif ($qglobals{"levelquest"} == 10) {
  38.         if ($text =~ /Hail/i) {
  39.             plugin::Whisper (   "Hello again, $name.  Your journey is just about complete.  Hand me the ".
  40.                                 "Imbued Brain of Venril Sathir and relax the procedure will take no time ".
  41.                                 "at all, or at least any time that you will be aware of.");
  42.         }
  43.     }
  44. }
  45.  
  46. sub EVENT_ITEM {
  47.     if (plugin::check_handin(\%itemcount, 132547 => 1, 132543 => 1, 132542 => 1)) { ## Head of VS, Surgical Scalpel and Jar
  48.         if ($qglobals{"levelquest"} == 5) {
  49.             quest::emote ("nods.");
  50.             plugin::Whisper ("Please remain quiet now $name, this is going to take a great deal of concentration.  ");
  51.             quest::emote ("begins the delicate task.");
  52.             plugin::Whisper (   "I've done it!  However, as I feared, it appears as though the brain is almost dead!  ".
  53.                                 "I can only preserve it and hope that it lives.  Here take this and take it fast to ".
  54.                                 "Scholar Felim.  Make haste!");
  55.             $client->SetGlobal("levelquest", 6, 5, "F");
  56.             quest::summonitem (132544);
  57.         }
  58.         else {
  59.             quest::emote ("eyes gleem with happiness.");
  60.             quest::say ("Oh thank you for the equipment, I'll know right what to do with it.  This head though, must be ".
  61.                         "properly disposed of.  I'll take care of that for you!");
  62.         }
  63.     }
  64.     elsif (plugin::check_handin(\%itemcount, 132543 => 1)) { ## Head of Venril Sathir
  65.         if ($qglobals{"levelquest"} == 4) {
  66.             quest::emote ("looks intently upon the head.");
  67.             plugin::Whisper (   "Hmmm, yep, but, perhaps, hmmm.  $name, I've got good news and bad news.  The good news is  ".
  68.                                 "I am, in all my surgical skill splendor, able to remove the brain from this head.  However,  ".
  69.                                 "the bad news is, I did not realize just who's head it was I would be performing surgery on!  ".
  70.                                 "In order to complete this surgery, I am going to need a specialized surgical tool.  A tool ".
  71.                                 "of which I have never had the need before.  A tool that only one with war on the mind would ".
  72.                                 "have in their possession.");
  73.             plugin::Whisper (   "Take this head back for now.  But hurry, as the brain has already begun to die!  ".
  74.                                 "While looking for the tools please find a vessel for me so that I can preserve the brain once I am ".
  75.                                 "able to remove it!  Once you have found those things return to me.");
  76.             quest::summonitem (132543);
  77.             $client->SetGlobal("levelquest", 5, 5, "F");
  78.         }
  79.         else {
  80.             quest::emote ("gasps.");
  81.             quest::say ("I'll dispose of that head for you, else I get in trouble for malpractice.");
  82.         }
  83.     }
  84.     elsif (plugin::check_handin(\%itemcount, 132545 => 1)) {
  85.         quest::emote ("sanatizes his hands... yet sweating at the forehead despite the cold temperatures.");
  86.         quest::selfcast(201);
  87.         quest::say (".");
  88.         quest::say ("..");
  89.         quest::say ("...");
  90.         quest::say ("Oh dear...I've lost anoth....");
  91.         plugin::Whisper (   "Well hello!  Welcome back.  I never doubted my abilities for a moment!");
  92.         plugin::Whisper (   "I truly appreciate the opportunity.  For that, I'd like to give you a small token of my gratitude. ".
  93.                             "It is not much, though I hope it will assist you in your future endeavors.");
  94.         quest::summonitem (132552);
  95.         $client->SetGlobal("CharMaxLevel", 65, 5, "F");
  96.         $client->SetGlobal("levelquest", 65, 5, "F");
  97.         if (!defined $qglobals{"level65questcompleted"}) {
  98.             quest::setglobal("level65questcompleted",1,7,"F");
  99.             quest::gmsay("Congratulations to $name for being the first to complete the 'A Lichs Nightmare' quest!  And on ".($client->GetGender() ? "her" : "his")." new [".quest::varlink(132552)."]!'", 335, 1, 0, 0);
  100.             plugin::Whisper (   "You are the first traveler to complete this task.  As such, we have agreed ".
  101.                                 "that you have earned the title of 'the Awakened' should you choose to be ".
  102.                                 "known as such.");
  103.             quest::enabletitleset(7);
  104.         }
  105.         else {
  106.             quest::gmsay("Congratulations to $name for completing the 'A Lichs Nightmare' quest!  And on ".($client->GetGender() ? "her" : "his")." new [".quest::varlink(132552)."]!'", 335, 1, 0, 0);        
  107.         }  
  108.     }
  109.     else {
  110.         quest::emote("doesn't appear to be interested in a trade.");
  111.         quest::say ("I have no need for that.");
  112.         plugin::return_items(\%itemcount);
  113.     }
  114. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement