منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   npc clear bag (https://code.vpscairo.com/showthread.php?t=23)

محمد ياسر 2019-04-18 10:48 AM

npc clear bag
 

انبي سي تفريغ الحقيبه

لناس الي مش موجوده عنده



كود PHP:

#region Clear
                
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(inventory0);

                                            foreach (
ConquerItem item in inventory)
                                            {
                                                
client.Inventory.Remove(itemServerProject.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 


MohamedModyAdel 2019-06-25 10:49 PM

رد: npc clear bag
 
جميل


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

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