• 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!

C++ Instant logout / Improve the "ipcheck" of the player

IgoR lYCAN

New Member
Joined
Dec 1, 2018
Messages
169
Reaction score
4
My question is kinda simple ( i guess ) ? xD

There is this option in player.cpp , that checks if the player has no IP, then disconnect the player, but I would like to improve it.

I would like to set it like :

if the character has inside a protective zone -> and has no IP, than logout ( check in 2 seconds without IP )
if the character has battle then -> canlogout (check in 60 seconds without IP )
if the character has combat sign-> the player cantlogout, ( it is already working).

You can see it in player.cpp :


C++:
[B] if (noPongTime >= 60000 && canLogout()) { [/B]
 
Back
Top