احصائياتى

الردود
0

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

    غير متواجد

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

+التقييم
0.84

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

الاقامة
Egypt

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

رقم العضوية
1
2019-04-23, 11:20 AM
المشاركة 1
2019-04-23, 11:20 AM
المشاركة 1
Post سستم المطلوب كونكر

السلام عليكم ورحمة الله وبركاته
سستم المطلوب ده سستم انك اول ماتكتب اسم حد في الانبي سي تروح عنده
يلا نبداء
افتح ملف npcs.cs

كود:
                #region Wanted By HarryPotter 
                
case 87950: 

                    switch (
npcRequest.OptionID) 
                    { 
                        case 
0: 
                            { 
                                
dialog.Text("Hello" + client.Entity.Name  + "You Can But Here Name Of Player To Offer Some Cps For Who Kill Him  "); 
                                
dialog.Text("U will enter Some of ur Cps minimum 10K Cps to register"); 
                                
dialog.Text("When Some One Kill Him He Will Take This Cps"); 
                                
dialog.Option("But Player Name.", 1); 
                                
dialog.Option("Later.", 0xff); 
                                
dialog.Send(); 

                                break; 
                            } 
                        case 
1: 
                            if (
client.Entity.ConquerPoints < 5000) 
                            { 
                                
dialog.Text("Sorry u don't have 5000k cps "); 
                                
dialog.Send(); 
                                return; 
                            } 
                            
dialog.Text("Are U Sure U Wont To Use this Servies "); 
                            
dialog.Option("Yes Lest Go.", 5); 
                            
dialog.Option("no thx .", 255); 
                            
dialog.Send(); 
                            break; 
                        case 
5: 
                            if (
client.Entity.ConquerPoints < 10000) 
                            { 
                                
dialog.Text(" u Dont have 10k cps"); 
                                
dialog.Option("Sorry.", 0xff); 
                                
dialog.Send(); 
                                return; 
                            } 
                            
dialog.Text("Please write Cps Value "); 
                            
dialog.Input("Cps Value", 7, 16); 
                            
dialog.Option("Exit.", 0xff); 
                            
dialog.Send(); 
                            return; 
                        case 
7: 
                            try 
                            { 
                                
string input = npcRequest.Input; 
                                
uint num3 = Convert.ToUInt32(npcRequest.Input); 
                                if ((
client.Entity.ConquerPoints >= num3) && (num3 >= 5000)) 
                                { 
                                    
client.Entity.cpsea = num3; 

                                    
dialog.Text("You have add " + client.Entity.cpsea + " To play"); 
                                    
dialog.Text("Please write the name to vs him  ."); 
                                    
dialog.Input("Killer Name", 10, 0x10); 
                                    
dialog.Send(); 
                                } 
                                else 
                                { 
                                    
dialog.Text("You don't have " + num3 + " CPs."); 
                                    
dialog.Option("Sorry.", 0xff); 
                                    
dialog.Send(); 
                                } 
                            } 
                            catch 
                            { 
                                
dialog.Text("Please write the correct value."); 
                                
dialog.Option("Try Again.", 5); 
                                
dialog.Option("Quit.", 0xff); 
                                
dialog.Send(); 
                            } 
                            return; 
                        case 
10: 
                            { 

                                
string NameOfDead = client.Entity.KillerName = npcRequest.Input; 
                                if (
client.Entity.Name == client.Entity.KillerName) 
                                { 
                                    
dialog.Text("This is your name! try again"); 
                                    
dialog.Input("Try Again.", 10, 14); 
                                    
dialog.Option("No, Thanks.", 0xff); 
                                    
dialog.Send(); 
                                    return; 
                                } 

                                
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT); 
                                
cmd.Select("entities").Where("Name", NameOfDead); 
                                
MySqlReader r = new MySqlReader(cmd); 
                                if (
r.Read()) 
                                { 
                                    
client.Entity.ConquerPoints -= client.Entity.cpsea; 
                                    
Program.RemoveCps(client.Entity.Name + " Lose " + client.Entity.cpsea + " input wanted "); 
                                    
client.Entity.KillerCps = client.Entity.cpsea; 
                                    
uint uid = r.ReadUInt32("UID"); 
                                    
Entity.KilleStart(client, dialog, NameOfDead, uid); 
                                    
client.Entity.cpsea = 0; 
                                } 
                                else 
                                { 
                                    
dialog.Text("Wrong Name"); 
                                    
dialog.Input("Try Again.", 10, 14); 
                                    
dialog.Send(); 
                                    return; 
                                } 

                            } 
                            break; 
                    } 
                    return; 

                
