Jump to content
  • 0

[Four] Handle structures Help


Ehsan619

Question

hi

i am working on mop based on mangos I have finished sniffing most of the opcodes and now working on handles. now i have a problem about handeling some of the opcodes. the real problem is i don't know how should know recv the packets and read them for example in CMSG_SET_ACTIVE_MOVER opcode in 4.3.4 we have this method of course in Trinitycore:

 ObjectGuid guid;

 guid[7] = recvPacket.ReadBit();
 guid[2] = recvPacket.ReadBit();
 guid[1] = recvPacket.ReadBit();
 guid[0] = recvPacket.ReadBit();
 guid[4] = recvPacket.ReadBit();
 guid[5] = recvPacket.ReadBit();
 guid[6] = recvPacket.ReadBit();
 guid[3] = recvPacket.ReadBit();

 recvPacket.ReadByteSeq(guid[3]);
 recvPacket.ReadByteSeq(guid[2]);
 recvPacket.ReadByteSeq(guid[4]);
 recvPacket.ReadByteSeq(guid[0]);
 recvPacket.ReadByteSeq(guid[5]);
 recvPacket.ReadByteSeq(guid[1]);
 recvPacket.ReadByteSeq(guid[6]);
 recvPacket.ReadByteSeq(guid[7]);

but in mangos core this is :

recv_data.hexlike();

 ObjectGuid guid;
 recv_data >> guid;

both of them are in 4.3.4 so why reading bytes is difference or am i have a mistake?

plzzzzzz help me what is difference?

the main problem is i don't know where this guid's comes from ! and how can i found the correct bit and byteseq?

is there any totorials about how to find them? or any guid?

Thanx

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Both are slightly different ways to reading in the packet information.

It's quite possible to one is right and one is wrong. Until recently mangos three has been neglected due to lack of resources.

I currently am attempting to bring mangos four upto a basic working order and appreciate any help given.

PM me if you are interested in helping out

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use