22-07-2008, 07:35 AM
I have a problem that after sometime that i am not able to login anymore and get right when i login a "Packet Flooding" hack attempt. However if you would create a new account and a new char you could login quite fine , it only happens to accounts wich exist for some time and maybe after a few logins ( not sure why it happens ), but when it happens players cant login at all anymore.
Looking at the Incoming Data at the server i notice that the Datatimer is always 0 when creating a new account and logging in wich kinda makes the:
obsolete.
However when i login wich a bugged account
the datatimer is 4451531~ while the TickCount is about the half and so it wont reset the datapackets and exceed it after some time.
Rebooting the Server or the computer does not help.
I added Packet Encryption Decryption sometime ago to my Server/Client however everything seems to work fine , the Decrypted LOGIN packet seems to be as it should be, and everything is running fine , just after sometime accounts getting bugged(randomly?). Also checked if ClearPlayer(index) is on the right place , wich resets the datapackets, and i did not find any error.
Looking at the Incoming Data at the server i notice that the Datatimer is always 0 when creating a new account and logging in wich kinda makes the:
Code:
If GetTickCount >= Player(Index).DataTimer + 1000 Then
Player(Index).DataTimer = GetTickCount
Player(Index).DataBytes = 0
Player(Index).DataPackets = 0
Exit Sub
End If
obsolete.
However when i login wich a bugged account
the datatimer is 4451531~ while the TickCount is about the half and so it wont reset the datapackets and exceed it after some time.
Rebooting the Server or the computer does not help.
I added Packet Encryption Decryption sometime ago to my Server/Client however everything seems to work fine , the Decrypted LOGIN packet seems to be as it should be, and everything is running fine , just after sometime accounts getting bugged(randomly?). Also checked if ClearPlayer(index) is on the right place , wich resets the datapackets, and i did not find any error.