منتدي اكواد

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

Hassan Emprator 2019-07-22 09:03 PM

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

كود PHP:

#region Bound
                
case 76112371:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hello*friend.*I*can*help*you*get BoundCPS from CPS.");
                                    
dialog.Input("Insert*amount:"110);
                                    
dialog.Option("No*thank*you."255);
                                    break;
                                }
                            case 
1:
                                {
                                    
uint input;
                                    if (
uint.TryParse(npcRequest.Inputout*input))
                                    {
                                        if (
input 1000000)
                                        {
                                            
dialog.Text("You*need*to*input*more*or*atleast*1,000,000*CPs..");
                                            
dialog.Input("Insert*amount:"19);
                                            
dialog.Option("No*thank*you."255);
                                            return;
                                        }
                                        if (
client.Entity.ConquerPoints >= input)
                                        {
                                            
client.NpcCpsInput input;
                                            
dialog.Text("Are*you*sure*you*want*to*Change*" input "*CPs?*That*means*I*will*Give*you*" + (((ulong)input) / 5000) + "*BoundCps.");
                                            
dialog.Option("Yes"2);
                                            
dialog.Option("No*thank*you."255);
                                        }
                                        else
                                        {
                                            
dialog.Text("You*don't*have*that*much*CPs.*Try*again.");
                                            
dialog.Input("Insert*amount:"19);
                                            
dialog.Option("No*thank*you."255);
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Try*again.");
                                        
dialog.Input("Insert*amount:"19);
                                        
dialog.Option("No*thank*you."255);
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.Entity.ConquerPoints >= client.NpcCpsInput && client.NpcCpsInput != 0)
                                    {
                                        
client.Entity.ConquerPoints -= client.NpcCpsInput;
                                        
client.Entity.BoundCps += client.NpcCpsInput 5000;
                                        
client.NpcCpsInput 0;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

بالتوفيق;)

محمد ياسر 2019-07-22 09:39 PM

رد: انبي سي تبديل السبس بي سبس بوند
 
الله ينور

Rider 2019-07-22 11:19 PM

رد: انبي سي تبديل السبس بي سبس بوند
 
عاش بس متحطش الان بي سي في البوكر خليه في التون


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

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