Editing packets.
Posted: Sat Mar 24, 2007 10:14 pm
Is it possible to hook a packet like 0x6C (target cursor) and edit the packet info the client sends?
I want it to always show the result of GetMapInfo() in the last part of the packet, instead of the landtile or static #.
What ive got now is a hook catching the packet and creating a new packet of the same type to what i want. But how do i make POL use the edited packet? I've tried
packet := newpacket;
return 0;
or is it sent via a different packet to the client with the info?
I want it to always show the result of GetMapInfo() in the last part of the packet, instead of the landtile or static #.
What ive got now is a hook catching the packet and creating a new packet of the same type to what i want. But how do i make POL use the edited packet? I've tried
packet := newpacket;
return 0;
or is it sent via a different packet to the client with the info?