Quote:
Originally Posted by Question
im not sure what your asking but are you talting about #follow like command,or being able to control 2 char on one screen?
|
He wants to be able to control one character manually and have a 2nd (or more) character mirror what the one he is controlling does (e.g. he jumps, other chars jump, he attacks, they attack).
However an easier (in my opinion) way than logging packets from two clients would be to watch for packets being received on the character which will be copying the other, involving the character you want to copy and then modify these packets for the character to do the copying. For example:
Code:
-Proxy watches for packets involving character id '1C 04 15 00'
-You jump on character to mirror (which has the said ID)
-Proxy see's the jump packet received which involves the said ID
-Proxy replicates the packet inserting a new time stamp and the characters ID number
-Proxy sends the new packet
-Find some way to refresh the client because I haven't figured it out yet :D (No need for you to pay attention to this step unless you plan on making a function like this)
Oh, and example code...in VB6 (It's only a basic example though):
Code:
'Under where you check received packets
Select mid(packet, 3, 2)
Case "F2 03" 'Jump packet
PlayerID = mid(packet, 9, 4)
If PlayerID = IDToCopy then 'In my example above this was 1C 04 15 00
Packet2 = packet
mid(Packet2, 9, 4) = TheCharacterToFollowsID
SendPacketToServer(Packet2)
End If
End Select
Of course this is only basic, in a real proxy you would have to work out decryption/encryption etc. Lots of work :D