Advertisement
Guest User

Untitled

a guest
Jul 4th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.21 KB | None | 0 0
  1. sub EVENT_SAY {
  2.     if($text=~/Hail/i) {
  3.         plugin::Whisper("Greetings.. I am a researcher wizard for the King and I am here to help you learn your spells past level 86. Course I used to be just a greenhorn on a ship at sea. Do you like " . quest::saylink("seamen", 1) . "?'");
  4.     } elsif($text=~/scribe/i && defined $qglobals{"SpellLevel"}) {
  5.         quest::traindiscs($qglobals{"SpellLevel"}, 87);
  6.         quest::scribespells($qglobals{"SpellLevel"}, 87);        
  7.         plugin::Whisper("Scribed your spells.");
  8.     } elsif($text=~/scribe/i && !defined $qglobals{"SpellLevel"}) {
  9.         plugin::Whisper("I cannot scribe your spells, you haven't learned anything, have you?!");
  10.     } elsif($text=~/seamen/i) {
  11.         plugin::Whisper("Well speaking of seamen, if you find any " . quest::saylink("slick stones", 1) . " around I could use them for... research. I can trade you my knowledge of arts and crafts in exchange for them. Or perhaps you have already turned this type of thing in in which case I can just " . quest::saylink("scribe", 1) . " your spells up to that level if you wish.  However if you have NOT turned them in you will need to, they can be found on any creatures out in the land over level 90 or so.");
  12.     } elsif($text=~/slick stones/i) {
  13.         plugin::Whisper("These Mystical Runes of Learning can be found on any creatures out in the lands that would con RED to a level 88.. But I would try Akheva Ruins or the Oasis Orcs.");
  14.     }
  15. }
  16.  
  17. sub EVENT_ITEM {
  18.     if (defined $qglobals{"SpellLevel"} && $qglobals{"SpellLevel"} < 99 && plugin::check_handin(\%itemcount, 4380 => 1)) {
  19.         quest::traindiscs(($qglobals{"SpellLevel"} + 1), ($qglobals{"SpellLevel"} + 1));
  20.         quest::scribespells(($qglobals{"SpellLevel"} + 1), ($qglobals{"SpellLevel"} + 1));
  21.         quest::setglobal("SpellLevel", ($qglobals{"SpellLevel"} + 1), 5, "F");
  22.         plugin::Whisper("You have learned everything up to level " . ($qglobals{"SpellLevel"} + 1) . ".");
  23.     } elsif (!defined $qglobals{"SpellLevel"} && plugin::check_handin(\%itemcount, 4380 => 1)) {
  24.         quest::traindiscs(88, 88);
  25.         quest::scribespells(88, 88);
  26.         quest::setglobal("SpellLevel", 88, 5, "F");
  27.         plugin::Whisper("You have learned everything up to level 88.");
  28.     }
  29.     plugin::return_items(\%itemcount);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement