Kezdő szint és yang.

Indította TTMaster112, 2017-11-17, 19:55:18

Sziasztok modositottam akezdő szint+yangot forrásban.
Game/input_login cpp be.
if (job >= JOB_MAX_NUM)
return false;

memset(table, 0, sizeof(TPlayerTable));

strlcpy(table->name, name, sizeof(table->name));

table->level = 100;
table->job = job;
table->voice = 0;
table->part_base = shape;

table->st = JobInitialPoints[job].st;
table->dx = JobInitialPoints[job].dx;
table->ht = JobInitialPoints[job].ht;
table->iq = JobInitialPoints[job].iq;

table->hp = JobInitialPoints[job].max_hp + table->ht * JobInitialPoints[job].hp_per_ht;
table->sp = JobInitialPoints[job].max_sp + table->iq * JobInitialPoints[job].sp_per_iq;
table->stamina = JobInitialPoints[job].max_stamina;

table->x = CREATE_START_X(bEmpire) + number(-300, 300);
table->y = CREATE_START_Y(bEmpire) + number(-300, 300);
table->z = 0;
table->dir = 0;
table->playtime = 0;
table->gold = 1500000000;

table->skill_group = 0;

Leforditottam beraktam a forditott game-t de a játékba semmi jele kezdtem uj karaktert és 1 szint 0 yang. Mi lehet a hiba?

sys_log(0, "NewPlayerTable2(name=%s, race=%d, job=%d)", name, race, job);

memset(table, 0, sizeof(TPlayerTable));

strlcpy(table->name, name, sizeof(table->name));

table->level = 1;
table->job = race; // 직업대신 종족을 넣는다
table->voice = 0;
table->part_base = shape;

table->st = JobInitialPoints[job].st;
table->dx = JobInitialPoints[job].dx;
table->ht = JobInitialPoints[job].ht;
table->iq = JobInitialPoints[job].iq;

table->hp = JobInitialPoints[job].max_hp + table->ht * JobInitialPoints[job].hp_per_ht;
table->sp = JobInitialPoints[job].max_sp + table->iq * JobInitialPoints[job].sp_per_iq;
table->stamina = JobInitialPoints[job].max_stamina;

table->x = CREATE_START_X(bEmpire) + number(-300, 300);
table->y = CREATE_START_Y(bEmpire) + number(-300, 300);
table->z = 0;
table->dir = 0;
table->playtime = 0;
table->gold = 0;

table->skill_group = 0;

return true;
}


Itt írd át