func int B_TeachIntelektTalent(var C_Npc slf,var C_Npc oth,var int talent)
{
var int kosten;
kosten = B_GetLearnCostTalent(oth,talent,1);
if((talent != NPC_TALENT_INTELEKT))
{
Print("*** ERROR: Wrong Parameter ***");
return FALSE;
};
if(oth.lp < kosten)
{
PrintScreen(PRINT_NotEnoughLearnPoints,-1,-1,FONT_ScreenSmall,2);
B_Say(slf,oth,"$NOLEARNNOPOINTS");
return FALSE;
};
oth.lp = oth.lp - kosten;
if(talent == NPC_TALENT_INTELEKT)
{
Npc_SetTalentSkill(oth,NPC_TALENT_INTELEKT,1);
PrintScreen(PRINT_LearnPicklock,-1,-1,FONT_Screen,2);
return TRUE;
};