احصائياتى

الردود
8

المشاهدات
750
 
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301

    غير متواجد

المشاركات
1,723

+التقييم
0.63

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

الاقامة
شرقيه/زقازيق

نظام التشغيل

رقم العضوية
30
2019-09-13, 01:42 AM
المشاركة 1
2019-09-13, 01:42 AM
المشاركة 1
Question تمت الإجابة بنك ماركت
عندي مشكله بسيطه في البنك كلنا عارفين بنك بتاع الماركت الاول كان شغال تمام وتقدر تحط فيه ايتم
لاكن دلوقتي لما بحط في ايتم مش بيتحط اصله يعني يتحط لاكن لما احطه يقوم مختفي ولما اقفله يرجعلي تاني
بس مش عارف السبب منين ممكن حل ؟:d


أفضل جواب - كتبه Rider

كود:
#region helpdeskrdb
                    
case 10075:
                    case 
99123130:
                    case 
99123129:
                    case 
99123128:
                    case 
99123127:
                    case 
99123126:
                    case 
99123125:
                    case 
99123124:
                    case 
99123123:
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                
dialog.Text("Hello <tip color=0xfff05050>" + client.Player.Name + " </tip> Welcome to the helpdesk. Is there anything you require below?");
                                
dialog.Option("Register new Acc", 1);
                              
//  dialog.Option("Vote", 2);
                                //dialog.Option("My own IP", 50);
                                
dialog.Option("Change Password", 6);
                                
dialog.Option("Thanks.", 255);
                                
dialog.Avatar(0x5f);
                                
dialog.Send();
                                break;
                            
#region ChangeMasterPassword
                            //#region Change password

                            //case 71:
                            //    {
                            //        if (client.Account.MasterPassword != "")
                            //        {
                            //            dialog.Text("Please insert the old password you have now.");
                            //            dialog.Input("Here:", 72, 14);
                            //            dialog.Option("Forget it.", 255);
                            //        }
                            //        else
                            //        {
                            //            client.Account.MasterPassword = client.Account.Password;
                            //            dialog.Text("You don't have a password set.");
                            //            dialog.Option("really !!", 255);
                            //        }
                            //        dialog.Send();
                            //        break;
                            //    }
                            //case 72:
                            //    {
                            //        if (client.Account.MasterPassword != "")
                            //        {
                            //            if (npcRequest.Input.Length <= 14)
                            //            {
                            //                if (client.Account.MasterPassword == npcRequest.Input)
                            //                {
                            //                    dialog.Text("Please insert the password again.");
                            //                    dialog.Input("Here:", 73, 14);
                            //                    dialog.Option("Forget it.", 255);
                            //                }
                            //                else
                            //                {
                            //                    dialog.Text("Wrong password. Try again?");
                            //                    dialog.Input("Here:", 72, 14);
                            //                    dialog.Option("really !!", 255);
                            //                }
                            //            }
                            //            else
                            //            {
                            //                dialog.Text("Invalid password, please try again.");
                            //                dialog.Input("Here:", 206, 14);
                            //                dialog.Option("really !!", 255);
                            //            }
                            //        }
                            //        dialog.Send();
                            //        break;
                            //    }
                            //case 73:
                            //    {
                            //        if (client.Account.MasterPassword != "")
                            //        {
                            //            if (npcRequest.Input.Length <= 14)
                            //            {
                            //                client.TempPassword = npcRequest.Input;
                            //                dialog.Text("Please insert the password again.");
                            //                dialog.Input("Here:", 74, 14);
                            //                dialog.Option("Forget it.", 255);
                            //            }
                            //            else
                            //            {
                            //                dialog.Text("Invalid password, please try again.");
                            //                dialog.Input("Here:", 73, 14);
                            //                dialog.Option("really !!", 255);
                            //            }
                            //        }
                            //        else
                            //        {
                            //            dialog.Text("You don't have a password set.");
                            //            dialog.Option("really !!", 255);
                            //        }
                            //        dialog.Send();
                            //        break;
                            //    }
                            //case 74:
                            //    {
                            //        if (client.Account.MasterPassword != "")
                            //        {
                            //            if (npcRequest.Input.Length <= 14)
                            //            {
                            //                if (client.TempPassword == npcRequest.Input)
                            //                {
                            //                    client.TempPassword = "";
                            //                    client.Account.MasterPassword = npcRequest.Input;
                            //                    client.Account.Save();
                            //                    dialog.Text("Password changed!");
                            //                    dialog.Option("Thanks !!", 255);
                            //                }
                            //                else
                            //                {
                            //                    dialog.Text("Wrong password.");
                            //                    dialog.Input("Here:", 74, 14);
                            //                    dialog.Option("really !!", 255);
                            //                }
                            //            }
                            //            else
                            //            {
                            //                dialog.Text("Invalid password, please try again.");
                            //                dialog.Input("Here:", 74, 14);
                            //                dialog.Option("really !!", 255);
                            //            }
                            //        }
                            //        else
                            //        {
                            //            dialog.Text("You don't have a password set.");
                            //            dialog.Option("really !!", 255);
                            //        }
                            //        dialog.Send();
                            //        break;
                            //    }

                            //#endregion Change password
                            #endregion
                            
