عرض مشاركة واحدة
احصائياتى

الردود
2

المشاهدات
1392
 
Hassan Emprator

Hassan Emprator is on a distinguished road

    غير متواجد

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

+التقييم
0.64

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

الاقامة

نظام التشغيل

رقم العضوية
30
2019-07-22, 09:03 PM
المشاركة 1 
#1  
افتراضي انبي سي تبديل السبس بي سبس بوند
دا انبي سي تبديل بسبس بي بوند سبس دا لو انت عامل سرفرك البوند سبس ليه لازمه الانبي سي اهو


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

بالتوفيق