منتدي اكواد

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

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

npc PK less
 
انبي سي لتقليل القتل الي حصل عليهم

ضيف الاكواد في

NPCS.CS

كود PHP:

#region PK less than
                
case 59527:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    if (
client.Entity.PKPoints 30)
                                    {
                                        
dialog.Text("i cant less your pk any more you are safe Now");
                                        
dialog.Option("I see."255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                        break;
                                    }
                                    
dialog.Text("Hay I am Pkpoints lesser i can less your pk from 30 or higher");
                                    
dialog.Option("- [30] PKponits 100 cps."1);
                                    
dialog.Option("- [60] PKponits 200 cps"2);
                                    
dialog.Option("- [90] PKponits 300 cps"3);
                                    
dialog.Option("- [120] PKponits 400 cps"4);
                                    
dialog.Option("- [150] PKponits 500 cps"5);
                                    
dialog.Option("- [200] PKponits 600 cps"6);
                                    
dialog.Option("- [250] PKponits 700 cps"7);
                                    
dialog.Option("Just passing by."255);
                                    
dialog.Avatar(116);
                                    
dialog.Send();
                                    break;

                                }
                            case 
1:
                                {
                                    if (
client.Entity.PKPoints >= 30)
                                    {
                                        if (
client.Entity.ConquerPoints >= 100)
                                        {
                                            
client.Entity.ConquerPoints -= 100;
                                            
client.Entity.PKPoints -= 30;
                                        }
                                        else
                                        {
                                            
dialog.Text("Please take 100 cps.");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("your pk points is low must higher than." client.Entity.PKPoints);
                                        
dialog.Option("I see."255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.Entity.PKPoints >= 60)
                                    {
                                        if (
client.Entity.ConquerPoints >= 200)
                                        {
                                            
client.Entity.ConquerPoints -= 200;
                                            
client.Entity.PKPoints -= 60;
                                        }
                                        else
                                        {
                                            
dialog.Text("Please take 200 cps.");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("your pk points is low must higher than." client.Entity.PKPoints);
                                        
dialog.Option("I see."255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
3:
                                {
                                    if (
client.Entity.PKPoints >= 90)
                                    {
                                        if (
client.Entity.ConquerPoints >= 300)
                                        {
                                            
client.Entity.ConquerPoints -= 300;
                                            
client.Entity.PKPoints -= 90;
                                        }
                                        else
                                        {
                                            
dialog.Text("Please take 300 cps.");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("your pk points is low must higher than." client.Entity.PKPoints);
                                        
dialog.Option("I see."255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 


MohamedModyAdel 2019-06-25 10:45 PM

رد: npc PK less
 
جميل


الساعة الآن 09:22 AM

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