Jump to content

Problem with 5th slot


Recommended Posts

Hey metin2dev !

I have a problem with 5th slot.

 

https://metin2.download/picture/4VFQP031G3Z67sPNgl53GDG9gF27Kfjg/.jpg

 

I press ENTER and open the character creation interface.

 

https://metin2.download/picture/eLQ2gaFCINCK8DwIGYSit9MDJV8K0EQx/.jpg

 

The problem is that I can not create a character on 5th slot.

 

https://metin2.download/picture/1KpOvy6Ajh5K7sMF65c4UFAGqOknGoQC/.jpg

 

Is there any solution?

Thanks in advance.

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

That was not my question

Finally, we solved

 

In Packet.h in client source

this:

    PLAYER_PER_ACCOUNT4 = 4,

to this     PLAYER_PER_ACCOUNT4 = 5,

 

in root:

İntroselect.py - SLOT_COUNT = 5

 

in server

Game and DB and Common add : pid5

 

Game:

 

#char_change_empire.cpp 

 

"SELECT id, pid1, pid2, pid3, pid4 FROM player_index%s WHERE pid1=%u OR pid2=%u OR pid3=%u OR pid4=%u AND empire=%u",   replace 

 

"SELECT id, pid1, pid2, pid3, pid4, pid5 FROM player_index%s WHERE pid1=%u OR pid2=%u OR pid3=%u OR pid4=%u OR pid5=%u AND empire=%u", 

 

 

#locale_services.cpp

 

if (PLAYER_PER_ACCOUNT != 4)  replace

 

if (PLAYER_PER_ACCOUNT != 5)

 

 

COMMON

 

#length.h

 

PLAYER_PER_ACCOUNT = 4  replace

 

PLAYER_PER_ACCOUNT = 5

 

 

DB:

 

#Clientmanager.cpp

 

"SELECT pid1, pid2, pid3, pid4 FROM player_index%s WHERE id=%u", GetTablePostfix(), p->dwAccountID);  replace

 

"SELECT pid1, pid2, pid3, pid4, pid5 FROM player_index%s WHERE id=%u", GetTablePostfix(), p->dwAccountID);

 

and

 

"(b.pid1=%u OR b.pid2=%u OR b.pid3=%u OR b.pid4=%u)",   replace

 

"(b.pid1=%u OR b.pid2=%u OR b.pid3=%u OR b.pid4=%u OR b.pid5=%u)",

 

 

#ClientManagerLogin.cpp

 

snprintf(szQuery, sizeof(szQuery), "SELECT pid1, pid2, pid3, pid4, empire FROM player_index%s WHERE id=%u", GetTablePostfix(), r.id);  

 

replace

 

snprintf(szQuery, sizeof(szQuery), "SELECT pid1, pid2, pid3, pid4, pid5, empire FROM player_index%s WHERE id=%u", GetTablePostfix(), r.id);

 

and

 

snprintf(szQuery, sizeof(szQuery), "SELECT pid1, pid2, pid3, pid4, empire FROM player_index%s WHERE id=%u", GetTablePostfix(), account_id);
 
replace
 
snprintf(szQuery, sizeof(szQuery), "SELECT pid1, pid2, pid3, pid4, pid5, empire FROM player_index%s WHERE id=%u", GetTablePostfix(), account_id);
 
and
 
snprintf(szQuery, sizeof(szQuery), "SELECT pid1, pid2, pid3, pid4, empire FROM player_index%s WHERE id=%u", GetTablePostfix(),
 
replace
 
snprintf(szQuery, sizeof(szQuery), "SELECT pid1, pid2, pid3, pid4, pid5, empire FROM player_index%s WHERE id=%u", GetTablePostfix(), 

 

Navicat > Player_index add : pid5

  • Love 8
Link to comment
Share on other sites

  • 5 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.