فوكس كونكر - 🦊 - Conquer
موضوع بعنوان :ان بى سى مسح الايتمز
الكاتب :aymanrayzo


 #region Clear Itims
                case 595222: 
                    { 

                        switch (npcRequest.OptionID) 
                        { 
                            case 0: 
                                { 

                                    dialog.Text("Hello my bro . I can clear your items for 10 Cps"); 
                                    dialog.Option("Okay.Clear", 51); 
                                    dialog.Option("Just passing by.", 255); 
                                    dialog.Avatar(80); 
                                    dialog.Send(); 
                                    break; 
                                } 
                            case 51: 
                                { 
                                    dialog.Text("Are you sure ?"); 
                                    dialog.Option("Yes,Clear", 1); 
                                    dialog.Send(); 
                                    break; 
                                } 
                            case 1: 
                                { 
                                    { 
                                        if (client.Entity.ConquerPoints >= 10) 
                                        { 
                                            client.Entity.ConquerPoints -= 10; 
                                            ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length]; 
                                            client.Inventory.Objects.CopyTo(inventory, 0); 

                                            foreach (ConquerItem item in inventory) 
                                            { 
                                                client.Inventory.Remove(item, ServerProject.Game.Enums.ItemUse.Remove); 
                                            } 

                                        } 
                                        else 
                                        { 
                                            dialog.Text("Sorry you don't have 10 Cps."); 
                                            dialog.Option("I see.", 255); 
                                            dialog.Avatar(116); 
                                            dialog.Send(); 
                                        } 
                                    } 

                                    break; 
                                } 

                        } 
                        break; 
                    } 
                #endregion