#endregion HarryPotter 

بعد كده افتح ملف
World.cs
ابحث عن

كود:
#region AutoHunting 

اقفله من السالب
فقيه حط دول

كود:
            #region Wanted 
            
if (client.Entity.inkillmode == 1) 
            { 
                if (
client.Entity.wantedeffect.AddSeconds(2) < Time32.Now) 
                { 
                    
client.Entity.wantedeffect = Time32.Now; 
                    
client.Entity.Update(_String.Effect, "juren", true); 
                } 
            } 
            if (
client.Entity.inkillmode == 1) 
            { 
                if (
client.Entity.KillerTime.AddHours(3) < DateTime.Now) 
                { 
                    
client.Send(new Network.GamePackets.Message("" +  client.Entity.Name + "  Got :" + (client.Entity.KillerCps / 2) + "Forme  Wonted System FOr No One Can Kill Him ", System.Drawing.Color.Red,  Network.GamePackets.Message.Qualifier)); 
                    
client.Entity.inkillmode = 0; 
                    
client.Entity.ConquerPoints += (client.Entity.KillerCps / 2); 
                    
Program.AddCpsWin(client.Entity.Name + " Won " +  (client.Entity.KillerCps / 2) + " Cps From  Wanted Hes Is Serviv :"); 
                    
client.Entity.KillerCps = 0; 
                    
EntityTable.KillerTime(client); 
                } 
            } 
            
#endregion 

افتح Entity
ابحث عن

كود:
public class Entity : Writer, Interfaces.IBaseEntity, Interfaces.IMapObject 

انزل لحد القوس
وحط دول بعديهم

كود:
        #region Wanted System 
        
public uint KillerCps = 0; 
        public 
uint inkillmode = 0; 
        public 
string KillerName; 
        public 
Time32 wantedeffect; 
        public 
DateTime KillerTime; 
        public 
uint cpsea = 0; 
        public static 
void KilleStart(GameState client, Npcs dialog, string PlayerName, uint UID) 
        { 
            if (
Kernel.GamePool[UID] != null) 
            { 
                
GameState state = Kernel.GamePool[UID]; 
                if (
state == null) 
                { 
                    
dialog.Text("Sorry, this player may be offline or not found 2. " + PlayerName); 
                    
dialog.Option("Sorry.", 0xff); 
                    
dialog.Send(); 
                } 
                else if (
state.Entity.Name == client.Entity.KillerName) 
                { 
                    if (
state.Entity.inkillmode == 0) 
                    { 
                        
state.Entity.inkillmode = 1; 
                        
state.Entity.KillerCps = client.Entity.KillerCps; 
                        
state.Entity.KillerTime = DateTime.Now; 
                        
client.Entity.KillerCps = 0; 
                        
Kernel.SendWorldMessage(new  Message(string.Concat(new object[] { "" + client.Entity.Name + " Offer "  + state.Entity.KillerCps + "Cps For Who Kill Player :" + PlayerName + "  He Is Wanted Now" }), System.Drawing.Color.Red, 2011), Program.Values); 
                    } 
                    else 
                    { 
                        
dialog.Text(string.Concat(new object[] { "Sorry, ", PlayerName, " Some One offer him In fight " })); 
                        
dialog.Option("OK, Sorry.", 0xff); 
                        
dialog.Send(); 
                    } 
                } 
                else 
                { 
                    
dialog.Text("Sorry, this player may be offline or not found 1. " + PlayerName); 
                    
dialog.Option("Sorry.", 0xff); 
                    
dialog.Send(); 
                } 
            } 
        } 
        
#endregion 

افتح
EntityTable
ابحث عن

كود:
client.Entity.Face = reader.ReadUInt16("Face"); 

تحتيهم حط دول

كود:
                    client.Entity.KillerTime = DateTime.FromBinary(reader.ReadInt64("KillerTime")); 
                    
