• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Forcing Logout When Internet crash

chupaescadatri

Banned User
Joined
Jul 5, 2014
Messages
338
Reaction score
49
Anyone have ideas how to create a script that makes the character give force logout even with battle if the internet crashes?
 
Solution
Anyone have ideas how to create a script that makes the character give force logout even with battle if the internet crashes?
it's a source edit
player.cpp, Player::sendPing()
change
C++:
if (noPongTime >= 60000 && canLogout()) {
to
C++:
if (noPongTime >= 60000) {
also edit 60000 to however long you think should determine an inactive internet connection in milliseconds (60000 milliseconds = 60 seconds)
Anyone have ideas how to create a script that makes the character give force logout even with battle if the internet crashes?
it's a source edit
player.cpp, Player::sendPing()
change
C++:
if (noPongTime >= 60000 && canLogout()) {
to
C++:
if (noPongTime >= 60000) {
also edit 60000 to however long you think should determine an inactive internet connection in milliseconds (60000 milliseconds = 60 seconds)
 
Solution
it's a source edit
player.cpp, Player::sendPing()
change
C++:
if (noPongTime >= 60000 && canLogout()) {
to
C++:
if (noPongTime >= 60000) {
also edit 60000 to however long you think should determine an inactive internet connection in milliseconds (60000 milliseconds = 60 seconds)
Thanks
 
Back
Top