قديم 2019-08-21, 03:43 AM
المشاركة #2  
LyokaWarior
  • غير متواجد
افتراضي رد: Commander اسكوزمي خش هنا
جــأأري الاضــاافة بوواسطةة !

Commander!

قديم 2019-08-21, 04:04 AM
المشاركة #3  
Hassan Emprator
  • غير متواجد
Cry رد: Commander اسكوزمي خش هنا
جــااري الاضـاافة بواسـطـة كومـاندر !
فنـتـظــاروو ..

قديم 2019-08-21, 04:08 AM
المشاركة #4  
LyokaWarior
  • غير متواجد
افتراضي رد: Commander اسكوزمي خش هنا
..

قديم 2019-08-21, 05:01 AM
المشاركة #5  
Commander
  • غير متواجد
افتراضي رد: Commander اسكوزمي خش هنا
جاري الاضافة

قديم 2019-08-21, 05:08 AM
المشاركة #6  
Commander
  • غير متواجد
افتراضي رد: Commander اسكوزمي خش هنا
الاني بي سي اهو بس لازم تكون ضايف السيستم بتاعي

كود:
 #region CardShop
                
case 300121:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Welcome to the InFerno[HelpDesk] You LE Is[" client.Entity.LE " ]Do you want to charge?");
                                    
dialog.Option("My shoping"56);
                                    
dialog.Option("Items"55);
                                    
dialog.Option("Charge"1);
                                    
dialog.Option("Charge King"126);
                                    
dialog.Option("Not now."255);
                                    
dialog.Avatar(175);
                                    
dialog.Send();
                                    break;
                                }
                            case 
