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 :
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]