PHP Code:
public string Name
{
get
{
return _Name;
}
set
{
this._Name = value;
int index = 239;
if (this.ClanName != "")
{
this.SpawnPacket = new byte[((((8 + index) + 2) + this.Name.Length) + this.ClanName.Length) + 2];
Writer.WriteUInt16((ushort)((((index + 2) + this.Name.Length) + this.ClanName.Length) + 2), 0, this.SpawnPacket);
Writer.WriteUInt16(0x271e, 2, 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]) + 2, this.SpawnPacket);
}
else
{
this.SpawnPacket = new byte[((8 + index) + 2) + this.Name.Length];
Writer.WriteUInt16((ushort)((index + 2) + this.Name.Length), 0, this.SpawnPacket);
Writer.WriteUInt16(0x271e, 2, this.SpawnPacket);
this.SpawnPacket[index] = 4;
this.SpawnPacket[index + 1] = (byte)this._Name.Length;
Writer.WriteString(this._Name, index + 2, this.SpawnPacket);
}
}
}//
public string ClanName
{
get
{
return this.clan;
}
set
{
this.clan = value;
if (value != null)
{
int index = 238;//234
if (value != "")
{
byte[] buffer = new byte[((((8 + index) + 2) + this.Name.Length) + value.Length) + 2];
for (int i = 2; i < (this.SpawnPacket.Length - 7); i++)
{
buffer[i] = this.SpawnPacket[i];
}
this.SpawnPacket = new byte[((((8 + index) + 2) + this.Name.Length) + value.Length) + 2];
Writer.WriteUInt16((ushort)((((index + 2) + this.Name.Length) + value.Length) + 2), 0, this.SpawnPacket);
for (int j = 2; j < buffer.Length; j++)
{
this.SpawnPacket[j] = buffer[j];
}
Writer.WriteUInt16(0x271e, 2, 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)value.Length;
Writer.WriteString(value, ((index + 1) + this.SpawnPacket[index + 1]) + 2, this.SpawnPacket);
}
else
{
byte[] buffer2 = new byte[(((8 + index) + 2) + this.Name.Length) + 2];
for (int k = 2; k < (this.SpawnPacket.Length - 8); k++)
{
if (k < buffer2.Length)
{
buffer2[k] = this.SpawnPacket[k];
}
}
this.SpawnPacket = new byte[(((8 + index) + 2) + this.Name.Length) + 2];
Writer.WriteUInt16((ushort)(((index + 2) + this.Name.Length) + 2), 0, this.SpawnPacket);
for (int m = 2; m < buffer2.Length; m++)
{
this.SpawnPacket[m] = buffer2[m];
}
Writer.WriteUInt16(0x271e, 2, 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)value.Length;
Writer.WriteString(value, ((index + 1) + this.SpawnPacket[index + 1]) + 2, this.SpawnPacket);
}
}
}
}