محمد ياسر
2019-05-09, 04:53 PM
السلام عليكم ورحمة الله وبركاته
اليوم اضافة ملفات البوكر كله
الموضوع نزل علي اخر ايام تيم اكسور والحمد لله لقيت الملفات بتاعتهم قبل ما يقفل
يلا نبداء
علشان منكبرش الموضوع انشرح بالصور
ده ملفات اتتحط في فلدر Game
عفواً لايمكن عرض الروابط في الإرشيف
والملفات دي هتتحط في المسار دا
Network\GamePackets
عفواً لايمكن عرض الروابط في الإرشيف
وأخيرآ تحميل الملفات
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
نكمل
في مسار bin\debug\database\gmlogs
ضيف الملفات ده
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
نيجي شوية للاكواد
كلاس Program.cs
ضيف دول
public static void AddpokerCps(string text)
{
try
{
text = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + text;
string str = DateTime.Now.Year + "-" + DateTime.Now.Month;
string str2 = @"gmlogs\AddpokerCps";
string str3 = Path.Combine(str2, str);
if (!File.Exists(str3 + str))
{
Directory.CreateDirectory(Path.Combine(str2, str));
}
if (!File.Exists(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
using (FileStream stream = File.Create(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
stream.Close();
}
}
using (StreamWriter writer = new StreamWriter(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" }), true))
{
writer.WriteLine(text);
writer.Close();
}
}
catch (Exception exception)
{
Phoenix_Project.Console.WriteLine(exception, ConsoleColor.DarkYellow);
}
}
public static void AddpokerAllinCps(string text)
{
try
{
text = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + text;
string str = DateTime.Now.Year + "-" + DateTime.Now.Month;
string str2 = @"gmlogs\AddpokerAllinCps";
string str3 = Path.Combine(str2, str);
if (!File.Exists(str3 + str))
{
Directory.CreateDirectory(Path.Combine(str2, str));
}
if (!File.Exists(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
using (FileStream stream = File.Create(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
stream.Close();
}
}
using (StreamWriter writer = new StreamWriter(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" }), true))
{
writer.WriteLine(text);
writer.Close();
}
}
catch (Exception exception)
{
Phoenix_Project.Console.WriteLine(exception, ConsoleColor.DarkYellow);
}
}
public static void AddCpsWin(string text)
{
try
{
text = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + text;
string str = DateTime.Now.Year + "-" + DateTime.Now.Month;
string str2 = @"gmlogs\AddWinCps";
string str3 = Path.Combine(str2, str);
if (!File.Exists(str3 + str))
{
Directory.CreateDirectory(Path.Combine(str2, str));
}
if (!File.Exists(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
using (FileStream stream = File.Create(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
stream.Close();
}
}
using (StreamWriter writer = new StreamWriter(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" }), true))
{
writer.WriteLine(text);
writer.Close();
}
}
catch (Exception exception)
{
ZenonProJect.Console.WriteLine(exception, ConsoleColor.DarkYellow);
}
}
كلاس PacketBuilder.cs في Game
namespace Phoenix_Project.Game
{
using System;
using Phoenix_Project;
public class PacketBuilder
{
protected byte[] _buffer = new byte[0x400];
protected int Len;
protected int Position;
protected byte[] TQ_SERVER = Program.Encoding.GetBytes("TQServer");
public PacketBuilder(int T, int L)
{
this.Len = L;
this.Length(L);
this.Type(T);
}
internal void Fill(int End)
{
for (int i = this.Position; i < End; i++)
{
this.Int(0);
}
}
public byte[] getFinal()
{
this.Seal();
return this._buffer;
}
public int GetPos() =>
this.Position;
public void Int(int value)
{
this._buffer[this.Position] = Convert.ToByte((int) (value & 0xff));
this.Position++;
}
public void Int(uint value)
{
this._buffer[this.Position] = Convert.ToByte((uint) (value & 0xff));
this.Position++;
}
public void Int(int value, int Offset)
{
this._buffer[Offset] = Convert.ToByte((int) (value & 0xff));
Offset++;
}
public void Int(uint value, int Offset)
{
this._buffer[Offset] = Convert.ToByte((uint) (value & 0xff));
Offset++;
}
public void Length(int value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
}
public void Length(int value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
}
public void Long(int value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x10) & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x18) & 0xff);
this.Position++;
}
public void Long(uint value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x10) & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x18) & 0xff);
this.Position++;
}
public void Long(ulong value)
{
this._buffer[this.Position] = (byte) (value & ((ulong) 0xffL));
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & ((ulong) 0xffL));
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x10) & ((ulong) 0xffL));
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x18) & ((ulong) 0xffL));
this.Position++;
}
public void Long(int value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x10) & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x18) & 0xff);
}
public void Long(uint value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x10) & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x18) & 0xff);
Offset++;
}
public void Long(ulong value, int Offset)
{
this._buffer[Offset] = (byte) (value & ((ulong) 0xffL));
Offset++;
this._buffer[Offset] = (byte) ((value >> & ((ulong) 0xffL));
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x10) & ((ulong) 0xffL));
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x18) & ((ulong) 0xffL));
}
public void Move(int value)
{
for (int i = 0; i < value; i++)
{
this._buffer[this.Position] = 0;
this.Position++;
}
}
internal void PrintThis()
{
string line = "";
for (int i = 0; i < this.Position; i++)
{
line = line + this._buffer[i].ToString("X") + " ";
}
Phoenix_Project.Console.WriteLine(line, ConsoleColor.DarkYellow);
}
protected void Seal()
{
Array.Copy(this.TQ_SERVER, 0, this._buffer, this.Position, this.TQ_SERVER.Length);
this.Position += this.TQ_SERVER.Length + 1;
byte[] destinationArray = new byte[this.Position - 1];
Array.Copy(this._buffer, destinationArray, (int) (this.Position - 1));
this._buffer = new byte[destinationArray.Length];
Array.Copy(destinationArray, this._buffer, destinationArray.Length);
destinationArray = null;
}
public void SetPosition(int Pos)
{
this.Position = Pos;
}
public void Short(int value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
}
public void Short(uint value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
}
public void Short(int value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
this._buffer[Offset + 1] = (byte) ((value >> & 0xff);
}
public void Short(uint value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
}
public void Text(string value)
{
byte[] bytes = Program.Encoding.GetBytes(value);
Array.Copy(bytes, 0, this._buffer, this.Position, bytes.Length);
this.Position += bytes.Length;
}
public void Type(int value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
}
public void Type(int value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
}
public void ULong(ulong value)
{
this._buffer[this.Position] = (byte) value;
this.Position++;
this._buffer[this.Position] = (byte) (value >> 8);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x10);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x18);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x20);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 40);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x30);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x38);
this.Position++;
}
public void ULong(ulong value, int Offset)
{
this._buffer[Offset] = (byte) value;
Offset++;
this._buffer[Offset] = (byte) (value >> 8);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x10);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x18);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x20);
Offset++;
this._buffer[Offset] = (byte) (value >> 40);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x30);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x38);
}
}
}
كده خلصنا وانشاء الله يظبط معاكم
اليوم اضافة ملفات البوكر كله
الموضوع نزل علي اخر ايام تيم اكسور والحمد لله لقيت الملفات بتاعتهم قبل ما يقفل
يلا نبداء
علشان منكبرش الموضوع انشرح بالصور
ده ملفات اتتحط في فلدر Game
عفواً لايمكن عرض الروابط في الإرشيف
والملفات دي هتتحط في المسار دا
Network\GamePackets
عفواً لايمكن عرض الروابط في الإرشيف
وأخيرآ تحميل الملفات
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
نكمل
في مسار bin\debug\database\gmlogs
ضيف الملفات ده
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
نيجي شوية للاكواد
كلاس Program.cs
ضيف دول
public static void AddpokerCps(string text)
{
try
{
text = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + text;
string str = DateTime.Now.Year + "-" + DateTime.Now.Month;
string str2 = @"gmlogs\AddpokerCps";
string str3 = Path.Combine(str2, str);
if (!File.Exists(str3 + str))
{
Directory.CreateDirectory(Path.Combine(str2, str));
}
if (!File.Exists(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
using (FileStream stream = File.Create(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
stream.Close();
}
}
using (StreamWriter writer = new StreamWriter(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" }), true))
{
writer.WriteLine(text);
writer.Close();
}
}
catch (Exception exception)
{
Phoenix_Project.Console.WriteLine(exception, ConsoleColor.DarkYellow);
}
}
public static void AddpokerAllinCps(string text)
{
try
{
text = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + text;
string str = DateTime.Now.Year + "-" + DateTime.Now.Month;
string str2 = @"gmlogs\AddpokerAllinCps";
string str3 = Path.Combine(str2, str);
if (!File.Exists(str3 + str))
{
Directory.CreateDirectory(Path.Combine(str2, str));
}
if (!File.Exists(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
using (FileStream stream = File.Create(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
stream.Close();
}
}
using (StreamWriter writer = new StreamWriter(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" }), true))
{
writer.WriteLine(text);
writer.Close();
}
}
catch (Exception exception)
{
Phoenix_Project.Console.WriteLine(exception, ConsoleColor.DarkYellow);
}
}
public static void AddCpsWin(string text)
{
try
{
text = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + text;
string str = DateTime.Now.Year + "-" + DateTime.Now.Month;
string str2 = @"gmlogs\AddWinCps";
string str3 = Path.Combine(str2, str);
if (!File.Exists(str3 + str))
{
Directory.CreateDirectory(Path.Combine(str2, str));
}
if (!File.Exists(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
using (FileStream stream = File.Create(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" })))
{
stream.Close();
}
}
using (StreamWriter writer = new StreamWriter(string.Concat(new object[] { str3, @"", DateTime.Now.Day, ".txt" }), true))
{
writer.WriteLine(text);
writer.Close();
}
}
catch (Exception exception)
{
ZenonProJect.Console.WriteLine(exception, ConsoleColor.DarkYellow);
}
}
كلاس PacketBuilder.cs في Game
namespace Phoenix_Project.Game
{
using System;
using Phoenix_Project;
public class PacketBuilder
{
protected byte[] _buffer = new byte[0x400];
protected int Len;
protected int Position;
protected byte[] TQ_SERVER = Program.Encoding.GetBytes("TQServer");
public PacketBuilder(int T, int L)
{
this.Len = L;
this.Length(L);
this.Type(T);
}
internal void Fill(int End)
{
for (int i = this.Position; i < End; i++)
{
this.Int(0);
}
}
public byte[] getFinal()
{
this.Seal();
return this._buffer;
}
public int GetPos() =>
this.Position;
public void Int(int value)
{
this._buffer[this.Position] = Convert.ToByte((int) (value & 0xff));
this.Position++;
}
public void Int(uint value)
{
this._buffer[this.Position] = Convert.ToByte((uint) (value & 0xff));
this.Position++;
}
public void Int(int value, int Offset)
{
this._buffer[Offset] = Convert.ToByte((int) (value & 0xff));
Offset++;
}
public void Int(uint value, int Offset)
{
this._buffer[Offset] = Convert.ToByte((uint) (value & 0xff));
Offset++;
}
public void Length(int value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
}
public void Length(int value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
}
public void Long(int value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x10) & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x18) & 0xff);
this.Position++;
}
public void Long(uint value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x10) & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x18) & 0xff);
this.Position++;
}
public void Long(ulong value)
{
this._buffer[this.Position] = (byte) (value & ((ulong) 0xffL));
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & ((ulong) 0xffL));
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x10) & ((ulong) 0xffL));
this.Position++;
this._buffer[this.Position] = (byte) ((value >> 0x18) & ((ulong) 0xffL));
this.Position++;
}
public void Long(int value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x10) & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x18) & 0xff);
}
public void Long(uint value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x10) & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x18) & 0xff);
Offset++;
}
public void Long(ulong value, int Offset)
{
this._buffer[Offset] = (byte) (value & ((ulong) 0xffL));
Offset++;
this._buffer[Offset] = (byte) ((value >> & ((ulong) 0xffL));
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x10) & ((ulong) 0xffL));
Offset++;
this._buffer[Offset] = (byte) ((value >> 0x18) & ((ulong) 0xffL));
}
public void Move(int value)
{
for (int i = 0; i < value; i++)
{
this._buffer[this.Position] = 0;
this.Position++;
}
}
internal void PrintThis()
{
string line = "";
for (int i = 0; i < this.Position; i++)
{
line = line + this._buffer[i].ToString("X") + " ";
}
Phoenix_Project.Console.WriteLine(line, ConsoleColor.DarkYellow);
}
protected void Seal()
{
Array.Copy(this.TQ_SERVER, 0, this._buffer, this.Position, this.TQ_SERVER.Length);
this.Position += this.TQ_SERVER.Length + 1;
byte[] destinationArray = new byte[this.Position - 1];
Array.Copy(this._buffer, destinationArray, (int) (this.Position - 1));
this._buffer = new byte[destinationArray.Length];
Array.Copy(destinationArray, this._buffer, destinationArray.Length);
destinationArray = null;
}
public void SetPosition(int Pos)
{
this.Position = Pos;
}
public void Short(int value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
}
public void Short(uint value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
}
public void Short(int value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
this._buffer[Offset + 1] = (byte) ((value >> & 0xff);
}
public void Short(uint value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
}
public void Text(string value)
{
byte[] bytes = Program.Encoding.GetBytes(value);
Array.Copy(bytes, 0, this._buffer, this.Position, bytes.Length);
this.Position += bytes.Length;
}
public void Type(int value)
{
this._buffer[this.Position] = (byte) (value & 0xff);
this.Position++;
this._buffer[this.Position] = (byte) ((value >> & 0xff);
this.Position++;
}
public void Type(int value, int Offset)
{
this._buffer[Offset] = (byte) (value & 0xff);
Offset++;
this._buffer[Offset] = (byte) ((value >> & 0xff);
}
public void ULong(ulong value)
{
this._buffer[this.Position] = (byte) value;
this.Position++;
this._buffer[this.Position] = (byte) (value >> 8);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x10);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x18);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x20);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 40);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x30);
this.Position++;
this._buffer[this.Position] = (byte) (value >> 0x38);
this.Position++;
}
public void ULong(ulong value, int Offset)
{
this._buffer[Offset] = (byte) value;
Offset++;
this._buffer[Offset] = (byte) (value >> 8);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x10);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x18);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x20);
Offset++;
this._buffer[Offset] = (byte) (value >> 40);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x30);
Offset++;
this._buffer[Offset] = (byte) (value >> 0x38);
}
}
}
كده خلصنا وانشاء الله يظبط معاكم