santa12 4 Posted July 6, 2020 Share Posted July 6, 2020 Hi, does anyone know how to teleport someone to m1 when the map doesn't exist? Usually, it throws the character to the login screen when someone tries to enter a non-existent map. Link to comment Share on other sites More sharing options...
Contributor TMP4 10995 Posted July 6, 2020 Contributor Share Posted July 6, 2020 input_db.cpp search this: sys_err("InputDB::PlayerLoad : cannot find valid location %d x %d (name: %s)", pTab->x, pTab->y, pTab->name); d->SetPhase(PHASE_CLOSE); return; Change it to: sys_err("InputDB::PlayerLoad : cannot find valid location %d x %d (name: %s)", pTab->x, pTab->y, pTab->name); lMapIndex = EMPIRE_START_MAP(d->GetAccountTable().bEmpire); pos.x = EMPIRE_START_X(d->GetAccountTable().bEmpire); pos.y = EMPIRE_START_Y(d->GetAccountTable().bEmpire); // d->SetPhase(PHASE_CLOSE); // return; 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