|
You last visited: Today at 10:13
Advertisement
problem in 5700 SpawnPackets
Discussion on problem in 5700 SpawnPackets within the CO2 Private Server forum part of the Conquer Online 2 category.
02/20/2013, 14:19
|
#1
|
elite*gold: 0
Join Date: Feb 2013
Posts: 19
Received Thanks: 1
|
problem in 5700 SpawnPackets
i update my spawnpacket name,x,y and hp from patch 5690 to 5700
and it works fine
but the problem is the client suddenly closed
so can any one help me?
|
|
|
02/20/2013, 15:14
|
#2
|
elite*gold: 0
Join Date: Jul 2012
Posts: 17
Received Thanks: 9
|
Quote:
Originally Posted by Sadwos
i update my spawnpacket name,x,y and hp from patch 5690 to 5700
and it works fine
but the problem is the client suddenly closed
so can any one help me?
|
Code:
public string Name
{
get
{
return _Name;
}
set
{
this._Name = value;
int index = 234;
if (this.ClanName != "")
{
this.SpawnPacket = new byte[((((8 + index) + 3) + this.Name.Length) + this.ClanName.Length) + 2];
Writer.WriteUInt16((ushort)((((index + 3) + this.Name.Length) + this.ClanName.Length) + 2), 0, this.SpawnPacket);
Writer.WriteUInt16(0x271e, 2, this.SpawnPacket);
Writer.WriteUInt32(this.Flag, index - 7, this.SpawnPacket);
this.SpawnPacket[index] = 4;
this.SpawnPacket[index + 1] = (byte)this._Name.Length;
Writer.WriteString(this._Name, index + 2, this.SpawnPacket);
this.SpawnPacket[((index + 1) + this.SpawnPacket[index + 1]) + 2] = (byte)this.ClanName.Length;
Writer.WriteString(this.ClanName, ((index + 1) + this.SpawnPacket[index + 1]) + 3, this.SpawnPacket);
}
else
{
this.SpawnPacket = new byte[((8 + index) + 3) + this.Name.Length];
Writer.WriteUInt16((ushort)((index + 3) + this.Name.Length), 0, this.SpawnPacket);
Writer.WriteUInt16(0x271e, 2, this.SpawnPacket);
Writer.WriteUInt32(this.Flag, index - 7, this.SpawnPacket);
this.SpawnPacket[index] = 4;
this.SpawnPacket[index + 1] = (byte)this._Name.Length;
Writer.WriteString(this._Name, index + 2, this.SpawnPacket);
}
}
}
Code:
public ushort X
{
get
{
return this._x;
}
set
{
this._x = value;
Writer.WriteUInt16(value, 94, this.SpawnPacket);
}
}
Code:
public ushort Y
{
get
{
return this._y;
}
set
{
this._y = value;
Writer.WriteUInt16(value, 96, this.SpawnPacket);
}
}
Code:
public uint Hitpoints
{
get
{
return this._hitpoints;
}
set
{
if (this.EntityFlag == Conquer_Online_Server.Game.EntityFlag.Player)
{
this.Update(0, value, false);
}
this._hitpoints = value;
if (this.Boss > 0)
{
uint num = this.MaxHitpoints / 10000;
if (num != 0)
{
Writer.WriteUInt16((ushort)(value / num), 86, this.SpawnPacket);
}
else
{
Writer.WriteUInt16((ushort)(((double)((value * this.MaxHitpoints) / 1000)) / 1.09), 86, this.SpawnPacket);
}
}
else
{
Writer.WriteUInt16((ushort)value, 86, this.SpawnPacket);
}
}
}
entity.cs friend in each offsets must be added to 2 by 2 each for the 5700 version nothing more needs to update New Cryptography
|
|
|
02/20/2013, 15:55
|
#3
|
elite*gold: 0
Join Date: Feb 2013
Posts: 19
Received Thanks: 1
|
yes i update name,x,y and hp by adding 2
but i have problem the client close
i think the problem form Name from this SpawnPacket[235] = (byte)_Name.Length;
Quote:
public string Name
{
get
{
return _Name;
}
set
{
_Name = value;
if (ClanName != "")
{
SpawnPacket = new byte[8 + 236 + Name.Length + ClanName.Length + 2];
WriteUInt16((ushort)(236 + Name.Length + ClanName.Length + 2), 0, SpawnPacket);
WriteUInt16(10014, 2, SpawnPacket);
// WriteUInt16(1871, 155, SpawnPacket);//clan id
SpawnPacket[234] = 4;
SpawnPacket[235] = (byte)_Name.Length;//basta = 5 = 217 + 5 + 2=
WriteString(_Name, 236, SpawnPacket);
SpawnPacket[235 + SpawnPacket[235] + 2] = (byte)ClanName.Length;
WriteString(ClanName, 235 + SpawnPacket[233] + 3, SpawnPacket);
}
else
{
SpawnPacket = new byte[8 + 236 + Name.Length];
WriteUInt16((ushort)(236 + Name.Length), 0, SpawnPacket);
WriteUInt16(10014, 2, SpawnPacket);
SpawnPacket[234] = 4;
SpawnPacket[235] = (byte)_Name.Length;
WriteString(_Name, 236, SpawnPacket);
}
}
}
|
|
|
|
02/20/2013, 17:07
|
#4
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
|
The name length is one offset before the name bytes.
Use a stringpacker.
|
|
|
02/20/2013, 17:45
|
#5
|
elite*gold: 0
Join Date: Feb 2013
Posts: 19
Received Thanks: 1
|
Quote:
Originally Posted by Super Aids
The name length is one offset before the name bytes.
Use a stringpacker.
|
So name offset is 236 then the name length offset 235 that's what i did
|
|
|
02/20/2013, 18:52
|
#6
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
when is the client crash ?... i Had client crash when monster come close to Guard and the Problem was the SpellUsage Offsets needed to be update
|
|
|
|
Similar Threads
|
SpawnPackets??
02/19/2013 - CO2 Private Server - 16 Replies
Hey1 every1
Can any one Explain To me What spawnPackets is ??
Ty For ur Time
:handsdown::handsdown:;)
|
Patch 5700
02/16/2013 - CO2 Private Server - 4 Replies
:confused: I need Any One give Me the Packets From The New Patch 5700 Can Eny One Give It To Me Cuz I need Make The New Class:(
|
Probleme mit Spawnpackets
02/21/2012 - DarkOrbit - 12 Replies
Eig bin ich eher der Typ der viel search benutzt und dann auch alles findet, aber hierbei brauch ich mal bisschen hilfe :D (hab nichts passendes gefunden)
Zu meinem Problem: Ich habe in Delphi einen soweit funktionierenden sniffer bzw testbot geschrieben, der per idtcpclient sich aufm server einloggt. Das geht auch soweit, auch das laufsystem funktioniert, was aber nicht geht ist, dass er mir kein Spawnpacket für resourcen oder honeyboxen anzeigt genauso für die Streuner >_<
Hab mir das...
|
2x 80 - GS 5700 + 5200 - 100€
05/30/2010 - World of Warcraft Trading - 3 Replies
Hey :)
Vor ab ich tausche auch gegen WarRock Account
Ich würde gerne mein WoW Account verkaufen weil ich irgendwie die Lust an WoW verloren habe...
bin jetzt mal wieder auf WarRock umgestiegen ;)
Ich fang mal an mit dem Hexer:
EQ :
Kopf : Kinsternde Gugel des Wunderwirkers
Hals : Amulett der lautlosen Euloge
Schultern : Steife Leichenschulterpolster
|
All times are GMT +2. The time now is 10:13.
|
|