Код:
func void B_RaiseAttribute(var C_Npc oth,var int attrib,var int points){ var string concatText; if(attrib == ATR_STRENGTH) { oth.attribute[ATR_STRENGTH] += points; concatText = ConcatStrings(PRINT_LearnSTR,IntToString(points)); PrintScreen(concatText,-1,-1,FONT_Screen,2); }; if(attrib == ATR_DEXTERITY) { oth.attribute[ATR_DEXTERITY] += points; if((oth.attribute[ATR_DEXTERITY] >= 90) && (Npc_GetTalentSkill(oth,NPC_TALENT_ACROBAT) == 0)) { Npc_SetTalentSkill(oth,NPC_TALENT_ACROBAT,1); PrintScreen(PRINT_Addon_AcrobatBonus,-1,55,FONT_Screen,2); }; concatText = ConcatStrings(PRINT_LearnDEX,IntToString(points)); PrintScreen(concatText,-1,-1,FONT_Screen,2); }; if(attrib == ATR_MANA_MAX) { oth.attribute[ATR_MANA_MAX] += points; concatText = ConcatStrings(PRINT_LearnMANA_MAX,IntToString(points)); PrintScreen(concatText,-1,-1,FONT_Screen,2); }; if(attrib == ATR_HITPOINTS_MAX) { oth.attribute[ATR_HITPOINTS_MAX] += points; concatText = ConcatStrings(PRINT_Learnhitpoints_MAX,IntToString(points)); PrintScreen(concatText,-1,-1,FONT_Screen,2); }; B_RaiseRealAttributeLearnCounter(oth,attrib,points);};