Guest User

Untitled

a guest
Oct 15th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.81 KB | None | 0 0
  1. #rewrite
  2. #Plane of Sky Warrior Aggro Clicky Quest
  3. #First part starts in Guildlobby
  4. #Second part on 4th Island in Sky
  5. #GUILD LOBBY PART
  6. #NPC: Zeran ID: 999273
  7. #npc race: 89
  8.  
  9. sub EVENT_SAY {
  10. my $globalname = "AggroClicky";
  11. my $Sirran = quest::saylink("Sirran");
  12. my $rid = quest::saylink("rid");
  13. my $item = quest::saylink("item");
  14.  
  15. if (!defined $qglobals{$globalname}) {
  16.     if ($class eq "Warrior") {
  17.         if ($text =~/hail/i) {
  18.             plugin::Whisper("Finally!  Are you a Warrior?  Perhaps you can help me.  My name is Zeran.  I have fled my home plane because of a Crazed Lunatic who calls himself [$Sirran].  His constant babbling has driven me insane and I had to leave.");
  19.             }
  20.             if ($text =~/Sirran/i) {
  21.                 plugin::Whisper("He is a mad man!  Perhaps you can help me get [$rid] of him?");
  22.                 }
  23.                 if ($text =~/rid/i) {
  24.                     plugin::Whisper("As much as I would like to kill him, and be rid of him for good Attacking him only seems to make him more crazed.  But I have heard of an [$item] that Could be of use in ridding us of Sirran once and for all.");
  25.                     }
  26.                     if ($text =~/item/i) {
  27.                         plugin::Whisper("Yes, of course!  I remember reading in the Library in my home plane of an Item which could be used to deal with someone like Sirran.  For the life of me I can not remember what it was called.  Tell you what!  Head to the Plane of Sky, My home realm, and retrieve my Journal from the Library there.  Return it to me quickly!");
  28.                         quest::setglobal("$globalname",1,5,'F');
  29.                         }
  30.             }
  31.     } elsif {
  32.             if ($class ne "Warrior") {
  33.                 plugin::Whisper("Sorry $name.  I am only looking for Warriors to aid me.");
  34.                 }
  35.             }
  36.             elsif {
  37.                     if (defined $qglobals{$globalname}) {
  38.                         if ($qglobals{$globalname} == 1) {
  39.                             plugin::Whisper("Have you found my journal yet $name?");
  40.                             }
  41.                         }
  42.                     }
  43. }
Add Comment
Please, Sign In to add comment