Advertisement
NatedogServer

Zones

Jul 25th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 15.04 KB | None | 0 0
  1. "Everquest"                => 1,
  2. "Ruins of Kunark"          => 2,
  3. "Scars of Velious"         => 3,
  4. "Shadows of Luclin"        => 4,
  5. "Planes of Power"          => 5,
  6. "Legacy of Ykesha"         => 6,
  7. "Lost Dungeons of Norrath" => 7,
  8. "Gates of Discord"         => 8,
  9. "Omens of War"             => 9,
  10. "Dragons of Norrath"       => 10,
  11. "Depths of Darkhollow"     => 11,
  12. "Prophecy of Ro"           => 12,
  13. "The Serpents Spine"       => 13,
  14. "The Buried Sea"           => 14,
  15. "Secrets of Faydwer"       => 15,
  16. "Seeds of Destruction"     => 16,
  17. "Underfoot"                => 17,
  18. "House of Thule"           => 18,
  19. "Veil of Alaris"           => 19,
  20. "Rain of Fear"             => 20
  21. );
  22.  
  23. @disabled = (19, 20);
  24.  
  25. @EXP = (
  26. "Everquest"
  27. ,"Ruins of Kunark"
  28. ,"Scars of Velious"
  29. ,"Shadows of Luclin"
  30. ,"Planes of Power"
  31. ,"Legacy of Ykesha"
  32. ,"Lost Dungeons of Norrath"
  33. ,"Gates of Discord"
  34. ,"Omens of War"
  35. ,"Dragons of Norrath"
  36. ,"Depths of Darkhollow"
  37. ,"Prophecy of Ro"
  38. ,"The Serpents Spine"
  39. ,"The Buried Sea"
  40. ,"Secrets of Faydwer"
  41. ,"Seeds of Destruction"
  42. ,"Underfoot"
  43. ,"House of Thule"
  44. #,"Veil of Alaris"
  45. #,"Reign of Fear"
  46. );
  47.  
  48.  
  49. sub EVENT_SAY {
  50. my $List = quest::saylink("Expansion List", 1);
  51.     if($text=~/hail/i)
  52.     {
  53.         plugin::Whisper("Hello $name, I can take you to any zone you wish. Would you like an $List?");
  54.     }
  55.     elsif($text =~/^Expansion list$/i)
  56.     {
  57.         $client->Message(315, "_");
  58.         $client->Message(315, "Expansion List Start");
  59.         $client->Message(315, "_");
  60.         foreach $EL (@EXP)
  61.         {
  62.             $client->Message(315, "".quest::saylink("$EL",1)."");
  63.             $client->Message(315, "_");
  64.         }
  65.         $client->Message(315, "Expansion List End");
  66.     }
  67.     elsif( grep { $_ eq $text } @EXP )
  68.     {
  69.         $client->Message(315, "_");
  70.         $client->Message(315, "$text Zone list");
  71.         $client->Message(315, "_");
  72.         foreach $k (keys (%ZoneExp))
  73.         {
  74.             if($ZoneExp{$k}[0] eq $Expansions{$text})
  75.             {
  76.                 $client->Message(315, "".quest::saylink("$k",1)."");
  77.             }
  78.         }
  79.         $client->Message(315, "End of Zones for $text");
  80.     }
  81.     else
  82.     {
  83.         $text = lc($text);
  84.        
  85.         if( grep { $_ eq $ZoneExp{$text}[0] } @disabled )
  86.         {
  87.             plugin::Whisper("This expansion is disabled!");
  88.         }
  89.         elsif($ZoneExp{$text}[0] >= 1)
  90.         {
  91.             plugin::Whisper("Taking you to $text!");
  92.         }
  93.         else
  94.         {
  95.             plugin::Whisper("I do not know this zone!");
  96.         }
  97.     }
  98.  
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement