الموضوع: انبي سي
عرض مشاركة واحدة
قديم 2020-01-24, 10:08 PM
المشاركة #3  
mohamedomar
  • غير متواجد
افتراضي رد: انبي سي
اىفضل اهو


كود:
#region nobility
                
case 7611237:
                    {
                        switch (
npcrequest.optionid)
                        {
                            case 
0:
                                {
                                    
dialog.text("hello friend. I can help you get on the top faster! Instead of donating gold, you can give me your cps and i will automatically do the hard work for you. The exchange ratio is 1:1. That means you give me 1 cps, i donate for you 50000 gold. The minimum amount is 1,000,000 cps.");
                                    
dialog.input("insert amount:"110);
                                    
dialog.option("no thank you."255);
                                    
dialog.avatar(48);
                                    break;
                                }
                            case 
1:
                                {
                                    
uint input;
                                    if (
uint.tryparse(npcrequest.inputout input))
                                    {
                                        if (
input 1000)
                                        {
                                            
dialog.text("you need to input more or atleast 6,000,000 cps..");
                                            
dialog.input("insert amount:"19);
                                            
dialog.option("no thank you."255);
                                            
dialog.avatar(48);
                                            return;
                                        }
                                        if (
client.entity.conquerpoints >= input)
                                        {
                                            
client.npccpsinput input;
                                            
dialog.text("are you sure you want to donate " input " cps? That means i will donate for you " + (((ulong)input) * 1ul) + " gold.");
                                            
dialog.option("yes"2);
                                            
dialog.option("no thank you."255);
                                            
dialog.avatar(48);
                                        }
                                        else
                                        {
                                            
dialog.text("you don't have that much cps. Try again. \nthe exchange ratio is 1:1. That means you give me 1 cps, i donate for you 1 gold. The minimum amount is 1,000,000 cps.");
                                            
dialog.input("insert amount:"19);
                                            
dialog.option("no thank you."255);
                                            
dialog.avatar(48);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.text("try again. \nthe exchange ratio is 1:1. That means you give me 1 cps, i donate for you 1 gold. The minimum amount is 1,000,000 cps.");
                                        
dialog.input("insert amount:"19);
                                        
dialog.option("no thank you."255);
                                        
dialog.avatar(48);
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.entity.conquerpoints >= client.npccpsinput && client.npccpsinput != 0)
                                    {
                                        
client.entity.conquerpoints -= client.npccpsinput;
                                        
game.conquerstructures.nobility.donate((ulong)client.npccpsinputclient);
                                        
client.npccpsinput 0;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

ولو عايز تخلي انو هوا يبدا يدفع سيبي من اول رقم كذا هتعمله من هنا


كود:
if (input 1000
حيطتو لم بتبرع مش بيرفعني ولا بي يعمل حاجه لم بحط سي بي