[Help]CoEmu v2 - View packet

06/02/2009 21:05 mejo33#1
Hello its a view packet in lotf source, how i can re-build the packet to using in CoEmu v2 system? thanks for help!
Quote:
public byte[] ViewEquip(Character Char)
{
ushort PacketType = 0x3f7;
string Spouse = Char.Spouse;

byte[] Packet = new byte[11 + Spouse.Length];

fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)Char.UID;
*(p + 8) = 0x10;
*(p + 9) = 0x01;
*(p + 10) = (byte)Spouse.Length;

for (int i = 0; i < Spouse.Length; i++)
{
*(p + 11 + i) = Convert.ToByte(Spouse[i]);
}
}
return Packet;
}
06/02/2009 22:07 kinshi88#2
Just have a look at other packets from CoEmu.
Also remember that some packets have changed from 5017 to 5095.
06/02/2009 22:10 mejo33#3
Hehe, i looking on other packet on coemu. So, i am new coder i coding small script some npc etc. If u can look BIG thanks :)
06/02/2009 23:32 scottdavey#4
Quote:
Originally Posted by kinshi88 View Post
Just have a look at other packets from CoEmu.
Also remember that some packets have changed from 5017 to 5095.
Are there any packet loggers available?
06/03/2009 00:34 Zeroxelli#5
Wireshark?