Been searching for 10 min now cant find original author of this codes post, but its not me. I just fixed it a bit. Solved 98 percent of all the LDs peoeple were having on my server... Just wanted to repost in fixed version so it dont get lost...
this goes in client.cpp in world folder starting at line 419 right after the line that says "int32 tmpaccid = 0;"
Code:
long LOCounter;
LOCounter = 0;
do {
charid = database.GetCharacterInfo(char_name, &tmpaccid, &zoneID);
LOCounter++;
}while ((zoneID == 0) && (LOCounter < 10000));
Thanks to whoever figured out original code and problem, worked very well..