- Joined
- Jul 27, 2008
- Messages
- 222
- Reaction score
- 9
This little tutorial will fix the broadcasting and will be shown as real CO broadcast.
First open the project from your source and go to client.cs, then search for:
you will see the broadcast stuff and replace the whole case for :
First open the project from your source and go to client.cs, then search for:
Code:
MyChar.CPs -= 5;
you will see the broadcast stuff and replace the whole case for :
Code:
public unsafe void GetPacket(byte[] data)
{
try
{
byte[] Data = data;
Crypto.Decrypt(ref Data);
ushort PacketId = (ushort)((Data[3] << 8) | Data[2]);
int PacketType;
if (PacketId == 53101 || PacketId == 53110)
Drop();
switch (PacketId)
{
case 2050:
{
if (Data[4] == 3 && MyChar.CPs >= 5)
{
MyChar.CPs -= 5;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
byte Len = Data[13];
string Message = "";
for (int i = 0; i < Len; i++)
{
Message += Convert.ToChar(Data[14 + i]);
}
World.SendMsgToAll(Message, MyChar.Name, 2500);
}
break;
}