منتدي زيرو vb - zerovb

منتدي زيرو vb - zerovb (https://forum.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر تهيس Conquer Private Servers (https://forum.vpscairo.com/forumdisplay.php?f=83)
-   -   Wanted System 100% للي محتاجه للعربي والانجلش (https://forum.vpscairo.com/showthread.php?t=9284)

Mr.DeMo 12-11-2015 12:15 AM

Wanted System 100% للي محتاجه للعربي والانجلش
 
بسم الله الرحمن الرحيم

انا يا رجاله كنت منزل سيستم "المطلوب" او Wanted System

المهم السيستم ده للسيرفرات العربي و الانجليزي تمام

اولا للسيرفرات الانجليزي

نبدأ
افتح ملف

كود PHP:

Npc.cs 

حط الانبي سي ده

كود PHP:

                #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"716);
                            
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"100x10);
                                    
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."1014);
                                    
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(clientdialogNameOfDeaduid);
                                    
client.Entity.cpsea 0;
                                }
                                else
                                {
                                    
dialog.Text("Wrong Name");
                                    
dialog.Input("Try Again."1014);
                                    
dialog.Send();
                                    return;
                                }

                            }
                            break;
                    }
                    return;

                
#endregion HarryPotter 

بعد كده افتح ملف

كود PHP:

World.cs 

ابحث عن

كود PHP:

#region AutoHunting 

اقفله من السالب

وحط ده تحتيه

كود PHP:

            #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 

افتح
كود PHP:

Entity 

تحت ده

كود PHP:

public class Entity WriterInterfaces.IBaseEntityInterfaces.IMapObject 

هتلاقي قوس

حط ده تحت القوس

كود PHP:

        #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 clientNpcs dialogstring PlayerNameuint 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.Red2011), 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 

افتح
كود PHP:

EntityTable 

ابحث عن
كود PHP:

client.Entity.Face reader.ReadUInt16("Face"); 

تحتها حط ده

كود PHP:

                    client.Entity.KillerTime DateTime.FromBinary(reader.ReadInt64("KillerTime"));
                    
client.Entity.KillerCps reader.ReadUInt32("KillerCps");
                    
client.Entity.inkillmode reader.ReadUInt32("inkillmode"); 

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

كود PHP:

UpdateCps 

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

        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();
        } 

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

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

كود PHP:

AddCpsWin 

او كلمه

كود PHP:

RemoveCps 

هتبحث عن

كود PHP:

AddGMCommand 

في بروجرم

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

كود PHP:

        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(PathfolderN);
                if (!
File.Exists(NewPath folderN))
                {
                    
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(PathfolderN));
                }
                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(PathfolderN);
                if (!
File.Exists(NewPath folderN))
                {
                    
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(PathfolderN));
                }
                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); }
        } 

بس كده تمام

شغل النافي كات في الاخر بقي

نخش علي الشرح للسورسات العربي تمام

الانبي سي اهو

كود PHP:

#region Wanted By HarryPotter
                
case 87950:

                    switch (
npcRequest.OptionID)
                    {
                        case 
0:
                            {
                                
dialog.Text("مرحبا يا" +  client.Entity.Name "يمكنك الان وضع اسم الشخص الذي تريد من اللاعبين  قتله مقابل سي بي ");
                                
dialog.Text("ستدخل السي بي بحد ادني 5 الاف سي بي");
                                
dialog.Text("عندما يقتله احد سوف يأخد السي بي الذي انت حددته ");
                                
dialog.Option("ضع اسم اللاعب."1);
                                
dialog.Option("لاحقا."0xff);
                                
dialog.Send();

                                break;
                            }
                        case 
1:
                            if (
client.Entity.ConquerPoints 5000)
                            {
                                
dialog.Text("اسف ولاكن انت لا تملك حتي 5 الاف سي بي يا نوب ");
                                
dialog.Send();
                                return;
                            }
                            
dialog.Text("هل انت متأكد من استخدام هذه الخدمه ");
                            
dialog.Option("نعم هيا بنا ."5);
                            
dialog.Option("لا شكرا ."255);
                            
dialog.Send();
                            break;
                        case 
5:
                            if (
client.Entity.ConquerPoints 10000)
                            {
                                
dialog.Text(" انت لا تملك 10 الاف سي بي");
                                
dialog.Option("اسف."0xff);
                                
dialog.Send();
                                return;
                            }
                            
dialog.Text("من فضلك اكتب عدد السي بي ");
                            
dialog.Input("عدد السي بي"716);
                            
dialog.Option("خروج."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("لقض اضفت  " client.Entity.cpsea " سي بي للعب");
                                    
dialog.Text("اكتب اسم اللاعب المطلوب  .");
                                    
dialog.Input("اسم اللاعب"100x10);
                                    
dialog.Send();
                                }
                                else
                                {
                                    
dialog.Text("انت لا تملك " num3 " سي بي يا نوب.");
                                    
dialog.Option("اسف."0xff);
                                    
dialog.Send();
                                }
                            }
                            catch
                            {
                                
dialog.Text("اكتب القيمه السي بي صحيحه.");
                                
dialog.Option("محاوله اخري."5);
                                
dialog.Option("خروج."0xff);
                                
dialog.Send();
                            }
                            return;
                        case 
