|
المشاركات 1,940 |
+التقييم 0.94 |
تاريخ التسجيل Apr 2019 |
الاقامة https://www.facebook.com/daany |
نظام التشغيل |
رقم العضوية 1 |
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);
}
}
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);
}
}
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
ان بى سى يدخلك البوكر | محمد ياسر | تطوير سيرفرات كونكر | 4 | 2024-08-06 06:45 PM |
طلب اضافت البوكر لسورس عادي | ElSaher | مشكلات السيرفيرات كونكر الشخصيه | 10 | 2020-05-06 05:12 AM |
كيفيت اضافت طربيزت البوكر في اي مابة | ElSaher | تطوير سيرفرات كونكر | 0 | 2020-04-04 06:03 PM |
محتاج البوكر | osama | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-07-28 04:06 PM |
طريقة اضافة البوكر | salahsayed | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-05-11 01:58 PM |