كونكر عرب

كونكر عرب (https://conquer-arab.com/index.php)
-   تطوير سيرفرات كونكر (https://conquer-arab.com/forumdisplay.php?f=11)
-   -   اضافة اولاين بوينت (https://conquer-arab.com/showthread.php?t=4505)

shkaoa 2020-04-21 12:00 PM

اضافة اولاين بوينت
 
اول حجة هتفتح كلاس

nps.cs

كود

كود PHP:

//BY-Mr.Abdallah
                #region Online Points Changer
                
case 12313:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hello " + client.Entity.Name + " I am changing OnlinePoints. Your OnlinePoints : " + client.Entity.OnlinePoints + " ");
                                    
dialog.Option("VIP 7 [25.000]#35", 12);
                                    
dialog.Option("Gold Prize -1[Prem] (100,000)#35 OnlinePoints.", 11);
                                    
dialog.Option("150 OP To 100,000,000 CPs#35", 14);
                                    
dialog.Option("Just passing by.", 255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
14:
                                {
                                    if (
client.Entity.OnlinePoints >= 150)
                                    {
                                        
client.Entity.OnlinePoints -= 150;
                                        
client.Entity.ConquerPoints += 100000000;
                                    }
                                    else
                                    {
                                        
dialog.Text("Please take 150 OnlinePoints.");
                                        
dialog.Option("I see.", 255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
11:
                                {
                                    
dialog.Option("GoldPrize -1 (20,000) Online Points ", 7);
                                    
dialog.Option("Just passing by.", 255);
                                    
dialog.Avatar(116);
                                    
dialog.Send();
                                    break;
                                }
                            case 
12:
                                {
                                    
dialog.Option("( VIP 7 ) 25000 Online Points.", 2);
                                    
dialog.Option("Just passing by.", 255);
                                    
dialog.Avatar(116);
                                    
dialog.Send();
                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.Entity.VIPLevel == 7)
                                    {
                                        if (
client.Entity.OnlinePoints >= 25000)
                                        {
                                            
client.Entity.OnlinePoints -= 25000;
                                            
client.Entity.VIPLevel = 7;
                                        }
                                        else
                                        {
                                            
dialog.Text("Please take 25000 OnlinePoints.");
                                            
dialog.Option("I see.", 255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Sorry Can't upgrade any more.");
                                        
dialog.Option("I see.", 255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
7:
                                {
                                    if (
client.Entity.OnlinePoints >= 20000)
                                    {
                                        
client.Entity.OnlinePoints -= 20000;
                                        
client.Inventory.Add(2100075, 0, 1);
                                    }
                                    else
                                    {
                                        
dialog.Text("you don't have 20,000 Online Points!");
                                        
dialog.Option("i'll see.", 255);
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

طبعا هدخل عل نفي كات

هتبحق عل nps

هتكب الرقم

12313

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

كلمة شكرا تكفي :harhar1:

Hazem 2020-04-22 09:06 AM

رد: اضافة اولاين بوينت
 
للاسف الاضافه مش كامله وفي ناس كتير منزله الموضوع
يغلق


الساعة الآن 02:38 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب
new notificatio by 9adq_ala7sas