|
You last visited: Today at 17:03
Advertisement
[Release] Real Broadcast (Same as in Real Co)
Discussion on [Release] Real Broadcast (Same as in Real Co) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
10/06/2008, 19:52
|
#1
|
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
|
[Release] Real Broadcast (Same as in Real Co)
hey my first release since im back at epvp and the owner from copals asked me for this (that is the reason why i quited his team) so here is the release from the real broadcast.
Requirements: - one of the lotf sources
- eyes
- hands
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;
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;
}
login, broadcast a message, hit thanks
do you have questions? ask it here.
NOTE: i tested it in "Powerco Source" "First Lotf Release" "ShadowCo" "UltimateCo" "TCWN"
|
|
|
10/06/2008, 20:08
|
#2
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
going to test
|
|
|
10/06/2008, 20:17
|
#3
|
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
|
Quote:
Originally Posted by $HaDoW
going to test 
|
so... what is the result?
|
|
|
10/06/2008, 20:25
|
#4
|
elite*gold: 0
Join Date: Sep 2008
Posts: 348
Received Thanks: 141
|
Wooow thanks
|
|
|
10/06/2008, 20:27
|
#5
|
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
|
Quote:
Originally Posted by E*PvPers
Wooow thanks
|
np m8
|
|
|
10/06/2008, 22:07
|
#6
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
working great !
Btw I dont know how mutch the msg must stay in real co :P can you tell ? because this one was staying for more then 20 I think  ( I didint been all the time on so dont know when its disappear  )
|
|
|
10/06/2008, 22:09
|
#7
|
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
|
Quote:
Originally Posted by $HaDoW
working great !
Btw I dont know how mutch the msg must stay in real co :P can you tell ? because this one was staying for more then 20 I think  ( I didint been all the time on so dont know when its disappear  )
|
sorry i cant help you with that i think xD
|
|
|
10/06/2008, 22:18
|
#8
|
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
|
Quote:
Originally Posted by XxArcherMasterxX
hey my first release since im back at epvp and the owner from copals asked me for this (that is the reason why i quited his team) so here is the release from the real broadcast.
Requirements: - one of the lotf sources
- eyes
- hands
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;
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;
}
login, broadcast a message, hit thanks
do you have questions? ask it here.
NOTE: i tested it in "Powerco Source" "First Lotf Release" "ShadowCo" "UltimateCo" "TCWN"
|
tyvm man, but for PowerSource you dun need that line
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)
you just change that
Code:
{
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, [color=red]2010[/color]);
}
break;
}
into that
Code:
{
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, [color=red]2500[/color]);
}
break;
}
|
|
|
10/06/2008, 22:21
|
#9
|
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
|
Quote:
Originally Posted by BlooD-BoY
tyvm man, but for PowerSource you dun need that line
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)
you just change that
Code:
{
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, 2010);
}
break;
}
into that
Code:
{
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;
}
|
yeah but i dont want to make the thread to long
|
|
|
10/06/2008, 22:27
|
#10
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Lol, whatever, not that hard of a fix if you know the type.. TBH I got it myself from... something that's not mine  (Not a LOTF source D:<)
|
|
|
10/06/2008, 22:28
|
#11
|
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
|
Quote:
Originally Posted by tao4229
Lol, whatever, not that hard of a fix if you know the type.. TBH I got it myself from... something that's not mine  (Not a LOTF source D:<)
|
uuuhhhm.....
okay
|
|
|
10/07/2008, 02:26
|
#12
|
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
|
ty good work broo nice release
|
|
|
10/07/2008, 04:52
|
#13
|
elite*gold: 0
Join Date: Jul 2005
Posts: 157
Received Thanks: 14
|
lovely release thanks 50 cent lover xD
|
|
|
10/07/2008, 14:48
|
#14
|
elite*gold: 0
Join Date: May 2006
Posts: 2,168
Received Thanks: 8,593
|
You use more code then whats needed, and if people can't do this on there own they shouldn't even bother making a server, its just a chat packet with a different id.
|
|
|
10/07/2008, 18:30
|
#15
|
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
|
/Agreed
And archermaster.... About your "CoIntron"... Just another stolen CSS Templace w/o links coz' you don't know how to edit it.
|
|
|
All times are GMT +1. The time now is 17:05.
|
|