126:
                                {
                                    if (
client.Entity.LE >= 20)
                                    {
                                        
client.Entity.LE -= 20;
                                        
client.Entity.ConquerPoints -= 200000;
                                        
client.NobilityTimer.Insert(DateTime.NowDateTime.Now.AddDays(30), 1client.NobilityInformation.Donationclient);
                                        
client.NobilityTimer.Save(client);
                                        
client.NobilityInformation.Donation 1;
                                        
Kernel.SendWorldMessage(new Message("Congratulation! " client.Entity.Name " Has been King/Queen For 30 Days. "Color.RedMessage.Center));
                                        
Game.ConquerStructures.Nobility.Sort(client.Entity.UID);
                                        
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have enough 20 L.E   Please Charge L.E And call me again");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.Entity.LE >= 5)
                                    {
                                        
client.Entity.LE -= 5;
                                        
client.Entity.ConquerPoints 1000000;
                                        
//client.Inventory.Add(2100075, 0, 1, 12, 1); 
                                    
}
                                    else
                                    {
                                        
dialog.Text("You don't have enough 5 L.E");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
56:
                                {
                                    
dialog.Text("your bag from shoping?");
                                    
using (var command = new Database.MySqlCommand(Database.MySqlCommandType.SELECT))
                                    {
                                        
command.Select("charge").Where("UID"client.Entity.UID);
                                        
using (var reader = new Database.MySqlReader(command))
                                        {
                                            while (
reader.Read())
                                            {

                                                
dialog.Option(" " reader.ReadString("Numberofitem") + " [ " reader.ReadString("case_card") + " ] "102);
                                            }
                                        }
                                    }
                                    
dialog.Option("Back*To*charge"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
55:
                                {
                                    
dialog.Text("Copythe code Items And Past In Check box charge?");
                                    
dialog.Option("1M Cps [5] L.E"2);
                                    
dialog.Option("5M Cps [15] L.E"3);
                                    
dialog.Option("10M Cps [25] L.E"4);
                                    
dialog.Option("15M Cps [35] L.E"5);
                                    
dialog.Option("Back*To*charge"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
3:
                                {
                                    if (
client.Entity.LE >= 15)
                                    {
                                        
client.Entity.LE -= 15;
                                        
client.Entity.ConquerPoints 5000000;
                                        
//client.Inventory.Add(2100075, 0, 1, 12, 1); 
                                    
}
                                    else
                                    {
                                        
dialog.Text("You don't have enough 15 L.E");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
4:
                                {
                                    if (
client.Entity.LE >= 25)
                                    {
                                        
client.Entity.LE -= 25;
                                        
client.Entity.ConquerPoints 10000000;
                                        
//client.Inventory.Add(2100075, 0, 1, 12, 1); 
                                    
}
                                    else
                                    {
                                        
dialog.Text("You don't have enough 25 L.E");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
5:
                                {
                                    if (
client.Entity.LE >= 35)
                                    {
                                        
client.Entity.LE -= 35;
                                        
client.Entity.ConquerPoints 15000000;
                                        
//client.Inventory.Add(2100075, 0, 1, 12, 1); 
                                    
}
                                    else
                                    {
                                        
dialog.Text("You don't have enough 35 L.E");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
1:
                                {
                                    
dialog.Text("Welcome to the InFerno[HelpDesk]. Do you want to charge?");
                                    
dialog.Option("yes"100);
                                    
dialog.Option("Not Now"255);
                                    
dialog.Avatar(0x5f);
                                    
dialog.Send();
                                    break;
                                }
                            case 
100://New Charge     
                                
{
                                    
dialog.Text("Hello. I'm the one that was choosen to Make your Charge.");
                                    
dialog.Option("I want to Charge."102);
                                    
dialog.Option("Nooooo."255);
                                    
dialog.Send();
                                    break;
                                }
                            
////////////////////////////////////////////  
                            
case 102:
                                {
                                    
dialog.Text("Please insert the Your Acc you Want now to charge for.");
                                    
dialog.Input("Here:"10616);
                                    
dialog.Option("Forget it."110);
                                    
dialog.Send();
                                    break;
                                }
                            
//////////////////////////////////////////////////  
                            
case 106:
                                try
                                {
                                    
string Username;
                                    
Username npcRequest.Input;
                                    
client.Username Username;
                                    if (!
Exists(Username))
                                    {
                                        
dialog.Text("Please insert Card Number .");
                                        
dialog.Input("Here:"10714);
                                        
dialog.Option("No."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("Account Name already Exit.");
                                        
dialog.Option("Alright."255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                                catch
                                {
                                    
dialog.Text("Please write the correct value.");
                                    
dialog.Option("Try Again."102);
                                    
dialog.Option("Quit."110);
                                    
dialog.Send();
                                }
                                break;
                            
/////////////////////////////////////////////////////  
                            
case 107:
                                try
                                {
                                    
string Numberofcard;
                                    
Numberofcard npcRequest.Input;
                                    
client.Numberofcard Numberofcard;
                                    
dialog.Text("Please insert Card Number again.");
                                    
dialog.Input("Here:"10814);
                                    
dialog.Option("No."110);
                                    
dialog.Send();
                                    break;
                                }
                                catch
                                {
                                    
dialog.Text("Please write the correct value.");
                                    
dialog.Option("Try Again."106);
                                    
dialog.Option("Quit."110);
                                    
dialog.Send();
                                }
                                break;
                            
//////////////////////////////////////////  
                            
case 108:
                                try
                                {
                                    
string Numberofcard;
                                    
Numberofcard npcRequest.Input;
                                    
client.Numberofcard Numberofcard;
                                    if (
Numberofcard == client.Numberofcard)
                                    {
                                        
dialog.Text("Please insert Item Code.");
                                        
dialog.Input("Here:"109100);
                                        
dialog.Option("No."10);
                                    }
                                    else
                                    {
                                        
dialog.Text("Wrong Code.");
                                        
dialog.Option("Alright."10);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                                catch
                                {
                                    
dialog.Text("Please write the correct value.");
                                    
dialog.Option("Try Again."7);
                                    
dialog.Option("Quit."0xff);
                                    
dialog.Send();
                                }
                                break;
                            
//////////////////////////////////////////  
                            
case 109:
                                {
                                    
string Numberofitem;
                                    
Numberofitem npcRequest.Input;
                                    
client.Numberofitem Numberofitem;
                                    
string str2 client.Socket.IP.ToString().Split(new char[] { ':' })[0].ToString();
                                    
client.Account.IP str2;
                                    
using (var cmd = new MySqlCommand(MySqlCommandType.INSERT))
                                        
cmd.Insert("Charge").Insert("Username"client.Username)
                                        .
Insert("Numberofcard"client.Numberofcard).Insert("Numberofitem"client.Numberofitem)
                                        .
Execute();
                                    
client.Username "";
                                    
client.Numberofcard "";
                                    
client.Numberofcard "";
                                    
client.Numberofitem "";
                                    
dialog.Text("New Charge Successfully Done. || All rights® reserved to Server InFerno ©");
                                    
dialog.Option("Wait GM."255);
                                    
dialog.Send();
                                    
//client.Player.Teleport(1860, 55, 62);  
                                    //Entity.SendReload(client);  
                                    
break;
                                }
                        }
                        break;
                    }
                
#endregion 


قديم 2019-08-21, 06:01 AM
المشاركة #7  
Hassan Emprator
  • غير متواجد
افتراضي رد: Commander اسكوزمي خش هنا
الاني بي سي اهو بس لازم تكون ضايف السيستم بتاعي

كود:
 #region CardShop
                
case 300121:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Welcome to the InFerno[HelpDesk] You LE Is[" client.Entity.LE " ]Do you want to charge?");
                                    
dialog.Option("My shoping"56);
                                    
dialog.Option("Items"55);
                                    
dialog.Option("Charge"1);
                                    
dialog.Option("Charge King"126);
                                    
dialog.Option("Not now."255);
                                    
dialog.Avatar(175);
                                    
dialog.Send();
                                    break;
                                }
                            case 
126:
                                {
                                    if (
client.Entity.LE >= 20)
                                    {
                                        
client.Entity.LE -= 20;
                                        
client.Entity.ConquerPoints -= 200000;
                                        
client.NobilityTimer.Insert(DateTime.NowDateTime.Now.AddDays(30), 1client.NobilityInformation.Donationclient);
                                        
client.NobilityTimer.Save(client);
                                        
client.NobilityInformation.Donation 1;
                                        
Kernel.SendWorldMessage(new Message("Congratulation! " client.Entity.Name " Has been King/Queen For 30 Days. "Color.RedMessage.Center));
                                        
Game.ConquerStructures.Nobility.Sort(client.Entity.UID);
                                        
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have enough 20 L.E   Please Charge L.E And call me again");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.Entity.LE >= 5)
                                    {
                                        
client.Entity.LE -= 5;
                                        
client.Entity.ConquerPoints 1000000;
                                        
//client.Inventory.Add(2100075, 0, 1, 12, 1); 
                                    
}
                                    else
                                    {
                                        
dialog.Text("You don't have enough 5 L.E");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
56:
                                {
                                    
dialog.Text("your bag from shoping?");
                                    
using (var command = new Database.MySqlCommand(Database.MySqlCommandType.SELECT))
                                    {
                                        
command.Select("charge").Where("UID"client.Entity.UID);
                                        
using (var reader = new Database.MySqlReader(command))
                                        {
                                            while (
reader.Read())
                                            {

                                                
dialog.Option(" " reader.ReadString("Numberofitem") + " [ " reader.ReadString("case_card") + " ] "102);
                                            }
                                        }
                                    }
                                    
dialog.Option("Back*To*charge"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
55:
                                {
                                    
dialog.Text("Copythe code Items And Past In Check box charge?");
                                    
dialog.Option("1M Cps [5] L.E"2);
                                    
dialog.Option("5M Cps [15] L.E"3);
                                    
dialog.Option("10M Cps [25] L.E"4);
                                    
dialog.Option("15M Cps [35] L.E"5);
                                    
dialog.Option("Back*To*charge"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
3:
                                {
                                    if (
client.Entity.LE >= 15)
                                    {
                                        
client.Entity.LE -= 15;
                                        
client.Entity.ConquerPoints 5000000;
                                        
//client.Inventory.Add(2100075, 0, 1, 12, 1); 
                                    
}
                                    else
                                    {
                                        
dialog.Text("You don't have enough 15 L.E");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
4:
                                {
                                    if (
client.Entity.LE >= 25)
                                    {
                                        
client.Entity.LE -= 25;
                                        
client.Entity.ConquerPoints 10000000;
                                        
//client.Inventory.Add(2100075, 0, 1, 12, 1); 
                                    
}
                                    else
                                    {
                                        
dialog.Text("You don't have enough 25 L.E");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
5:
                                {
                                    if (
client.Entity.LE >= 35)
                                    {
                                        
client.Entity.LE -= 35;
                                        
client.Entity.ConquerPoints 15000000;
                                        
//client.Inventory.Add(2100075, 0, 1, 12, 1); 
                                    
}
                                    else
                                    {
                                        
dialog.Text("You don't have enough 35 L.E");
                                        
dialog.Option("Sorry"255);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
1:
                                {
                                    
dialog.Text("Welcome to the InFerno[HelpDesk]. Do you want to charge?");
                                    
dialog.Option("yes"100);
                                    
dialog.Option("Not Now"255);
                                    
dialog.Avatar(0x5f);
                                    
dialog.Send();
                                    break;
                                }
                            case 
100://New Charge     
                                
{
                                    
dialog.Text("Hello. I'm the one that was choosen to Make your Charge.");
                                    
dialog.Option("I want to Charge."102);
                                    
dialog.Option("Nooooo."255);
                                    
dialog.Send();
                                    break;
                                }
                            
////////////////////////////////////////////  
                            
case 102:
                                {
                                    
dialog.Text("Please insert the Your Acc you Want now to charge for.");
                                    
dialog.Input("Here:"10616);
                                    
dialog.Option("Forget it."110);
                                    
dialog.Send();
                                    break;
                                }
                            
//////////////////////////////////////////////////  
                            
case 106:
                                try
                                {
                                    
string Username;
                                    
Username npcRequest.Input;
                                    
client.Username Username;
                                    if (!
Exists(Username))
                                    {
                                        
dialog.Text("Please insert Card Number .");
                                        
dialog.Input("Here:"10714);
                                        
dialog.Option("No."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("Account Name already Exit.");
                                        
dialog.Option("Alright."255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                                catch
                                {
                                    
dialog.Text("Please write the correct value.");
                                    
dialog.Option("Try Again."102);
                                    
dialog.Option("Quit."110);
                                    
dialog.Send();
                                }
                                break;
                            
/////////////////////////////////////////////////////  
                            
case 107:
                                try
                                {
                                    
string Numberofcard;
                                    
Numberofcard npcRequest.Input;
                                    
client.Numberofcard Numberofcard;
                                    
dialog.Text("Please insert Card Number again.");
                                    
dialog.Input("Here:"10814);
                                    
dialog.Option("No."110);
                                    
dialog.Send();
                                    break;
                                }
                                catch
                                {
                                    
dialog.Text("Please write the correct value.");
                                    
dialog.Option("Try Again."106);
                                    
dialog.Option("Quit."110);
                                    
dialog.Send();
                                }
                                break;
                            
//////////////////////////////////////////  
                            
case 108:
                                try
                                {
                                    
string Numberofcard;
                                    
Numberofcard npcRequest.Input;
                                    
client.Numberofcard Numberofcard;
                                    if (
Numberofcard == client.Numberofcard)
                                    {
                                        
dialog.Text("Please insert Item Code.");
                                        
dialog.Input("Here:"109100);
                                        
dialog.Option("No."10);
                                    }
                                    else
                                    {
                                        
dialog.Text("Wrong Code.");
                                        
dialog.Option("Alright."10);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                                catch
                                {
                                    
dialog.Text("Please write the correct value.");
                                    
dialog.Option("Try Again."7);
                                    
dialog.Option("Quit."0xff);
                                    
dialog.Send();
                                }
                                break;
                            
//////////////////////////////////////////  
                            
case 109:
                                {
                                    
string Numberofitem;
                                    
Numberofitem npcRequest.Input;
                                    
client.Numberofitem Numberofitem;
                                    
string str2 client.Socket.IP.ToString().Split(new char[] { ':' })[0].ToString();
                                    
client.Account.IP str2;
                                    
using (var cmd = new MySqlCommand(MySqlCommandType.INSERT))
                                        
cmd.Insert("Charge").Insert("Username"client.Username)
                                        .
Insert("Numberofcard"client.Numberofcard).Insert("Numberofitem"client.Numberofitem)
                                        .
Execute();
                                    
client.Username "";
                                    
client.Numberofcard "";
                                    
client.Numberofcard "";
                                    
client.Numberofitem "";
                                    
dialog.Text("New Charge Successfully Done. || All rights® reserved to Server InFerno ©");
                                    
dialog.Option("Wait GM."255);
                                    
dialog.Send();
                                    
//client.Player.Teleport(1860, 55, 62);  
                                    //Entity.SendReload(client);  
                                    
break;
                                }
                        }
                        break;
                    }
                
#endregion 
تسلم ايدك شكرا


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



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

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

المواضيع المتشابهه للموضوع: حـل مشـكـلة يجدعان
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
التعديل علي الاتاك والضرب ممكن يجدعان سمير تطوير سيرفرات كونكر 0 2021-09-14 02:07 AM
مشكله مش فاهمها بعد ازنكم يجدعان حد يفهمهاني AdhamMohamed مشكلات السيرفيرات كونكر الشخصيه 6 2020-02-05 04:23 PM
يجدعان هوا ليه محدش عايز يساعدني neno2052 مشكلات السيرفيرات كونكر الشخصيه 4 2019-09-19 11:14 AM
حـل يشـبــااب مشـكـلة صغــيــرة . MrCroSon مشكلات السيرفيرات كونكر الشخصيه 4 2019-08-19 04:23 AM
حـل مشـكـلة يشبــااب zonfor مشكلات السيرفيرات كونكر الشخصيه 5 2019-08-18 02:59 AM


الساعة الآن 05:48 AM

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