View Revision: Timestamp
Definition
Some of the client-side [Packet|packets] contain timestamp (3 bytes). Timestamp is properly calculated system time and it's designed for detecting a speed hack.
Packets containing timestamp:
- [PACKET_WALK|Walk]
- [PACKET_ATTACK|Attack]
- [PACKET_SPELL|Spell packets]
Calculation
Timestamp calculation isn't very complicated. It looks like this:'''(system time:hour*3600) + (system time:minutes*60) + (system time:seconds*100) + (system time:miliseconds/10)'''
This is how a [PACKET_WALK|walk packet] structure does look like
Examples
This is how a walk packet structure does look like
- Length:2
- PacketAction:1
- PacketFamily:1
- Direction:1
- Timestamp:3
- WalkX:1
- WalkY:1