10:
                            {

                                
string NameOfDead client.Entity.KillerName npcRequest.Input;
                                if (
client.Entity.Name == client.Entity.KillerName)
                                {
                                    
dialog.Text("لا يمكنك وضع اسمك ضع اسم احد اللاعبين");
                                    
dialog.Input("حاول مره اخره."1014);
                                    
dialog.Option("لا شكرا."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 " خسر " client.Entity.cpsea " بداخل النظام ");
                                    
client.Entity.KillerCps client.Entity.cpsea;
                                    
uint uid r.ReadUInt32("UID");
                                    
Entity.KilleStart(clientdialogNameOfDeaduid);
                                    
client.Entity.cpsea 0;
                                }
                                else
                                {
                                    
dialog.Text("اسم خطأ");
                                    
dialog.Input("حاول مره اخري."1014);
                                    
dialog.Send();
                                    return;
                                }

                            }
                            break;
                    }
                    return;

                
#endregion HarryPotter 

افتح
كود PHP:

Entity 

تحت ده

كود PHP:

public class Entity WriterInterfaces.IBaseEntityInterfaces.IMapObject 

هتلاقي قوس

حط ده تحت القوس
كود PHP:

        #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 clientNpcs dialogstring PlayerNameuint UID)
        {
            if (
Kernel.GamePool[UID] != null)
            {
                
GameState state Kernel.GamePool[UID];
                if (
state == null)
                {
                    
dialog.Text("اسف هذا الاعب غير متواجد في اللعبه الان  2. " PlayerName);
                    
dialog.Option("اسف."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 " عرض " +  state.Entity.KillerCps "سي بي لمن يقتل هذا الاعب :" PlayerName "  انه مطلوب الان" }), System.Drawing.Color.Red2011), Program.Values);
                    }
                    else
                    {
                        
dialog.Text(string.Concat(new object[] { "اسف, "PlayerName" هناك شخص اخر وضع اسم هذا اللاعب " }));
                        
dialog.Option("نعم.اسف."0xff);
                        
dialog.Send();
                    }
                }
                else
                {
                    
dialog.Text("اسف هذا الاعب غير متواجد في اللعبه الان 1. " PlayerName);
                    
dialog.Option("اسف."0xff);
                    
dialog.Send();
                }
            }
        }
        
#endregion 

افتح
كود PHP:

World.cs 

ابحث عن

كود PHP:

#region AutoHunting 

اقفله من السالب

وحط ده تحتيه

كود PHP:

            #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 "  خذ :" + (client.Entity.KillerCps 2) + "لك لان  لا احد قادر علي قتلك "System.Drawing.Color.Red,  Network.GamePackets.Message.Qualifier));
                    
client.Entity.inkillmode 0;
                    
client.Entity.ConquerPoints += (client.Entity.KillerCps 2);
                    
Program.AddCpsWin(client.Entity.Name " فز ب " + (client.Entity.KillerCps 2) + " لأنك قتلت المطلوب :");
                    
client.Entity.KillerCps 0;
                    
EntityTable.KillerTime(client);
                }
            }
            
#endregion 

افتح
كود PHP:

EntityTable 

ابحث عن
كود PHP:

client.Entity.Face reader.ReadUInt16("Face"); 

تحتها حط ده

كود PHP:

                    client.Entity.KillerTime DateTime.FromBinary(reader.ReadInt64("KillerTime"));
                    
client.Entity.KillerCps reader.ReadUInt32("KillerCps");
                    
client.Entity.inkillmode reader.ReadUInt32("inkillmode"); 

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

كود PHP:

UpdateCps 

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

        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();
        } 

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

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

كود PHP:

AddCpsWin 

او كلمه

كود PHP:

RemoveCps 

هتبحث عن

كود PHP:

AddGMCommand 

في بروجرم

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

كود PHP:

        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(PathfolderN);
                if (!
File.Exists(NewPath folderN))
                {
                    
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(PathfolderN));
                }
                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(PathfolderN);
                if (!
File.Exists(NewPath folderN))
                {
                    
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(PathfolderN));
                }
                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); }
        } 

بس كده تمام

النافي كات

اعمل زي الي في الصورتين دول

طبعا هتعمل ديزين تابل لانتيتيس في النافي كات واعمل زي الي في الصورتين

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

وادي الانبي سي اهو

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

صور السيستم

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

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

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

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

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

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

بعد ما قتلته

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


وبكده اكون خلصت

لو في اي مشكله او اي كود ناقص يبقي انا نسيتو عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
ياريت حد يقولي عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع


تحياتي
HarryPotter#


مع اسلامه يا رجاله
Tornado Team
HarryPotter#

elmistrolord 04-08-2016 09:48 PM

Thankssssssss

اونجا 04-12-2016 05:21 PM

تسلم يا غالى

ASDFGH1 04-17-2016 02:53 PM

شكران جارى التجار

hessan55 03-17-2017 07:40 AM

تحت التجربة

koety 04-01-2017 08:43 PM

تسلم يا حبي

ahmed2011 05-31-2017 06:11 AM

thankssssssssss

انت عمري 10-31-2017 11:48 AM

لم نشوف علله ميطلعش فستك

A7medCapo 12-11-2017 09:40 AM

Thanks For You

mzag 12-22-2017 04:20 PM

شكرا وتسلم ايدك


الساعة الآن 06:58 AM.

Powered by vpscairo
Copyright ©2013 - 2025, Jelsoft Enterprises Ltd
Translation by tamer
Copyright ©2000-2024,vpscairo.com