For add 1 skill point by Den of Evil quest there is a call of addStat func:
Code: Select all
6FC97CF4 |. 53 PUSH EBX ; /Arg4 Unknow
6FC97CF5 |. 6A 01 PUSH 1 ; |Arg3 = 1 Stat Value
6FC97CF7 |. 6A 05 PUSH 5 ; |Arg2 = 5 StatId ftom ISC
6FC97CF9 |. 51 PUSH ECX ; |Arg1 pUnit
6FC97CFA |. E8 BB3B0800 CALL <JMP.&D2Common.#10518> ; \D2Common.#10518 addStat Func
Code: Select all
void __fastcall Reward(game* pGame, unit* pUnit)
{
if(pGame == NULL || pUnit == NULL) return;
int Difficulty = pGame->nDifficulty;
switch(Difficulty)
{
case DIFF_NORMAL:
{
D2COMMON_AddStat(pUnit, STAT_STATPTS, 5, 0);
} break;
case DIFF_NIGHTMARE:
{
D2COMMON_AddStat(pUnit, STAT_STATPTS, 10, 0);
} break;
case DIFF_HELL:
{
D2COMMON_AddStat(pUnit, STAT_STATPTS, 15, 0);
} break;
}
}
Sorry for noob questions.
Regards