View Single Post
  #1  
Old 03-02-2013, 12:11 AM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default Discipline Trainer.

All right, so this guy is supposed to train your disciplines for level 1-70, he does that part, but he doesn't set your qglobal because I can do it again.

Code:
sub EVENT_SAY 
{
	my $disc = quest::saylink("disciplines", 1);
	
	if($text=~/Hail/i)
	{ 
		plugin::Whisper("Hello $name, would you like me to teach you all of your $disc?"); 
	}
 
	if($text=~/Disciplines/i)
	{
		if(!defined $qglobals{Discs})
		{
			quest::setglobal("Discs","1","5","F");
			quest::traindiscs(70, 1);
		}
		else
		{
			plugin::Whisper("You have already trained all your disciplines, I have nothing more to teach you.");
		}
	}
}
Reply With Quote