|
You last visited: Today at 16:15
Advertisement
5620 Spawnpacket offsets.
Discussion on 5620 Spawnpacket offsets. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
06/30/2012, 18:36
|
#1
|
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
|
5620 Spawnpacket offsets.
I know this is easy, takes one hour of trial and error, but I got many people wanting em, so I just thought about making a thread to make it easier.
Hair: 96
HP: 84
Level: 107
Reborn: 98 ( didn't test it)
Classes: (When you hover over the client's status)
SpawnPacket[215] = value;
SpawnPacket[217] = value;
SpawnPacket[219] = value;
FirstRebornClass : 211
SecondRebornClass : 209
ClanName
Code:
public string ClanName
{
get { return clan; }
set
{
string oldclan = clan;
clan = value;
if (value != null)
{
if (value != "")
{
byte[] dd33 = new byte[8 + 229 + Name.Length + value.Length + 2];
for (int i = 2; i < SpawnPacket.Length - 7; i++)
{
dd33[i] = SpawnPacket[i];
}
SpawnPacket = new byte[8 + 229 + Name.Length + value.Length + 2];
WriteUInt16((ushort)(229 + Name.Length + value.Length + 2), 0, SpawnPacket);
for (int i = 2; i < dd33.Length; i++)
{
SpawnPacket[i] = dd33[i];
}
WriteUInt16(10014, 2, SpawnPacket);
SpawnPacket[226] = 4;
SpawnPacket[227] = (byte)_Name.Length;
WriteString(_Name, 228, SpawnPacket);
SpawnPacket[227 + SpawnPacket[227] + 2] = (byte)value.Length;
WriteString(value, 227 + SpawnPacket[227] + 3, SpawnPacket);
}
else
{
byte[] dd33 = new byte[8 + 221 + Name.Length + 2];
for (int i = 2; i < SpawnPacket.Length - 8; i++)
{
if (i < dd33.Length)
dd33[i] = SpawnPacket[i];
}
SpawnPacket = new byte[8 + 229 + Name.Length + 2];
WriteUInt16((ushort)(229 + Name.Length + 2), 0, SpawnPacket);
for (int i = 2; i < dd33.Length; i++)
{
SpawnPacket[i] = dd33[i];
}
WriteUInt16(10014, 2, SpawnPacket);
SpawnPacket[226] = 4;
SpawnPacket[227] = (byte)_Name.Length;
WriteString(_Name, 228, SpawnPacket);
SpawnPacket[227 + SpawnPacket[227] + 2] = (byte)value.Length;
WriteString(value, 227 + SpawnPacket[227] + 3, SpawnPacket);
}
}
}
}
Normal name:
Code:
public string Name
{
get { return _Name; }
set
{
_Name = value;
SpawnPacket = new byte[8 + 230 + _Name.Length];
WriteUInt16((ushort)(230 + _Name.Length), 0, SpawnPacket);
WriteUInt16(10014, 2, SpawnPacket);
WriteStringList(new List<string> { _Name }, 226, SpawnPacket);
}
}
Also most of the equipment offsets has changed, most of em got 4 more bytes.
That's what I recall atm, if you need anything else post it here.
Kratos.
|
|
|
06/30/2012, 19:04
|
#2
|
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
|
People still use this absurd way of implementing the spawn packet?
|
|
|
06/30/2012, 19:07
|
#3
|
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
|
Mind telling me a better way ?
|
|
|
06/30/2012, 19:12
|
#4
|
elite*gold: 0
Join Date: Jul 2008
Posts: 90
Received Thanks: 7
|
i wish same as you =)
|
|
|
06/30/2012, 19:17
|
#5
|
elite*gold: 0
Join Date: Jan 2012
Posts: 55
Received Thanks: 3
|
Quote:
Originally Posted by diedwarrior
Mind telling me a better way ?
|
Their deeds like that
PHP Code:
spawn Packet
NameLenght = 219
Name = 230
|
|
|
06/30/2012, 19:18
|
#6
|
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
|
^ Huh ?
|
|
|
06/30/2012, 21:23
|
#7
|
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
|
Complementing ...
Spawn Packet of Level is 107 and 90
|
|
|
06/30/2012, 21:29
|
#8
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
Why does everyone write the packet type at the end of everything else, as well? It's offset 2.. Things should be defined in order to make it easier to read later.
Also, I don't believe in having one object for packets from/to the server. If I needed to access, say, Name, I would access the origin, not what I already put into the packet.. When defining a packet to be sent to the server, you should really only need to store the byte array.. but that's just me. Feel free to correct me on that.
|
|
|
06/30/2012, 23:46
|
#9
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
sounds good that you are try to help 
Today Helping tomorrow Regretting
|
|
|
06/30/2012, 23:54
|
#10
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
I wouldn't say regret. I was around when quite a few of the people here didn't even know how to code, including some that are/were moderators, and I either helped them, or learned from them, it was a community effort. I can't say that any of us regret anything related to learning or what we've learned, or the fact that we helped the people we did.
|
|
|
07/01/2012, 00:03
|
#11
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
Quote:
Originally Posted by Zeroxelli
I wouldn't say regret. I was around when quite a few of the people here didn't even know how to code, including some that are/were moderators, and I either helped them, or learned from them, it was a community effort. I can't say that any of us regret anything related to learning or what we've learned, or the fact that we helped the people we did.
|
when everyone helps anyone else i hope that the learner learns from what you do without knowing why it made for!!
|
|
|
07/01/2012, 00:08
|
#12
|
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
|
Why I share most of the stuff I do? Well I do so, to make people happy in the first place, And maybe just maybe, when they take this stuff, that would make 'em wanting to learn more, to create bigger systems etc, well as long as I'm helping people, I'm glad :P.
|
|
|
07/01/2012, 00:27
|
#13
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
That's a great attitude to have, and exactly what this community needs. It's what we were founded upon in the first place.
|
|
|
07/01/2012, 00:38
|
#14
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
#facepalm at that clan name structure -_-, it can be broken down to like 3 lines
|
|
|
07/01/2012, 00:45
|
#15
|
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
|
Not even my source, just did em to a dude through tv, i gave him the number but he couldn't do it, so i just copied it and since it was for impulses so i released it.
|
|
|
 |
|
Similar Threads
|
help me plz update 5620 monster
08/18/2012 - CO2 Private Server - 38 Replies
http://l1.pimp-my-profile.com/i58/5/6/27/pmp_5d473 2a28038740bb3cfe53ec2e63db9.jpg
http://l1.pimp-my-profile.com/i55/5/6/27/pmp_4611 37102db1023d2e042d671bc1fca2.jpg
Hello friend today I want to ask for help with a big problem as you can see much been testing various offsets to make the monster may appear in the new version but my update but I can not, it then who can tell me the code to see monsters who I could tell where should should change if I ask you kindly please help me with this...
|
HP SpawnPacket patch 5562!
06/30/2012 - CO2 Private Server - 14 Replies
hello,
i got problem while updating entities spawn packets all is fine got all works but got 2 problems :S
first one after update HitPoints to the new offsets it works but got a big hp bar in the monster screen check the screenshot :
http://www9.0zz0.com/2012/06/30/15/127234074.jpg
so, what may i miss to edit to make it work fine?
|
What about the new SpawnPacket
06/09/2012 - CO2 Private Server - 21 Replies
I need help with the new Spawnpacket please any one know the new SpawnPacket please give me it
|
All times are GMT +1. The time now is 16:18.
|
|