Thread: Sell Quests
View Single Post
  #1  
Old 09-22-2017, 10:42 AM
phentop
Sarnak
 
Join Date: Jul 2010
Location: Army
Posts: 36
Default Sell Quests

I've been searching the forums for ways to have spells automatically scribed on level.

I've tried:
__________________________________________________ ____________
sub EVENT_LEVEL_UP {

AutoTrain();

}

sub AutoTrain {

$client->Message( 15, "Your experiences across the realm have infused you with increased power and knowledge..." );

# set all available skills to maximum for race/class at current level
foreach my $skill ( 0 .. 74 ) {
next unless $client->CanHaveSkill($skill);
my $maxSkill = $client->MaxSkill( $skill, $client->GetClass(), $ulevel );
next unless $maxSkill > $client->GetRawSkill($skill);
$client->SetSkill( $skill, $maxSkill );
}

# scribe all spells for current level
quest::scribespells( $ulevel, $ulevel - 1 );

# train all discs for current level
quest::traindiscs( $ulevel, $ulevel - 1 );

}
__________________________________________________ ___________

But it does not add spells or discs. It auto levels skills perfectly. Anyone have a working copy similar to this?
Reply With Quote