client.Entity.KillerCps = reader.ReadUInt32("KillerCps"); 
                    
client.Entity.inkillmode = reader.ReadUInt32("inkillmode"); 

في نفس الكلاس ابحث عن

كود:
UpdateCps 

اقفله من السالب وحط فقيهم دول

كود:
        public static void KillerTime(Client.GameState client) 
        { 
            
MySqlCommand command = new MySqlCommand(MySqlCommandType.UPDATE); 
            
command.Update("entities").Set("KillerTime", 0).Where("UID", (long)client.Entity.UID).Execute(); 
        } 

كده شغل السي شارب خلص

لو جالك ايرور في كلمه

كود:
AddCpsWin 

او

كود:
RemoveCps 

هتبحث عن

كود:
AddGMCommand 

في بروجرم

بعد كده اقفلها من السالب وحط ده تحتيها

كود:
        public static void RemoveCps(string text) 
        { 
            try 
            { 
                
text = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + text; 
                
String folderN = DateTime.Now.Year + "-" + DateTime.Now.Month, 
                        
Path = "gmlogs\\RemoveCps\\", 
                        
NewPath = System.IO.Path.Combine(Path, folderN); 
                if (!
File.Exists(NewPath + folderN)) 
                { 
                    
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(Path, folderN)); 
                } 
                if (!
File.Exists(NewPath + "\\" + DateTime.Now.Day + ".txt")) 
                { 
                    
using (System.IO.FileStream fs = System.IO.File.Create(NewPath + "\\" + DateTime.Now.Day + ".txt")) 
                    { 
                        
fs.Close(); 
                    } 
                } 
                
using (System.IO.StreamWriter file = new  System.IO.StreamWriter(NewPath + "\\" + DateTime.Now.Day + ".txt",  true)) 
                { 
                    
file.WriteLine(text); 
                    
file.Close(); 
                } 
            } 
            catch (
Exception ex) { Console.WriteLine(ex); } 
        } 
        public static 
void AddCpsWin(string text) 
        { 
            try 
            { 
                
text = "[" + DateTime.Now.ToString("HH:mm:ss") + "]" + text; 
                
String folderN = DateTime.Now.Year + "-" + DateTime.Now.Month, 
                        
Path = "gmlogs\\AddWinCps\\", 
                        
NewPath = System.IO.Path.Combine(Path, folderN); 
                if (!
File.Exists(NewPath + folderN)) 
                { 
                    
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(Path, folderN)); 
                } 
                if (!
File.Exists(NewPath + "\\" + DateTime.Now.Day + ".txt")) 
                { 
                    
using (System.IO.FileStream fs = System.IO.File.Create(NewPath + "\\" + DateTime.Now.Day + ".txt")) 
                    { 
                        
fs.Close(); 
                    } 
                } 
                
using (System.IO.StreamWriter file = new  System.IO.StreamWriter(NewPath + "\\" + DateTime.Now.Day + ".txt",  true)) 
                { 
                    
file.WriteLine(text); 
                    
file.Close(); 
                } 

            } 
            catch (
Exception ex) { Console.WriteLine(ex); } 
        } 

بس كده تمام

نروح لشغل النفي كات
في ملف entities
ادخل فيه بعدين دوس ctrl+D
اتفتح نافذه اعمل 3 اسطر دول

كود:
KillerTime
KillerCps
inkillmode 

في npcs في النفي كات اعمل دول



صور السيستم

من داخل اللعبه













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



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

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

المواضيع المتشابهه للموضوع: سستم المطلوب كونكر
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
تكملة موضوع سستم الترجمة virus7x تطوير سيرفرات كونكر 14 2020-11-27 11:37 AM
سستم exchangeshop Hazem تطوير سيرفرات كونكر 22 2020-10-27 05:27 PM
سستم تريد لوج كامل Rider تطوير سيرفرات كونكر 2 2020-04-19 05:57 AM
طلب سستم taha مشكلات السيرفيرات كونكر الشخصيه 2 2019-08-02 01:10 AM
سستم الطقس Mero تطوير سيرفرات كونكر 2 2019-06-28 11:20 PM


الساعة الآن 03:29 PM