case 1:
                                
dialog.Text("Welcome to the helpdesk. Is there anything you require below?");
                                
dialog.Option("Client Register", 100);
                                
//dialog.Option("Web Register", 11);
                                
dialog.Avatar(0x5f);
                                
dialog.Send();
                                break;

                            case 
6:
                                
dialog.Text("Welcome to the helpdesk. Is there anything you require below?");
                                
dialog.Option("Client Chg Pass", 200);
                                
//dialog.Option("Web Chg Pass", 66);
                                
dialog.Avatar(0x5f);
                                
dialog.Send();
                                break;
                            
#region ChangePassword
                            
case 200:
                                {
                                    
dialog.Text("Hello. I'm the one that was choosen to set/change your account  password .you can change you password for 14 letters nubmer or characters.");

                                    
dialog.Option("I want to change the password.", 202);
                                    
// dialog.Option("I want to remove the password.", 3);
                                    
dialog.Option("Forget it.", 255);
                                    
dialog.Send();
                                    break;
                                }

                            
#region Change password

                            
case 202:
                                {
                                    if (
client.Account.Password != "")
                                    {
                                        
dialog.Text("aktb el pass el adym ele byfy7 byh.");
                                        
dialog.Input("Here:", 206, 14);
                                        
dialog.Option("Forget it.", 255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have a password set.");
                                        
dialog.Option("really !!", 255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                            case 
206:
                                {
                                    if (
client.Account.Password != "")
                                    {
                                        if (
npcRequest.Input.Length >= 6 && npcRequest.Input.Length <= 14)
                                        {
                                            if (
client.Account.Password == npcRequest.Input)
                                            {
                                                
dialog.Text("Aktb el Password el gdeed.");
                                                
dialog.Input("Here:", 207, 14);
                                                
dialog.Option("Forget it.", 255);
                                            }
                                            else
                                            {
                                                
dialog.Text("Wrong password. Try again?");
                                                
dialog.Input("Here:", 206, 14);
                                                
dialog.Option("really !!", 255);
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text("Invalid password, please try again.");
                                            
dialog.Input("Here:", 206, 14);
                                            
dialog.Option("really !!", 255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have a password set.");
                                        
dialog.Option("really !!", 255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                            case 
207:
                                {
                                    if (
client.Account.Password != "")
                                    {
                                        if (
npcRequest.Input.Length <= 14)
                                        {
                                            
client.TempPassword = npcRequest.Input;
                                            
dialog.Text("Aktb el Password el gdeed tany.");
                                            
dialog.Input("Here:", 208, 14);
                                            
dialog.Option("Forget it.", 255);
                                        }
                                        else
                                        {
                                            
dialog.Text("Invalid password, please try again.");
                                            
dialog.Input("Here:", 207, 14);
                                            
dialog.Option("really !!", 255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have a password set.");
                                        
dialog.Option("really !!", 255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                            case 
208:
                                {
                                    if (
client.Account.Password != "")
                                    {
                                        if (
npcRequest.Input.Length <= 14)
                                        {
                                            if (
client.TempPassword == npcRequest.Input)
                                            {
                                                
client.TempPassword = "";
                                                
client.Account.Password = npcRequest.Input;
                                                
client.Account.Save();
                                                
dialog.Text("Password changed!");
                                                
dialog.Option("Thanks !!", 255);
                                            }
                                            else
                                            {
                                                
dialog.Text("Wrong password.");
                                                
dialog.Input("Here:", 208, 14);
                                                
dialog.Option("really !!", 255);
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text("Invalid password, please try again.");
                                            
dialog.Input("Here:", 208, 14);
                                            
dialog.Option("really !!", 255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("You don't have a password set.");
                                        
dialog.Option("really !!", 255);
                                    }
                                    
dialog.Send();
                                    break;
                                }

                            
#endregion Change password


                            #endregion ChangePassword

                            
case 11:
                                
client.Send(new Message("" + helpdesk.Register + "", client.Player.Name, System.Drawing.Color.Yellow, 0x839));
                                break;

                            
#region New Register
                            
case 100://New Register Fixed and Done by Mr_Panda :P
                                
{
                                    
dialog.Text("Hello. I'm the one that was choosen to Make your new account.");
                                    
dialog.Option("I want to Register.", 102);
                                    
dialog.Option("Nooooo.", 255);
                                    
dialog.Send();
                                    break;
                                }

                            
#region New Register

                            
case 102:
                                {
                                    
dialog.Text("Please insert the New Acc you Want now.");
                                    
dialog.Input("Here:", 106, 16);
                                    
dialog.Option("Forget it.", 110);
                                    
dialog.Send();
                                    break;
                                }
                            case 
106:
                                
uint input;
                                if (
uint.TryParse(npcRequest.Input, out*input))
                                {
                                    
string accountname;
                                    
accountname = npcRequest.Input;
                                    
client.accountname = accountname;
                                    if (!
Exists(accountname) && input < 4)
                                    {
                                        
dialog.Text("Please insert the password .");
                                        
dialog.Input("Here:", 107, 14);
                                        
dialog.Option("No.", 255);

                                    }
                                    else
                                    {
                                        
dialog.Text("invaild Account Name or Account Name already Exit.");
                                        
dialog.Option("really", 255);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                                else
                                {
                                    
dialog.Text("Please write the correct value 6 litters or more.");
                                    
dialog.Option("Try Again.", 102);
                                    
dialog.Option("Quit.", 110);
                                    
dialog.Send();
                                }
                                break;
                            case 
107:
                                if (
uint.TryParse(npcRequest.Input, out*input))
                                {
                                    
string accountpass1;
                                    
accountpass1 = npcRequest.Input;
                                    
client.accountpass1 = accountpass1;
                                    if (
input < 6) return;
                                    
dialog.Text("Please insert the password again.");
                                    
dialog.Input("Here:", 108, 14);
                                    
dialog.Option("No.", 110);
                                    
dialog.Send();
                                    break;
                                }
                                else
                                {
                                    
dialog.Text("Please write the correct value 6 litters or more.");
                                    
dialog.Option("Try Again.", 106);
                                    
dialog.Option("Quit.", 110);
                                    
dialog.Send();
                                }
                                break;
                            case 
108:
                                try
                                {
                                    
string accountpass2;

                                    
accountpass2 = npcRequest.Input;
                                    
client.accountpass2 = accountpass2;
                                    if (
accountpass2 == client.accountpass1)
                                    {
                                        
dialog.Text("Please insert the Email || @yahoo.Com will be added automatically.");
                                        
dialog.Input("Here:", 109, 100);
                                        
dialog.Option("No.", 10);

                                    }
                                    else
                                    {
                                        
dialog.Text("Wrong Pass.");
                                        
dialog.Option("really !!", 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 accountEmail;
                                
accountEmail = npcRequest.Input + "@yahoo.com";
                                
client.accountEmail = accountEmail;
                                
string str2 = client.Socket.IP.ToString().Split(new char[] { ':' })[0].ToString();
                                
client.Account.IP = str2;
                                
using (var cmd = new MySqlCommand(MySqlCommandType.INSERT))
                                    
cmd.Insert("accounts").Insert("Username", client.accountname)
                                        .
Insert("Password", client.accountpass1).Insert("State", (int)0).Insert("IP", client.Account.IP).Insert("LastIP", client.Account.IP)
                                        .
Execute();
                                
//  Conquer.Database.Account.Insert(client.accountname, client.accountpass1, client.Account.IP, client.Account.IP, (ulong)0, (byte)0, 0, client.accountEmail);
                                
client.accountname = "";
                                
client.accountpass1 = "";
                                
client.accountpass2 = "";
                                
client.accountEmail = "";
                                
dialog.Text("New Account Successfully Done. || All rights® reserved to Ahmed ©");
                                
dialog.Option("Ty 4 ur time.", 255);
                                
dialog.Send();
                                break;
                            case 
110:
                                
client.accountname = "";
                                
client.accountpass1 = "";
                                
client.accountpass2 = "";
                                
client.accountEmail = "";
                                
dialog.Text("Failed !!. Good Luck Next Time.");
                                
dialog.Option("Ty 4 ur time.", 255);
                                
dialog.Send();
                                break;

                            
#endregion New Register



                            #endregion ChangePassword
                            
case 2:
                                
client.Send(new Message("" + helpdesk.Vote + "", client.Player.Name, System.Drawing.Color.Yellow, 0x839));
                                break;

                            case 
3:
                                
client.Send(new Message("" + helpdesk.ChatBox + "", client.Player.Name, System.Drawing.Color.Yellow, 0x839));
                                break;

                            case 
4:
                                
client.Send(new Message("" + helpdesk.Purchase + "", client.Player.Name, System.Drawing.Color.Yellow, 0x839));
                                break;

                            case 
5:
                                
client.Send(new Message("" + helpdesk.Facebook + "", client.Player.Name, System.Drawing.Color.Yellow, 0x839));
                                break;

                            case 
66:
                                
client.Send(new Message("" + helpdesk.ChangePass + "", client.Player.Name, System.Drawing.Color.Yellow, 0x839));
                                break;
                        }
                        break;

                    
#endregion 

قديم 2019-09-13, 01:39 PM
المشاركة 2
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301
  • غير متواجد
افتراضي رد: بنك ماركت
ها ؟

قديم 2019-09-13, 03:01 PM
المشاركة 3
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
Distinctive رد: بنك ماركت
بوص يا حسن المسكلة دي من كلاس Npcغير الnpcبتاع الراجل من السورس الي انا نشرو اانها كانت عندي بردو السورس اخر واحد

قديم 2019-09-13, 03:09 PM
المشاركة 4
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301
  • غير متواجد
افتراضي رد: بنك ماركت
بوص يا حسن المسكلة دي من كلاس npcغير الnpcبتاع الراجل من السورس الي انا نشرو اانها كانت عندي بردو السورس اخر واحد

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

قديم 2019-09-14, 04:22 AM
المشاركة 5
Avalanche
.:: عضو جديد::.
الإجابات المقدمة: 2
  • غير متواجد
Arrow رد: بنك ماركت
شـووف ال Case ويــ Booth فــ بــااكـت هـاندل!!

قديم 2019-09-14, 10:06 PM
المشاركة 6
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301
  • غير متواجد
افتراضي رد: بنك ماركت
حد معاه حل ؟

قديم 2019-09-15, 09:42 PM
المشاركة 7
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301
  • غير متواجد
افتراضي رد: بنك ماركت
ها ؟

قديم 2019-09-15, 10:07 PM
المشاركة 8
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: بنك ماركت
try another account first
-------------------------------
GameState

كود:
 public void ReadyToPlay() 


كود:
if (Account != null) 

xxxxxxxxx

كود:
 Warehouses.Add(KhaledMohamed.Game.ConquerStructures.Warehouse.WarehouseID.Market, new Game.ConquerStructures.Warehouse(this, KhaledMohamed.Game.ConquerStructures.Warehouse.WarehouseID.Market)); 

npc.cs

كود:
[PHP] case 8:
                case 
10012:
                case 
10028:
                case 
10011:
                case 
10027:
                case 
4101:
                case 
44: 

[/PHP]
xxxxxxxxxxxxxxx
case44: market npc id

packethandler.cs

كود:
case Warehouse.AddItem: 


كود:
 case Warehouse.AddItem:
                                {
                                    if (
client.Booth != null)
                                        return;
                                  
                                    
Game.ConquerStructures.Warehouse wh = client.Warehouses[(KhaledMohamed.Game.ConquerStructures.Warehouse.WarehouseID)warehousepacket.NpcID];
                                    if (
wh == null) return;
                                    
ConquerItem item = null;
                                    if (
client.Inventory.TryGetItem(warehousepacket.UID, out item))
                                    {
                                        if (
item.ID >= 729960 && item.ID <= 729970)
                                            return;
                                        if (
item.ID == 729611 || item.ID == 729612 || item.ID == 729613 || item.ID == 729614 || item.ID == 729703)
                                            return;
                                        if (!
ConquerItem.isRune(item.UID))
                                        {
                                            if (
wh.Add(item))
                                            {
                                                
warehousepacket.UID = 0;
                                                
warehousepacket.Count = 1;
                                                
warehousepacket.Append(item);
                                                
client.Send(warehousepacket);

                                                
ItemAdding add = new ItemAdding(true);
                                                if (
item.Purification.Available)
                                                    
add.Append(item.Purification);
                                                if (
item.ExtraEffect.Available)
                                                    
add.Append(item.ExtraEffect);
                                                if (
item.Purification.Available || item.ExtraEffect.Available)
                                                    
client.Send(add);

                                                return;
                                            }
                                        }
                                        else 
client.Send(new Message("You can not store Flame Stone Rune's in Warehouse", System.Drawing.Color.Red, Message.TopLeft));
                                    }
                                    break;
                                } 


قديم 2019-09-16, 09:27 AM
المشاركة 9
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301
  • غير متواجد
افتراضي رد: بنك ماركت
تسلم ايدك وربنا فنان يبني ولله تسلم تسلم


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



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

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



الساعة الآن 01:25 AM