| 
                     | 
                
            
        
 المشاركات 1,940  | 
         +التقييم 0.81  | 
 
تاريخ التسجيل Apr 2019  | 
  
  
الاقامة https://www.facebook.com/daany  |      
         
           
        نظام التشغيل  | 
         
        رقم العضوية 1  | 
    
		
	 
#region Bank cps
                    case 12317:
                        {
                            switch (npcRequest.OptionID)
                            {
                                case 0:
                                    {
                                      
                                        dialog.Text("Hello friend. I can help you get on the top faster you need save cps here you give" + client.Entity.CpsBank + " Cps here .");
                                        dialog.Option("you need add cps.", 1);
                                        dialog.Option("you need withdraw cps:", 4);
                                        dialog.Option("No thank you.", 255);
                                       break;
                                    }
                                #region addcps
                                case 1:
                                    {
                                        dialog.Input("you need add cps:", 3, 10);
                                        break;
                                    }
                                case 2:
                                    {
                                        if (client.Entity.ConquerPoints >= client.NpcCpsInput && client.NpcCpsInput != 0)
                                        {
                                            client.Entity.CpsBank += client.NpcCpsInput;
                                            client.Entity.ConquerPoints -= client.NpcCpsInput;
                                            client.NpcCpsInput = 0;
                                        }
                                        break;
                                    }
                                case 3:
                                    {
                                        uint input;
                                        if (uint.TryParse(npcRequest.Input, out input))
                                        {
                                            if (input < 0 && input > 2000000000)
                                            {
                                                dialog.Text("Hello friend.you shore need add cps you give" + client.Entity.CpsBank + " Cps here .");
                                                dialog.Text("you shore need add cps..");
                                                dialog.Input("I need It :", 1, 9);
                                                dialog.Option("No thank you.", 255);
                                                return;
                                            }
                                            if (client.Entity.ConquerPoints >= input)
                                            {
                                                client.NpcCpsInput = input;
                                                dialog.Text("Are you sure you want to Save " + input + " CPs? .");
                                                dialog.Option("Yes", 2);
                                                dialog.Option("No thank you.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("You Must save 1:2000000000 cps.");
                                            dialog.Input("Insert amount:", 1, 9);
                                            dialog.Option("No thank you.", 255);
                                        }
                                        break;
                                    }
                                    #endregion
                                #region withdraw cps
                                case 4:
                                    {
                                        dialog.Input("you need withdraw cps:", 5, 10);
                                        break;
                                    }
                                case 6:
                                    {
                                        if (client.Entity.CpsBank >= client.NpcCpsInput && client.NpcCpsInput != 0)
                                        {
                                            client.Entity.CpsBank -= client.NpcCpsInput;
                                            client.Entity.ConquerPoints += client.NpcCpsInput;
                                            client.NpcCpsInput = 0;
                                        }
                                        break;
                                    }
                                case 5:
                                    {
                                        uint input;
                                        if (uint.TryParse(npcRequest.Input, out input))
                                        {
                                            if (input < 0 && input > 2000000000)
                                            {
                                                dialog.Text("Hello friend.you shore need withdraw cps you give" + client.Entity.CpsBank + " Cps here .");
                                                dialog.Text("you shore need add cps..");
                                                dialog.Input("I need It :", 1, 9);
                                                dialog.Option("No thank you.", 255);
                                                return;
                                            }
                                            if (client.Entity.CpsBank >= input)
                                            {
                                                client.NpcCpsInput = input;
                                                dialog.Text("Are you sure you want to withdraw " + input + " CPs? .");
                                                dialog.Option("Yes", 6);
                                                dialog.Option("No thank you.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("You Must in cps cps.");
                                            dialog.Input("Insert amount:", 4, 9);
                                            dialog.Option("No thank you.", 255);
                                        }
                                        break;
                                    }
                                #endregion
                                    }
                            }
                            break;
                    #endregion 
   
	
		
		
		
		
	 
long _CpsBank;
        public long CpsBank
        {
            get
            {
                return _CpsBank;
            }
            set
            {
                value = Math.Max(0, value);
                _CpsBank = value;
                Database.EntityTable.UpdateCpsbank(this.Owner);
 
            }
        } 
   
	
		
		
		
		
	 
    client.Entity.Name 
   
	
		
		
		
		
	 
    client.Entity.CpsBank = reader.ReadInt64("CpsBank"); 
   
	
		
		
		
		
	 
    public static void UpdateMoney 
   
	
		
		
		
		
	 
public static void UpdateCpsbank(Client.GameClient client)
        {
            UpdateData(client, "CpsBank", client.Entity.CpsBank);
        } 
   
	
		
		
		
		
	 
.Set("Body", 
   
	
		
		
		
		
	 
    .Set("CpsBank", client.Entity.CpsBank) 
   
	
		
		
		| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
| أدوات الموضوع | |
                
  | 
        
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة | 
| ان بى سى الشى فى مره واحده | Users | تطوير سيرفرات كونكر | 2 | 2020-03-08 06:24 PM | 
| npc تحويل السي بي لجولد والعكس | محمد ياسر | تطوير سورسات 5095 | 2 | 2019-11-26 05:33 PM | 
| ثغرة في ارينا السي بي اس هتجنني | انت عمري | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-10-01 11:47 PM | 
| مشكله في السي شرب صوره من المشكله | Amr Khalid | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2019-09-19 11:32 PM | 
| حل ايرور فى السي شارب | ابو مروان | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-09-18 03:28 AM |