قديم 2020-08-19, 11:10 PM
المشاركة 81
Circle
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع

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

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

قديم 2020-08-20, 12:06 PM
المشاركة 82
ahmeduyd
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
3ash

قديم 2020-08-20, 01:18 PM
المشاركة 83
Yasser
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
تسلم

قديم 2020-09-13, 10:26 AM
المشاركة 84
TmXor
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
مشكور

قديم 2020-09-24, 02:39 PM
المشاركة 85
AliNasser
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
عاش

قديم 2020-12-05, 06:11 PM
المشاركة 86
aboroh
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
حلو اوي عاش

قديم 2021-01-02, 03:55 PM
المشاركة 87
Rakano
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
مشكوووووووووووورررررررررر ر

قديم 2021-01-02, 03:57 PM
المشاركة 88
Rakano
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
رجالة ممكن حد يرفع الملفات تانى لان السيرفر اتقفل

قديم 2021-01-03, 04:59 PM
المشاركة 89
radielpop
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
في مشكله معايا يا حازم لما الاكونت بيهيس مش بيقوم من الطربيظه ممكن حل يعني اول اما الاكونت يهنج او يهيس ويجي يفتحه تاني يقوم من عالطربيظه عشان يقدر يقعد تاني ارجو الرد وشكرا مقدما

قديم 2021-01-04, 06:01 AM
المشاركة 90
!MAX!
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: اضافة البوكر
مشكوووووووووور


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



الذين يشاهدون محتوى الموضوع الآن : 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


الساعة الآن 12:25 PM