Packet Functions

zetaepyon edited this page Jan 9, 2018 · 2 revisions

This page outlines the available functions that inject packets. They have been tested extensively, but there is never a guarantee that injecting packets is safe. Use at own risk.

Also check out the Packets Library, which facilitates packet injection based on known packet data.


windower.packets.inject_incoming(id, payload)

  • id integer - ID of the packet
  • payload string - Binary data to be sent Injects the specified incoming packet. Payload must include the 4-byte header.

windower.packets.inject_outgoing(id, payload)

  • id integer - ID of the packet
  • payload string - Binary data to be sent

Injects the specified outgoing packet. Payload must include the 4-byte header.

windower.packets.last_incoming(id)

  • id integer - ID of the packet

Returns the last received packet packet with ID id along with the timestamp of when it was recorded. Both values are nil if the packet hasn't been received yet.

windower.packets.last_outgoing(id)

  • id integer - ID of the packet

Returns the last sent packet packet with ID id along with the timestamp of when it was recorded. Both values are nil if the packet hasn't been sent yet.

windower.packets.parse_action(payload)

  • payload string - Binary data of the packet

Returns a table of parsed data for the incoming action packet (0x028). Will return an empty table for any other packet data.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.