scrabbyyy 20 Posted July 23, 2015 Share Posted July 23, 2015 friends i wanna set start level from mysql i edited player with design to default set 105 but not worked where problem or how to edit from mysql to start level money or others Link to comment Share on other sites More sharing options...
scrabbyyy 20 Posted July 24, 2015 Author Share Posted July 24, 2015 up Link to comment Share on other sites More sharing options...
Premium MrLibya 552 Posted July 24, 2015 Premium Share Posted July 24, 2015 it's from source 1 If you're going to do something, then do it right. Link to comment Share on other sites More sharing options...
scrabbyyy 20 Posted July 24, 2015 Author Share Posted July 24, 2015 it's from source so maybe u saying blocking my mysql set level from source for 1 level start mylibya so i udnerstand right? Link to comment Share on other sites More sharing options...
Ken 903 Posted July 24, 2015 Share Posted July 24, 2015 bool NewPlayerTable2(TPlayerTable * table, const char * name, BYTE race, BYTE shape, BYTE bEmpire) { if (race >= MAIN_RACE_MAX_NUM) { sys_err("NewPlayerTable2.OUT_OF_RACE_RANGE(%d >= max(%d))\n", race, MAIN_RACE_MAX_NUM); return false; } unsigned job; if (!RaceToJob(race, &job)) { sys_err("NewPlayerTable2.RACE_TO_JOB_ERROR(%d)\n", race); return false; } 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; } That will be enough for you. Filename : input_login.cpp Line : 383 Kind Regards Ken 1 Do not be sorry, be better. Link to comment Share on other sites More sharing options...
Saud bin abdullah 7 Posted July 24, 2015 Share Posted July 24, 2015 try to run game without vrunner if mysql_query is works .. that's mean mysql_query function not works with vrunnerhere is solution mysql_direct_query 1 1 Link to comment Share on other sites More sharing options...
Premium MrLibya 552 Posted July 24, 2015 Premium Share Posted July 24, 2015 it's very simple open input_login.cpp bool NewPlayerTable2(TPlayerTable * table, const char * name, BYTE race, BYTE shape, BYTE bEmpire) u will find this in the function : table->level = 1; change 1 to the level u want 2 If you're going to do something, then do it right. Link to comment Share on other sites More sharing options...
[007]DawisHU 277 Posted February 17, 2017 Share Posted February 17, 2017 Hello, Whitout source, Ingame quest Spoiler quest start begin (tab)state start begin (tab)(tab)when login with pc.getqf("level_upped")==1 begin (tab)(tab)end (tab)(tab)when login with pc.getqf("level_upped")==0 begin (tab)(tab)(tab)mysql_query("UPDATE player.player SET level='105' WHERE id = "..pc.get_player_id()) (tab)(tab)(tab)pc.setqf("level_upped", 1) (tab)(tab)(tab)end (tab)(tab)end (tab)end end (enter) (enter) This is 100% work and instantly Best regards, Dawis 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now