You last visited: Today at 23:21
Advertisement
5017 to 5065 | Packets
Discussion on 5017 to 5065 | Packets within the CO2 Private Server forum part of the Conquer Online 2 category.
07/19/2011, 17:58
#1
elite*gold: 0
Join Date: May 2011
Posts: 168
Received Thanks: 33
5017 to 5065 | Packets
I've been at this for a while, I'm trying to upgrade 5017 to 5065. I honestly don't think I am doing this the correct way. I don't know what else to do besides upgrade packets (If there even is anything else to do).
So look what I got here, maybe you will spot a problem:
SpawnEntity:-
Code:
public byte[] SpawnEntity(Character Player)
{
string[] equip;
long HeadId = 0;
long ArmorId = 0;
long RightHandId = 0;
long LeftHandId = 0;
long GarmentId = 0;
if (Player.Equips[1] != null)
{
equip = Player.Equips[1].Split('-');
HeadId = Convert.ToInt64(equip[0]);
}
if (Player.Equips[3] != null)
{
equip = Player.Equips[3].Split('-');
ArmorId = Convert.ToInt64(equip[0]);
}
if (Player.Equips[4] != null)
{
equip = Player.Equips[4].Split('-');
RightHandId = Convert.ToInt64(equip[0]);
}
if (Player.Equips[5] != null)
{
equip = Player.Equips[5].Split('-');
LeftHandId = Convert.ToInt64(equip[0]);
}
if (Player.Equips[9] != null)
{
equip = Player.Equips[9].Split('-');
GarmentId = Convert.ToInt64(equip[0]);
}
long ToArmor;
if (Player.Equips[9] != null)
ToArmor = GarmentId;
else
ToArmor = ArmorId;
uint Model;
if (Player.Alive)
Model = uint.Parse(Convert.ToString(Player.Avatar) + Convert.ToString(Player.Model));
else
{
if (Player.Model == 1003 || Player.Model == 1004)
Model = uint.Parse(Convert.ToString(Player.Avatar) + 1098.ToString());
else
Model = uint.Parse(Convert.ToString(Player.Avatar) + 1099.ToString());
}
ushort PacketType = 0x3F6;
byte[] Packet = new byte[138 + Convert.ToByte(Player.Name)];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)Model;
*((uint*)(p + 8)) = (uint)Player.UID;
*((ushort*)(p + 12)) = (ushort)Player.GuildID;
*(p + 14) = Player.GuildPosition;
*((ulong*)(p + 16)) = (ulong)Player.GetStat();
if (Player.Alive)
{
*((uint*)(p + 24)) = (uint)HeadId;
*((uint*)(p + 28)) = (uint)ToArmor;
*((uint*)(p + 32)) = (uint)GarmentId;
*((uint*)(p + 36)) = (uint)LeftHandId;
*((uint*)(p + 40)) = (uint)RightHandId;
}
*((uint*)(p + 44)) = (uint)Player.SteedID;
*((ushort*)(p + 56)) = (ushort)Player.Hair;
*((ushort*)(p + 58)) = (ushort)Player.LocX;
*((ushort*)(p + 60)) = (ushort)Player.LocY;
*(p + 62) = Player.Direction;
*(p + 63) = Player.Action;
*(p + 68) = Player.Reborn;
*(p + 69) = Player.Level;
*(p + 88) = Player.Nobility;
*((ushort*)(p + 92)) = (ushort)Player.ArmorColor;
*((ushort*)(p + 94)) = (ushort)Player.LeftHandColor;
*((ushort*)(p + 96)) = (ushort)Player.HeadgearColor;
*((uint*)(p + 98)) = (uint)Player.QuizPoints;
*((ushort*)(p + 102)) = (ushort)Player.Linage;
*((uint*)(p + 108)) = (uint)Player.LinagePoints;
*(p + 136) = 1;
*(p + 137) = (byte)Player.Name.Length;
for (int i = 0; i < Player.Name.Length; i++)
{
*(p + 138 + i) = Convert.ToByte(Player.Name[i]);
}
}
return Packet;
}
SpawnEntity Packet Layout:-
Code:
0 ushort 138 + Character_Name
2 ushort 10014
4 uint Character_ModelID
8 uint Character_ID
12 ushort Character_GuildID
14 ushort Character_GuildRank
16 ulong Character_Status
24 uint Character_Helm_ID
28 uint Character_Armour_ID
32 uint Character_Garment_ID
36 uint Character_LeftHand_ID
40 uint Character_RightHand_ID
44 uint Character_Steed_ID
56 ushort Character_HairStyle
58 ushort Character_CordX
60 ushort Character_CordY
62 byte Character_Direction
63 byte Character_Action
68 byte Character_Reborn
69 byte Character_Level
88 byte Character_Nobility
92 ushort Armour_Colour
94 ushort leftHand_Colour
96 ushort HeadGear_Colour
98 uint Character_QuizPoints
102 ushort Linage
108 uint Linage_Points
136 byte String_Count
137 byte Character_Name_Length
138 string Character_Name
CharInfo:-
Code:
public byte[] CharacterInfo(Character Charr)
{
ushort PacketType = 0x3ee;
string Spouse = "None";
short Length = (short)(75 + Charr.Name.Length);
byte[] Packet = new byte[Length];
long Model = Convert.ToInt64(Convert.ToString(Charr.Avatar) + Convert.ToString(Charr.Model));
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)Charr.UID;
*((uint*)(p + 8)) = (uint)Model;
*((ushort*)(p + 12)) = (ushort)Charr.Hair;
*((uint*)(p + 14)) = (uint)Charr.Silvers;
*((uint*)(p + 18)) = (uint)Charr.CPs;
*((uint*)(p + 22)) = (uint)Charr.Exp;
//*((ushort*)(p + 42)) = (ushort)5130;
*((ushort*)(p + 50)) = (ushort)Charr.Str;
*((ushort*)(p + 52)) = (ushort)Charr.Agi;
*((ushort*)(p + 54)) = (ushort)Charr.Vit;
*((ushort*)(p + 56)) = (ushort)Charr.Spi;
*((ushort*)(p + 58)) = (ushort)Charr.StatP;
*((ushort*)(p + 60)) = (ushort)Charr.CurHP;
*((ushort*)(p + 62)) = (ushort)Charr.MaxMana();
*((ushort*)(p + 64)) = (ushort)Charr.PKPoints;
*(p + 66) = Charr.Level;
*(p + 67) = Charr.Job;
*(p + 69) = Charr.Reborn;
*(p + 70) = 1;
*(p + 71) = 2;
*(p + 72) = (byte)Charr.Name.Length;
for (int i = 0; i < Charr.Name.Length; i++)
{
*(p + 73 + i) = Convert.ToByte(Charr.Name[i]);
}
*(p + 74 + Charr.Name.Length) = (byte)Spouse.Length;
for (int i = 0; i < Spouse.Length; i++)
{
*(p + Charr.Name.Length + 75 + i) = Convert.ToByte(Spouse[i]);
}
}
return Packet;
}
CharInfo Packet Layout:-
Code:
0 ushort 75 + TotalStringLength
2 ushort 1006
4 uint Character_ID
8 uint Character_Model
12 ushort Character_HairStyle
14 uint Character_Gold
18 uint Character_CPoints
22 ulong Character_Experience
50 ushort Character_Strength
52 ushort Character_Dexterity
54 ushort Character_Vitality
56 ushort Character_Spirit
58 ushort Character_StatPoints
60 ushort Character_HP
62 ushort Character_MP
64 ushort Character_PKPoints
66 byte Character_Level
67 byte Character_Class
69 byte Character_Reborn
70 bool Character_Name_Display
71 byte String_Count
72 byte Character_Name_Length
73 string Character_Name
74 + Pos byte Spouse_Name_Length
75 + Pos string Spouse_Name
Help would be greatly appreciated.
Thanks
07/19/2011, 21:28
#2
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
That's 5165.
"98 uint Character_QuizPoints
102 ushort Linage
108 uint Linage_Points"
"44 uint Character_Steed_ID"
07/19/2011, 21:38
#3
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
You add the crypto yet?
07/19/2011, 22:33
#4
elite*gold: 0
Join Date: Jan 2008
Posts: 1,446
Received Thanks: 1,179
Quote:
Originally Posted by
BaussHacker
That's 5165.
"98 uint Character_QuizPoints
102 ushort Linage
108 uint Linage_Points"
"44 uint Character_Steed_ID"
He asks for 5065. I lost my source for 5071, but I still have some packets dump for 5065. If you are interested.
07/19/2011, 22:41
#5
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by
CptSky
He asks for 5065. I lost my source for 5071, but I still have some packets dump for 5065. If you are interested.
I know he asks for them, but he said it was his current result.
07/19/2011, 23:02
#6
elite*gold: 12
Join Date: Jul 2011
Posts: 8,288
Received Thanks: 4,196
Quote:
Originally Posted by
CptSky
He asks for 5065. I lost my source for 5071, but I still have some packets dump for 5065. If you are interested.
I would love those dumps.
Similar Threads
[Help] 5017 - 5065
08/12/2010 - CO2 Private Server - 23 Replies
Hi guys im hoping to find help from some kind person that would be willing to point me in the right direction to upgrade a 5017 source and client to 5065. Now I have been researching this for days on end and I must have used the search button so many times that I think I could do it blindfolded. I came across binaries which I tried to follow about 5 times now but I got stuck on the account server part as I can't find one to download. I'm not the kind of person to give up easy and I hope that...
Which is Better to Use, 4398 or under, 5017, 5065, 5095, 5117-5118?
10/16/2009 - CO2 Private Server - 19 Replies
Which is Better to Use, 4398 or under, 5017, 5065, 5095, 5117-5118?
Yall will help me chose what source to use and also help others decide what they want to use!
Post what you think and Why.
Thanks,
xTwiztedKidx
BTW: I will give Thanks to everyones opinion
And Hopefully I'll get some thanks back! :)
[RELEASE]Big Project..5095,5065,5017,5017 (command Server)
10/01/2009 - CO2 PServer Guides & Releases - 23 Replies
Hi,
Yes i made a big project with my self by my self i host i edit i control i code.
The Project contain 3 Co plvling Servers and 1 Command server the plvling servers are Snow Server and Treasure island .
snow server works with 5065 client and it have alot of edits , adds , well i have made 135 gears and you can upgrade it in market from De La Vega for 250k CPS for each item also you should get 1 blessing amulet to make dmg -1 and you can get it by killing 1000 Birdman or 1000 Snake man or...
[REQ] Ready or some 5065 packets
07/27/2009 - CO2 Private Server - 2 Replies
For who can help i need the 5065 packetz
All times are GMT +2. The time now is 23:22 .