قديم 2019-07-03, 06:52 PM
المشاركة 2
محمد ياسر
*
  • غير متواجد
افتراضي رد: ازاي ادي اي حد باند مؤقت هنااا لو سمحتو
شفرة @ban اسم الاعب

قديم 2019-07-03, 07:41 PM
المشاركة 3
uncelsam
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: ازاي ادي اي حد باند مؤقت هنااا لو سمحتو
بان مؤقت ياعني بوقت معين مثلا
وازاي اخلي الي يفتح هاك يروح السحن اوتو ماتك

قديم 2019-07-03, 07:53 PM
المشاركة 4
Users
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ازاي ادي اي حد باند مؤقت هنااا لو سمحتو
1- باند موقت افتح النافى كت وقدام اسمو هتلاقى كلمه الى بتكتب فيها رقم 4 عشان تبقى جى ام
نفس المكان قدام اسمو اكتب 1 الاميل هياخد باند ويتفك لما ترجعو 0
2- البان التلقاءى والسجن لازم لودر حمايه جامد
3- عندنا فى المنتدى موضوعين للشى والجين
حاجه تانى؟؟

قديم 2019-07-04, 05:41 PM
المشاركة 5
uncelsam
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: ازاي ادي اي حد باند مؤقت هنااا لو سمحتو
تمام بس ياعني مثلا لو احط قيم الي يتخطاها يتسجن دي مش صعبه متهيألي

قديم 2019-07-04, 09:13 PM
المشاركة 6
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ازاي ادي اي حد باند مؤقت هنااا لو سمحتو
بان بوقت
ارمي الشفره دي ف بكت هندلر

كود:
case "bantime":
                                {
                                    foreach (var 
Client in Program.Values)
                                    {
                                        if (
Client.Account.State >= client.Account.State)
                                            continue;
                                        if (
Client.Player.LoweredName.Contains(Data[1]))
                                        {
                                            
Client.Account.State Database.AccountTable.AccountState.Banned;
                                            
Client.Account.SaveState();
                                            
Client.Account.CopraState(Database.AccountTable.AccountState.Banned);

                                             
Client["banhours"] = Data[2].Cast<int>();
                                               
Client["banreason"] = message_.Substring(Data[0].Length Data[1].Length Data[2].Length 1);
                                              
Client["banstamp"] = DateTime.Now;

                                            
Client.Disconnect();break;
                                        }
                                    }
                                    break;
                                } 

شفره هتكون bantime elwad 5 ده معناه ان الواد هيتبند 5 ساعات

جرب الشفره الاول مشتغلتش اعمل الكلام الي تحت ده
اعمل سيرش بقا ف بكت هندلر علي

كود:
client.Variables variables

و تحتها ضيف ده

كود:
 if (client["banhours"] == 0)
                    {
                        
client["banhours"] = -1;
                        
client["banreason"] = "Infinite time.";
                        
client["banstamp"] = DateTime.Now.AddYears(100);
                    }
                    if (
Account.State == Database.AccountTable.AccountState.Banned)
                    {
                        if (
client["banhours"] != -1)
                        {
                            
DateTime banStamp client["banstamp"];
                            if (
DateTime.Now banStamp.AddDays(((int)client["banhours"]) / 24).AddHours(((int)client["banhours"]) % 24))
                                
Account.State Database.AccountTable.AccountState.Entity;
                        }
                    }
                    
string Message "";
                    if (
Protection.SystemBannedAccount.IsBanned(client.Account.EntityIDout Message))
                    {
                    }
                    else if (
Account.State == Database.AccountTable.AccountState.Banned)
                    {
                        
DateTime banStamp client["banstamp"];
                        
banStamp banStamp.AddHours(client["banhours"]);
                        
Message "You are banned for " client["banhours"] + " hours [until " banStamp.ToString("HH:mm MM/dd/yyyy") + "]. Reason: " client["banreason"];
                    } 


قديم 2019-07-04, 09:15 PM
المشاركة 7
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ازاي ادي اي حد باند مؤقت هنااا لو سمحتو
ان بي سي الجيانج


كود:
 #region Jiang Npc
                    
case 88854:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        if (
client.Player.MyJiang == null)
                                        {
                                            
dialog.Text("Sorry But You Don't Have Jiang Yet.");
                                            
dialog.Option("I'll think about it!"255);
                                            
dialog.Send();
                                            return;
                                        }
                                        
dialog.Text("Hello Messi Jiang Seller.");
                                        for (
int i 0client.Player.MyJiang.Stagers.Lengthi++)
                                        {
                                            var 
stage client.Player.MyJiang.Stagers[i];
                                            if (
stage.Activate)
                                                
dialog.Option("Stage [" + (byte)(1) + "]", (byte)(1));

                                        }
                                        
dialog.Option("I'll think about it!"255);
                                        
