احصائياتى

الردود
96

المشاهدات
9664
 
Hazem
.:: المدير العام::.

    غير متواجد

المشاركات
2,306

+التقييم
0.84

تاريخ التسجيل
Apr 2019

الاقامة
Egypt

نظام التشغيل
windows 7

رقم العضوية
1
2019-05-09, 04:53 PM
المشاركة 1
2019-05-09, 04:53 PM
المشاركة 1
افتراضي اضافة البوكر

السلام عليكم ورحمة الله وبركاته
اليوم اضافة ملفات البوكر كله
الموضوع نزل علي اخر ايام تيم اكسور والحمد لله لقيت الملفات بتاعتهم قبل ما يقفل
يلا نبداء
علشان منكبرش الموضوع انشرح بالصور
ده ملفات اتتحط في فلدر 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); 
        } 
    } 
} 

كده خلصنا وانشاء الله يظبط معاكم



التعديل الأخير تم بواسطة Mr~Rayzo ; 2019-09-23 الساعة 01:11 AM
قديم 2019-05-09, 04:55 PM
المشاركة 2
Hassan Emprator
.:: مشرف قسم المشاكل ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
عليا الطلاق انت برنسسسسسسسسسسس عاش فشخ

قديم 2019-05-10, 11:23 AM
المشاركة 3
salahsayed
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
شكرا جداااااااااااا

قديم 2019-05-10, 02:26 PM
المشاركة 4
virus7x
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
مشكورررررررر

قديم 2019-05-10, 05:05 PM
المشاركة 5
salahsayed
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
بعد لما ركبت بيجيلي الايرور الي في الصورة ده

عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع

قديم 2019-05-10, 05:18 PM
المشاركة 6
Hazem
.:: المدير العام::.
  • غير متواجد
افتراضي رد: اضافة البوكر
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع
بعد لما ركبت بيجيلي الايرور الي في الصورة ده
الخطا انك مخلي ال public سطرين خليهم سطر واحد مكان الغلط

قديم 2019-05-11, 09:51 AM
المشاركة 7
salahsayed
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع
الخطا انك مخلي ال public سطرين خليهم سطر واحد مكان الغلط
بس انا معدلتش فيه حاجة هوة زي مهوة كدة ويعني ازاي اخليهم سطر واحد معلش

قديم 2019-05-11, 10:06 AM
المشاركة 8
Hazem
.:: المدير العام::.
  • غير متواجد
افتراضي رد: اضافة البوكر
عادي عدله مفيش مشاكل

قديم 2019-05-11, 10:10 AM
المشاركة 9
salahsayed
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع
عادي عدله مفيش مشاكل
طب اعدلها ازاي بعد ازنك

قديم 2019-05-12, 02:08 AM
المشاركة 10
etetoo2015
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
مشكوووووووووووورررررررررر ر


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: اضافة البوكر
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
طلب بخصوص البوكر لو سمحت ياحازم ToRWadA مشكلات السيرفيرات كونكر الشخصيه 5 2019-09-18 12:35 PM
محتاج البوكر osama مشكلات السيرفيرات كونكر الشخصيه 1 2019-07-28 04:06 PM
مشكلة فى نظام البوكر osama مشكلات السيرفيرات كونكر الشخصيه 7 2019-07-06 05:54 PM
ان بى سى يدخلك البوكر Hazem تطوير سيرفرات كونكر 3 2019-06-18 11:29 AM
طريقة اضافة البوكر salahsayed مشكلات السيرفيرات كونكر الشخصيه 4 2019-05-11 01:58 PM


الساعة الآن 03:30 AM