Quote:
Originally Posted by OELABOELA
Ok, my turn.
Packet layout
Code:
offset 0 - size - ushort
offset 2 - type - ushort
offset 4 - UID - uint
offset 8 - ID - uint
offset 12 - X - ushort
offset 14 - Y - ushort
offset 16 - Droptype
Okay, so now.. we just fill in the values :)
Code:
size = 18 00 -> 18 -> 24 (+8 with seal)
type = 4D 04 -> 44D -> 1101
UID = 37 CF 29 00 -> 29CF37 -> 2740023
ID = 85 BD 01 00 -> 1BD85 ->114053
X = 43 01 -> 143 -> 323
Y = 22 02 -> 222 -> 546
Droptype = 09 00 -> 9 -> 9
|
I took the loot code out of my hunting code so it doesn`t really matter, I don`t understand packets either lol. I have read stuff after stuff on here and with Google about packets but nothing seems to give a simple enough explanation about packets. I will probably one day figure it out like I did with division in maths but that`s only because everything about division was dissected for me so I understood it completely and why it does what it does.
I like to know absolutely every last detail about things before I understand it but when I do understand it then I am able to do it. Bit like languages I was asked how come I pronounce German so fluently by my German teacher. Simply because she was a good teacher who gave explanations about everything including dialect and various other things.
How do you come up with the results do you use a calculator for example? I want the means of finding this stuff out not just the answer :)
Code:
size = 18 00 -> 18 -> 24 (+8 with seal)
type = 4D 04 -> 44D -> 1101
UID = 37 CF 29 00 -> 29CF37 -> 2740023
ID = 85 BD 01 00 -> 1BD85 ->114053
X = 43 01 -> 143 -> 323
Y = 22 02 -> 222 -> 546
Droptype = 09 00 -> 9 -> 9
I see how you get the 18 00 and 4D 04 from
Code:
Packet Nr 9. Server -> Client, Length : 32, PacketType: 1101
18 00 4D 04 37 CF 29 00 85 BD 01 00 43 01 22 02 ; M7Ï) …½ C"
09 00 02 00 00 00 00 00 54 51 53 65 72 76 65 72 ; TQServer
BUT how do you know that only UID is 37 CF 29 00? I really am trying to learn but I simply don`t quite understand it yet >.<