Log in

View Full Version : Auto skill up and spell scribing ?


everlastnmn
01-26-2010, 06:46 PM
I have a npc to currently do this however, I recently played on a server that when you complete a level you automatically skill up and spells are automatically scribed for you...

How is this done ?

Thanks in advance :)

Randymarsh9
01-26-2010, 07:16 PM
I put this quest in the player.pl of my starting zone. It will scribe their spells, and set all skills to 20. Now when the character levels up, skills will instantly become available. It also has a qglobal check to make sure it doesn't reset their skills everytime they zone in.

sub EVENT_ENTERZONE {
if (!defined($qglobals{newchar})){
quest::setallskill(20);
quest::setglobal("newchar", 1, 5, "F");
quest::scribespells(1,1);
}
else{}
}
sub EVENT_LEVEL_UP{
quest::traindiscs($ulevel);
quest::scribespells($ulevel);
$client->Message(5,"Scribing spells and disciplines.");
}


The
sub EVENT_LEVEL_UP{
quest::traindiscs($ulevel);
quest::scribespells($ulevel);
$client->Message(5,"Scribing spells and disciplines.");
}
is also added to every player.pl in the quest folder. If you don't want to go through and add that to every player.pl (inlcuding one in templates) you could just change the initial quest to look like quest::scribespells(whatever your max level is);

Expletus
02-16-2011, 01:28 PM
would you put that into each zone under quests folder with a new player.pl?

Striat_eq
02-22-2011, 12:10 PM
easiest way is to add the player.pl to the templates folder so it is used for all zones. And if you need a player.pl in a different zone, you can just edit those as needed.