[HELP] ViewEquip - Packet | CoEmu v2 |

06/07/2009 00:55 mejo33#1
Hello i working on new packet number 1015. Its a ViewEquip packet.
So, i copy the packet from lotf and change some info.
I dont know how to rebuild packet more, who can help me?
Here a packet:
Quote:
case 1015: //ViewEquip
{
ushort PacketType = 0x3f7;
string Spouse = CSocket.Client.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)CSocket.Client.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;
}
The red fonts its error i need to fix.
THE green color its a UID function. Here a code.
Go to Entines/Characters.cs and put
Quote:
public uint UID = 0;
If u help me really big THANKS:mofo:
06/07/2009 01:09 tao4229#2
This thread is so fucking stupid I didn't even laugh.
Yeah, it's THAT fucking stupid.

You don't need to have any new packets.
Send the 3f7/string with the spouse, then loop through the viewed persons items, send them to the viewer with the new item_add type and the viewed persons UID instead of the item UID.
'Tis there for you, and that's all the protocol you need to know.
06/07/2009 01:12 damianpesta#3
Quote:
Originally Posted by mejo33 View Post
Hello i working on new packet number 1015. Its a ViewEquip packet.
So, i copy the packet from lotf and change some info.
I dont know how to rebuild packet more, who can help me?
Here a packet:

The red fonts its error i need to fix.
THE green color its a UID function. Here a code.
Go to Entines/Characters.cs and put

If u help me really big THANKS:mofo:

the packet for 5095 is slightly diffrent for sure , because of the towers and fans.
06/07/2009 01:18 Zeroxelli#4
Quote:
Originally Posted by damianpesta View Post
the packet for 5095 is slightly diffrent for sure , because of the towels and fans.
xD
06/07/2009 01:20 damianpesta#5
Quote:
Originally Posted by Zeroxelli View Post
xD
#FOR FUCK SAKE @burnt
06/07/2009 01:22 Zeroxelli#6
Quote:
Originally Posted by damianpesta View Post
#FOR FUCK SAKE @burnt
Best laugh all day :'D
06/07/2009 01:31 mejo33#7
-.-
#request close
06/07/2009 01:41 Zeroxelli#8
Do it right!

#Request Close
Because it has anything to with LOTF!