View Single Post
  #11  
Old 06-30-2008, 07:50 PM
Striat
Sarnak
 
Join Date: Aug 2006
Posts: 60
Default

Quote:
Originally Posted by AndMetal View Post
The hard part about learning skills is easily finding out what the values should be set to. You could probably pull the skill levels from the database into an array, then do a foreach to change all of the skills. I think this would, as a result, give you the skills that you have to normally train, but I'm not 100% sure. On top of that, I'm not sure how/if you can directly query the DB like that with Perl without modifying the source.
Yeah, that is pretty much the easiest method I found even if it isn't most optimal. I added this as a quest command as quest::setallskillstomax() for automatically training skills to max available for the given level. Which brings me to my question. Would any of you have a need for that really? I had a skill training npc on my server. If anyone finds it needed, I'll post it.
Reply With Quote