Advertisement
sorvani

Magus_Alaria.pl

Jan 10th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.70 KB | None | 0 0
  1. sub EVENT_SAY {
  2.     if(plugin::check_hasitem($client, 41000) || $client->KeyRingCheck(41000)) { #Adventurer's Stone
  3.         if($text=~/hail/i) {
  4.             quest::say("Greetings, $name. As you may have guessed I have been sent here by the Wayfarers Brotherhood to assist those that dare subject themselves to our magic. I promise you I have trained long and hard to be up to the task.  I only rarely make the type of mistakes you may have heard about regarding these spells of travel. Come, let me know where you would like to go and I'll send you on your way.  I can send you to any of the Wayfarer camps in [" . quest::saylink("Butcherblock") . "], [" . quest::saylink("Commonlands") . "], [" . quest::saylink("Everfrost") . "], [" . quest::saylink("North Ro") . "], [" . quest::saylink("South Ro") . "], or [" . quest::saylink("Nedaria's Landing") . "].");
  5.         } elsif($text=~/commonlands/i) {
  6.             $npc->CastSpell(4176,$client->GetID());
  7.         } elsif($text=~/butcherblock/i) {
  8.             $npc->CastSpell(4179,$client->GetID());
  9.         } elsif($text=~/everfrost/i) {
  10.             $npc->CastSpell(4180,$client->GetID());
  11.         } elsif($text=~/nedaria/i) {
  12.             $npc->CastSpell(4580,$client->GetID());
  13.         } elsif($text=~/north ro/i) {
  14.             $npc->CastSpell(4177,$client->GetID());
  15.         } elsif($text=~/south ro/i) {
  16.             $npc->CastSpell(4178,$client->GetID());
  17.         }
  18.     } else { #PC does not have Adventurer's Stone
  19.         quest::say("You will have to excuse me, I am quite busy studying this Farstone and the possibility of using the magic stored inside of it.  Perhaps you should talk to those at the Wayfarer camps to see if they have any use for you.  I have enough time to send you to [" . quest::saylink("Nedaria's Landing") . "], if you'd like.");
  20.     }
  21. }
  22.  
  23. sub EVENT_ITEM {
  24.     plugin::return_items(\%itemcount);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement