Yeah. If you mean by train it to them at said level, yes. But actually making it trainable on their Guildmaster, I don't believe that's possible, here's my interpretation of what you're saying.
Code:
sub EVENT_LEVEL_UP
{
if($class eq "Bard")
{
if($ulevel == 40)
{
quest::setskill(id, 1);
}
}
if($class eq "Rogue")
{
if($ulevel == 6)
{
quest::setskill(id, 1);
}
}
}