منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   تكميل موضوع استاز حازم متجر شوب البوشي (https://code.vpscairo.com/showthread.php?t=545)

MohamedModyAdel 2019-06-26 04:38 PM

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

اهو دا الانبسي
كود PHP:

#region Charge
                    
case 300121:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Welcome to the Phoenix[Helpdesk]. Do you want to charge?");
                                        
dialog.Option("Charge"1);
                                        
dialog.Option("Not now."255);
                                        
dialog.Avatar(175);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        
dialog.Text("Welcome to the 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 Phoenix ©");
                                        
dialog.Option("Wait GM."255);
                                        
dialog.Send();
                                        
//client.Player.Teleport(1860, 55, 62);
                                        //Entity.SendReload(client);
                                        
break;
                                    }
                            }
                            break;
                        }
                    
#endregion 

لو في حاجه حصلت ياريت تكلموني علطول

محمد ياسر 2019-06-26 04:39 PM

رد: تكميل موضوع استاز حازم متجر شوب البوشي
 
تسلم ياغالي

MohamedModyAdel 2019-06-26 10:50 PM

رد: تكميل موضوع استاز حازم متجر شوب البوشي
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Hazem (المشاركة 3078)
تسلم ياغالي

حبيبي

ابو حمزه9 2019-07-10 08:58 PM

رد: تكميل موضوع استاز حازم متجر شوب البوشي
 


جميل :o


osama 2019-08-03 05:43 PM

رد: تكميل موضوع استاز حازم متجر شوب البوشي
 
شكرا يا معلم


الساعة الآن 05:44 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب