الموضوع: npc clear bag
عرض مشاركة واحدة
احصائياتى

الردود
1

المشاهدات
1662
 
محمد ياسر

محمد ياسر is on a distinguished road

    غير متواجد

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

+التقييم
0.88

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

الاقامة
https://www.facebook.com/daany

نظام التشغيل

رقم العضوية
1
2019-04-18, 10:48 AM
المشاركة 1 
#1  
افتراضي npc clear bag

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

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




كود:
#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