dialog.Send();
                                        break;
                                    }
                                default:
                                    {
                                        
int mStage npcRequest.OptionID;
                                        if (
mStage >= && mStage <= 9)
                                        {
                                            foreach (var 
item in Database.JiangHu.CultivateStatus[(byte)mStage])
                                            {
                                                
dialog.Option(((Game.JiangHu.JiangStages.AtributesType)item).ToString(), (byte)((item 10) + mStage));
                                            }

                                        }
                                        else
                                        {
                                            if (
client.Player.ConquerPoints 10)
                                            {
                                                
dialog.Text("Sorry But You Don't Have 1 cps ");
                                                
dialog.Option("I'll think about it!"255);
                                                
dialog.Send();
                                                return;
                                            }
                                            
client.Player.ConquerPoints -= 10;
                                            
client.Player.Teleport(1002300278);
                                            var 
typex mStage 10;
                                            
mStage mStage 10;
                                            
byte stageno = (byte)Math.Min(9mStage);
                                            
byte level 6;
                                            var 
type = (Game.JiangHu.JiangStages.AtributesType)Math.Min(15typex);
                                            if (
client.Player.MyJiang.Stagers.Length >= stageno)
                                            {
                                                var 
stage client.Player.MyJiang.Stagers[(stageno 1)];
                                                for (
byte i 1stage.Stars.Length 1i++)
                                                {
                                                    
client.Player.MyJiang.MyNewStart = new Game.JiangHu.GetNewStar();
                                                    
client.Player.MyJiang.MyNewStart.PositionStar i;
                                                    
client.Player.MyJiang.MyNewStart.Stage stageno;
                                                    
client.Player.MyJiang.MyNewStart.Star = new Game.JiangHu.JiangStages.Star();
                                                    
client.Player.MyJiang.MyNewStart.Star.Activate true;
                                                    
client.Player.MyJiang.MyNewStart.Star.Level level;
                                                    
client.Player.MyJiang.MyNewStart.Star.Typ type;
                                                    
client.Player.MyJiang.MyNewStart.Star.UID client.Player.MyJiang.ValueToRoll(client.Player.MyJiang.MyNewStart.Star.Typclient.Player.MyJiang.MyNewStart.Star.Level);
                                                    
Network.GamePackets.JiangHuUpdate upd = new Network.GamePackets.JiangHuUpdate();
                                                    
upd.Atribute client.Player.MyJiang.MyNewStart.Star.UID;
                                                    
upd.FreeCourse client.Player.MyJiang.FreeCourse;
                                                    
upd.Stage stageno;
                                                    
upd.Star i;
                                                    
upd.FreeTimeTodeyUsed = (byte)client.Player.MyJiang.FreeTimeTodeyUsed;
                                                    
upd.RoundBuyPoints client.Player.MyJiang.RoundBuyPoints;
                                                    
client.Send(upd.ToArray());
                                                    
client.Player.MyJiang.ApplayNewStar(client);
                                                }
                                                if (
client.Player.MyJiang != null)
                                                    
client.Player.MyJiang.SendStatus(clientclient);
                                            }

                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
ان بي سي التشي 

 
#region Chi Npc
                    
case 4444:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        if (
client.ChiPowers.Count == 0)
                                        {
                                            
dialog.Text("Sorry But You Don't Have chi Yet.");
                                            
dialog.Option("I'll think about it!"255);
                                            
dialog.Send();
                                            return;
                                        }
                                        
dialog.Text("Hello I'M Mr.online Chi Seller.");
                                        for (
int i 0client.ChiPowers.Counti++)
                                        {
                                            var 
stage client.ChiPowers[i];
                                            
dialog.Option(((Game.Enums.ChiPowerType)(1)).ToString(), (byte)(1));
                                        }
                                        
dialog.Option("I'll think about it!"255);
                                        
dialog.Send();
                                        break;
                                    }
                                default:
                                    {
                                        
int mStage npcRequest.OptionID;
                                        if (
mStage >= && mStage <= 4)
                                        {
                                            
client.Player.SelectedStage mStage;
                                            
dialog.Text("You Choose " + ((Game.Enums.ChiPowerType)mStage).ToString() + " stage. please select Attribute you want to change ");
                                            for (
int i 04i++)
                                            {
                                                
dialog.Option("Attribute [" + (byte)(1) + "]", (byte)(4));
                                            }
                                            
dialog.Option("Back"0);
                                            
dialog.Option("I'll think about it!"255);
                                            
dialog.Send();
                                            break;
                                        }
                                        else if (
mStage >= && mStage <= 8)
                                        {
                                            
client.Player.SelectedAttribute mStage 4;
                                            var 
mychiattribute = new List<Enums.ChiAttribute>();
                                            var 
powers client.ChiPowers[(int)client.Player.SelectedStage 1];
                                            for (
int i 0powers.Attributes.Lengthi++)
                                            {
                                                var 
Attribute powers.Attributes[i];
                                                
mychiattribute.Add(Attribute.Type);
                                            }
                                            
dialog.Text("You Choose Attribute [" client.Player.SelectedAttribute "] please select AttributeType you want to change ");
                                            for (
int i 0< (int)Enums.ChiAttribute.MagicDamageDecreasei++)
                                            {
                                                var 
type = ((Enums.ChiAttribute)(1));
                                                if (!
mychiattribute.Contains(type))
                                                    
dialog.Option(type.ToString(), (byte)(((1) * 10)));
                                            }
                                            
dialog.Option("Back", (byte)client.Player.SelectedStage);
                                            
dialog.Option("I'll think about it!"255);
                                            
dialog.Send();
                                            break;
                                        }
                                        else
                                        {
                                            if (
client.Player.ConquerPoints <= 1)
                                            {
                                                
dialog.Text("Sorry But You Don't Have 1 cps ");
                                                
dialog.Option("I'll think about it!"255);
                                                
dialog.Send();
                                                return;
                                            }

                                            var 
typex mStage 10;
                                            var 
Mode client.Player.SelectedStage;
                                            var 
pos client.Player.SelectedAttribute 1;
                                            var 
powers client.ChiPowers[Mode 1];
                                            var 
attributes powers.Attributes;
                                            foreach (var 
attr in attributes)
                                            {
                                                if (
attr == null) continue;
                                                if (
attr.Type == (Enums.ChiAttribute)typex)
                                                {
                                                    
client.MessageBox("Sorry you can't muliplay stats"nullnull);
                                                    return;
                                                }
                                            }
                                            
attributes[pos].Type = (Enums.ChiAttribute)typex;
                                            
attributes[pos].Value = (ushort)Game.Enums.ChiMaxValues(attributes[pos].Type);
                                            
powers.CalculatePoints();
                                            
Database.ChiTable.Sort((Enums.ChiPowerType)Mode);
                                            
powers.Power = (Enums.ChiPowerType)Mode;
                                            
client.Player.ConquerPoints -= 1;
                                            
client.Player.Teleport(1002300278);
                                            
client.Send(new ChiPowers(true).Query(client));
                                            
#region update ranking
                                            
Database.ChiTable.ChiData[] array = null;
                                            switch ((
Enums.ChiPowerType)Mode)
                                            {
                                                case 
Game.Enums.ChiPowerType.Dragon:
                                                    array = 
Database.ChiTable.Dragon;
                                                    break;
                                                case 
Game.Enums.ChiPowerType.Phoenix:
                                                    array = 
Database.ChiTable.Phoenix;
                                                    break;
                                                case 
Game.Enums.ChiPowerType.Tiger:
                                                    array = 
Database.ChiTable.Tiger;
                                                    break;
                                                case 
Game.Enums.ChiPowerType.Turtle:
                                                    array = 
Database.ChiTable.Turtle;
                                                    break;
                                            }
                                            foreach (var 
chiData in array)
                                            {
                                                if (
Kernel.GamePool.ContainsKey(chiData.UID))
                                                {
                                                    var 
pClient Kernel.GamePool[chiData.UID];
                                                    if (
pClient == null) continue;
                                                    if (
pClient.ChiData == null) continue;
                                                    
// make it public instead of private 
                                                    
PacketHandler.SendRankingQuery(new GenericRanking(true) { Mode GenericRanking.QueryCount }, pClientGenericRanking.Chi + (uint)ModepClient.ChiData.SelectRank((Enums.ChiPowerType)Mode), pClient.ChiData.SelectPoints((Enums.ChiPowerType)Mode));
                                                    if (
pClient.Player.UID == client.Player.UID || pClient.ChiData.SelectRank((Enums.ChiPowerType)Mode) < 50)
                                                        
pClient.LoadItemStats();
                                                }
                                            }
                                            
#endregion
                                            
Database.ChiTable.Save(client);
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 


قديم 2019-07-05, 01:07 AM
المشاركة 8
Users
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: ازاي ادي اي حد باند مؤقت هنااا لو سمحتو
طبعااا مشكور حضرتك على ردك الجميل
بس كده تعبك فى الهوا عشان محدش هيوف الموضع هنا ممكن
تكتب الموضع واضح خطوه خطوه عشان بصراحه انا مفهمتش الكلام كلو على بعضو
اعمله فى قسم التطوير وانا هنسقهولك شكراا


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



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

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

المواضيع المتشابهه للموضوع: ازاي ادي اي حد باند مؤقت هنااا لو سمحتو
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
التيم الاسكل الاليت الي عندو مشاكل فيهم يخوش هنااا ElSaher تطوير سيرفرات كونكر 15 2023-06-29 09:19 PM
ازاي تخلي الوحوش تمها يظهر خوش هنااا ElSaher تطوير سيرفرات كونكر 0 2020-04-03 07:44 AM
اغلاق موقت لقسم المشكلات محمد ياسر قسم الاقتراحات والابداع 2 2020-02-26 08:32 AM
ا انا مسحت localhost من القدعة مش كان اصضي ارجعها ازاي تاني ElSaher مشكلات السيرفيرات كونكر الشخصيه 3 2019-08-25 03:21 PM
عاوز اخلي التشي والجينج اخرهم سوبر هنااا uncelsam مشكلات السيرفيرات كونكر الشخصيه 5 2019-07-05 12:56 AM


الساعة الآن 04:02 PM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.