Maceblade
05-11-2013, 11:11 AM
Was curious as to how I would go about limiting the spell scriber to not scribe rank 2 or 3 spells... if that part isnt possible how about just restricting the scribes to lvl 70 and below?
#NPC: Spell_Scribe (Tomes and Quests NPC)
#####
sub EVENT_SAY
{
my $tomes = quest::saylink("Tomes");
my $spells = quest::saylink("Spells");
my $learn = quest::saylink("learn");
my $knowing = quest::saylink("knowing");
if($text=~/Hail/i)
{
plugin::Whisper("Hi there $name, I am Galmoran, keeper of [$tomes] and [$spells]. How can I help you today?");
}
elsif($text=~/tomes/i)
{
plugin::Whisper("Yes, I know all the Tomes in the land. Just let me know if you wish to [$learn] them as well.");
}
elsif($text=~/spells/i)
{
plugin::Whisper("Spells, So many in the land. Would you be interesting in [$knowing] a few?");
}
elsif($text=~/learn/i)
{
quest::traindiscs($ulevel);
}
elsif($text=~/knowing/i)
{
quest::scribespells($ulevel);
}
}
#NPC: Spell_Scribe (Tomes and Quests NPC)
#####
sub EVENT_SAY
{
my $tomes = quest::saylink("Tomes");
my $spells = quest::saylink("Spells");
my $learn = quest::saylink("learn");
my $knowing = quest::saylink("knowing");
if($text=~/Hail/i)
{
plugin::Whisper("Hi there $name, I am Galmoran, keeper of [$tomes] and [$spells]. How can I help you today?");
}
elsif($text=~/tomes/i)
{
plugin::Whisper("Yes, I know all the Tomes in the land. Just let me know if you wish to [$learn] them as well.");
}
elsif($text=~/spells/i)
{
plugin::Whisper("Spells, So many in the land. Would you be interesting in [$knowing] a few?");
}
elsif($text=~/learn/i)
{
quest::traindiscs($ulevel);
}
elsif($text=~/knowing/i)
{
quest::scribespells($ulevel);
}
}