منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   NPC Lucky Play Cps (https://code.vpscairo.com/showthread.php?t=407)

Mero 2019-06-01 06:33 AM

NPC Lucky Play Cps
 
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع


ده عبارة عن انبسي الناس بتكلمو وتلعب لكي بلسبس ال معاهة تقدر تعدل عليه بس اوعة تبوظ الدنيا تلاقي الناس كلها معاهة سبس ردم :D :eek:


ضيف الكود ده في npc.cs

كود PHP:

#region Lucky Play Cps  
                
case 54586:  //Thanks EGY4U 
                    


                        switch (
npcRequest.OptionID
                        { 
                            case 
0
                                { 

                                    
dialog.Text("Try You'r Lucky With Play Cps"); 
                                    
dialog.Option("Play Cps 10M."1); 
                                    
dialog.Option("Play Cps 5M"2); 
                                    
dialog.Option("Play Cps 1M "3); 
                                    
dialog.Option("not now."255); 
                                    
dialog.Avatar(80); 
                                    
dialog.Send(); 
                                    break; 
                                } 
                            case 
3
                                { 
                                    if (
client.Entity.ConquerPoints >= 1000000
                                    { 
                                        
client.Entity.ConquerPoints -= 1000000
                                        
Random R = new Random(); 
                                        
int Nr R.Next(17); 
                                        if (
Nr == 1client.Entity.ConquerPoints += 0
                                        if (
Nr == 1client.MessageBox("Sorry you loss your Cps "null); 
                                        if (
Nr == 1client.Entity.ConquerPoints += 1000000
                                        if (
Nr == 1client.MessageBox("You received a 1M CPs "null); 
                                        if (
Nr == 1client.Entity.ConquerPoints += 1000000
                                        if (
Nr == 1client.MessageBox("You received a 1M CPs "null); 
                                        if (
Nr == 1client.Entity.ConquerPoints += 1000000
                                        if (
Nr == 1client.MessageBox("You received a 1M CPs "null); 
                                        if (
Nr == 2client.Entity.ConquerPoints += 2000000
                                        if (
Nr == 2client.MessageBox("You received a 2M CPs"null); 
                                        if (
Nr == 3client.Entity.ConquerPoints += 0
                                        if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null); 
                                        if (
Nr == 4client.Entity.ConquerPoints += 0
                                        if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0); 
                                        if (
Nr == 5client.Entity.ConquerPoints += 2000000
                                        if (
Nr == 5client.MessageBox("You received a 2M CPs"null); 
                                        if (
Nr == 6client.Entity.ConquerPoints += 1000000
                                        if (
Nr == 6client.MessageBox("You received a 1M CPs"null); 
                                        if (
Nr == 7client.Entity.ConquerPoints += 2000000
                                        if (
Nr == 7client.MessageBox("You received a 2M CPs"null); 
                                        
DialyQuestsEffect.Check(client"Sure"); 

                                    } 
                                    else 
                                    { 

                                        
dialog.Text("You do not have 1M Cps."); 
                                        
dialog.Option("I see."255); 
                                        
dialog.Avatar(116); 
                                        
dialog.Send(); 

                                    } 

                                    break; 
                                } 
                            case 
1
                                { 
                                    if (
client.Entity.ConquerPoints >= 10000000
                                    { 
                                        
client.Entity.ConquerPoints -= 10000000
                                        
Random R = new Random(); 
                                        
int Nr R.Next(17); 
                                        if (
Nr == 1client.Entity.ConquerPoints += 10000000
                                        if (
Nr == 1client.MessageBox("You received a 10M CPs "null); 
                                        if (
Nr == 2client.Entity.ConquerPoints += 20000000
                                        if (
Nr == 2client.MessageBox("You received a 20M CPs"null); 
                                        if (
Nr == 3client.Entity.ConquerPoints += 10000000
                                        if (
Nr == 3client.MessageBox("You received a 10M CPs "null); 
                                        if (
Nr == 3client.Entity.ConquerPoints += 0
                                        if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null); 
                                        if (
Nr == 3client.Entity.ConquerPoints += 0
                                        if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null); 
                                        if (
Nr == 4client.Entity.ConquerPoints += 0
                                        if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0); 
                                        if (
Nr == 5client.Entity.ConquerPoints += 15000000
                                        if (
Nr == 5client.MessageBox("You received a 15M CPs"null); 
                                        if (
Nr == 6client.Entity.ConquerPoints += 10000000
                                        if (
Nr == 6client.MessageBox("You received a 10M CPs"null); 
                                        if (
Nr == 7client.Entity.ConquerPoints += 16000000
                                        if (
Nr == 7client.MessageBox("You received a 16M CPs"null); 
                                        
DialyQuestsEffect.Check(client"Sure"); 

                                    } 
                                    else 
                                    { 

                                        
dialog.Text("You do not have 10M  Cps."); 
                                        
dialog.Option("I see."255); 
                                        
dialog.Avatar(116); 
                                        
dialog.Send(); 

                                    } 

                                    break; 
                                } 
                            case 
2
                                { 
                                    if (
client.Entity.ConquerPoints >= 5000000
                                    { 
                                        
client.Entity.ConquerPoints -= 5000000
                                        
Random R = new Random(); 
                                        
int Nr R.Next(17); 
                                        if (
Nr == 1client.Entity.ConquerPoints += 5000000
                                        if (
Nr == 1client.MessageBox("You received a 5M CPs "null); 
                                        if (
Nr == 2client.Entity.ConquerPoints += 10000000
                                        if (
Nr == 2client.MessageBox("You received a 10M CPs"null); 
                                        if (
Nr == 3client.Entity.ConquerPoints += 5000000
                                        if (
Nr == 3client.MessageBox("You received a 5M CPs "null); 
                                        if (
Nr == 3client.Entity.ConquerPoints += 0
                                        if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null); 
                                        if (
Nr == 3client.Entity.ConquerPoints += 0
                                        if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null); 
                                        if (
Nr == 3client.Entity.ConquerPoints += 0
                                        if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null); 
                                        if (
Nr == 4client.Entity.ConquerPoints += 0
                                        if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0); 
                                        if (
Nr == 4client.Entity.ConquerPoints += 0
                                        if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0); 
                                        if (
Nr == 4client.Entity.ConquerPoints += 0
                                        if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0); 
                                        if (
Nr == 5client.Entity.ConquerPoints += 0
                                        if (
Nr == 5client.MessageBox("Sorry you loss your cps"null); 
                                        if (
Nr == 5client.Entity.ConquerPoints += 10000000
                                        if (
Nr == 5client.MessageBox("You received a 10M CPs"null); 
                                        if (
Nr == 5client.Entity.ConquerPoints += 10000000
                                        if (
Nr == 5client.MessageBox("You received a 10M CPs"null); 
                                        if (
Nr == 6client.Entity.ConquerPoints += 5000000
                                        if (
Nr == 6client.MessageBox("You received a 5M CPs"null); 
                                        if (
Nr == 7client.Entity.ConquerPoints += 7000000
                                        if (
Nr == 7client.MessageBox("You received a 7m CPs"null); 
                                        
DialyQuestsEffect.Check(client"Sure"); 

                                    } 
                                    else 
                                    { 

                                        
dialog.Text("You do not have 5kk cps."); 
                                        
dialog.Option("I see."255); 
                                        
dialog.Avatar(116); 
                                        
dialog.Send(); 
                                    } 
                                    break; 
                                } 
                                break; 
                        } 
                    }      
                    
#endregion 


تمام


عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

محمد ياسر 2019-06-01 12:31 PM

رد: NPC Lucky Play Cps
 
ايه الحلاوه ده شغل عالي

Mero 2019-06-22 12:26 PM

رد: NPC Lucky Play Cps
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Hazem (المشاركة 1870)
ايه الحلاوه ده شغل عالي

حبيبي يا حازم :emoji21:

MohamedModyAdel 2019-06-25 05:41 PM

رد: NPC Lucky Play Cps
 
جميل

Ahmeed Sheeko 2019-08-01 12:46 PM

رد: NPC Lucky Play Cps
 
هو كان جايب ايرورات كتير اوى فانا غيرته كله يعنى حتى ظبطه على سيرفرى :D
كود PHP:

#region Lucky Play Cps
                
case 253612:
                {
                    switch (
npcRequest.OptionID)
                    {
                        case 
0:
                            {
                                
dialog.Text("Dear " client.Entity.Name " u want to play a small game depending on luck");
                                
dialog.Text("Just U Must Know You Have 50% To Win or Lose Deal ?");
                                
dialog.Option("Play with 1K CPS"1);
                                
dialog.Option("Play with 10K CPS"2);
                                
dialog.Option("Play with 50K CPS"3);
                                
dialog.Option("Play with 100K CPS"4);
                                
dialog.Option("I don't care."255);
                                
dialog.Send();
                                break;
                            }
                        
#region 1K CPS
                        
case 1:
                            {
                                if (
client.Entity.ConquerPoints >= 1000)
                                {
                                    
client.Entity.ConquerPoints -= 1000;
                                    
Random R = new Random();
                                    
int Nr R.Next(17);
                                    if (
Nr == 1client.Entity.ConquerPoints += 1000;
                                    if (
Nr == 1client.MessageBox("You received a 1K CPs "null);
                                    if (
Nr == 1client.Entity.ConquerPoints += 1000;
                                    if (
Nr == 1client.MessageBox("You received a 1K CPs "null);
                                    if (
Nr == 1client.Entity.ConquerPoints += 1000;
                                    if (
Nr == 1client.MessageBox("You received a 1K CPs "null);
                                    if (
Nr == 1client.Entity.ConquerPoints += 0;
                                    if (
Nr == 1client.MessageBox("Sorry you loss your Cps "null);  
                                    if (
Nr == 2client.Entity.ConquerPoints += 2000;
                                    if (
Nr == 2client.MessageBox("You received a 2K CPs"null);
                                    if (
Nr == 3client.Entity.ConquerPoints += 0;
                                    if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null);
                                    if (
Nr == 4client.Entity.ConquerPoints += 0;
                                    if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0);
                                    if (
Nr == 5client.Entity.ConquerPoints += 2000;
                                    if (
Nr == 5client.MessageBox("You received a 2K CPs"null);
                                    if (
Nr == 6client.Entity.ConquerPoints += 1000;
                                    if (
Nr == 6client.MessageBox("You received a 1K CPs"null);
                                    if (
Nr == 7client.Entity.ConquerPoints += 2000;
                                    if (
Nr == 7client.MessageBox("You received a 2K CPs"null);
                                    
DialyQuestsEffect.Check(client"Sure");

                                }
                                else
                                {

                                    
dialog.Text("You do not have 1K Cps.");
                                    
dialog.Option("I see."255);
                                    
dialog.Avatar(116);
                                    
dialog.Send();
                                }
                                break;
                            }
                        
#endregion
                        #region 10K Cps
                        
case 2:
                            {
                                if (
client.Entity.ConquerPoints >= 10000)
                                {
                                    
client.Entity.ConquerPoints -= 10000;
                                    
Random R = new Random();
                                    
int Nr R.Next(17);
                                    if (
Nr == 1client.Entity.ConquerPoints += 10000;
                                    if (
Nr == 1client.MessageBox("You received a 10K CPs "null);
                                    if (
Nr == 2client.Entity.ConquerPoints += 20000;
                                    if (
Nr == 2client.MessageBox("You received a 20K CPs"null);
                                    if (
Nr == 3client.Entity.ConquerPoints += 0;
                                    if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null);
                                    if (
Nr == 3client.Entity.ConquerPoints += 0;
                                    if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null);
                                    if (
Nr == 3client.Entity.ConquerPoints += 0;
                                    if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null);  
                                    if (
Nr == 4client.Entity.ConquerPoints += 0;
                                    if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0);
                                    if (
Nr == 5client.Entity.ConquerPoints += 15000;
                                    if (
Nr == 5client.MessageBox("You received a 15K CPs"null);
                                    if (
Nr == 6client.Entity.ConquerPoints += 10000;
                                    if (
Nr == 6client.MessageBox("You received a 10K CPs"null);
                                    if (
Nr == 7client.Entity.ConquerPoints += 16000;
                                    if (
Nr == 7client.MessageBox("You received a 16K CPs"null);
                                    
DialyQuestsEffect.Check(client"Sure");

                                }
                                else
                                {

                                    
dialog.Text("You do not have 10K Cps.");
                                    
dialog.Option("I see."255);
                                    
dialog.Avatar(116);
                                    
dialog.Send();
                                }
                                break;
                            }
                        
#endregion
                        #region 50K Cps
                        
case 3:
                            {
                                if (
client.Entity.ConquerPoints >= 50000)
                                {
                                    
client.Entity.ConquerPoints -= 50000;
                                    
Random R = new Random();
                                    
int Nr R.Next(17);
                                    if (
Nr == 1client.Entity.ConquerPoints += 50000;
                                    if (
Nr == 1client.MessageBox("You received a 50K CPs "null);
                                    if (
Nr == 2client.Entity.ConquerPoints += 100000;
                                    if (
Nr == 2client.MessageBox("You received a 100K CPs"null);
                                    if (
Nr == 2client.Entity.ConquerPoints += 70000;
                                    if (
Nr == 2client.MessageBox("You received a 70K CPs"null);
                                    if (
Nr == 3client.Entity.ConquerPoints += 0;
                                    if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null);
                                    if (
Nr == 4client.Entity.ConquerPoints += 0;
                                    if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0);
                                    if (
Nr == 4client.Entity.ConquerPoints += 0;
                                    if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0);
                                    if (
Nr == 4client.Entity.ConquerPoints += 0;
                                    if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0);
                                    if (
Nr == 5client.Entity.ConquerPoints += 0;
                                    if (
Nr == 5client.MessageBox("Sorry you loss your cps"null);
                                    if (
Nr == 5client.Entity.ConquerPoints += 100000;
                                    if (
Nr == 5client.MessageBox("You received a 100K CPs"null);  
                                    if (
Nr == 5client.Entity.ConquerPoints += 79000;
                                    if (
Nr == 5client.MessageBox("You received a 79K CPs"null);
                                    if (
Nr == 6client.Entity.ConquerPoints += 100000;
                                    if (
Nr == 6client.MessageBox("You received a 100K CPs"null);
                                    if (
Nr == 7client.Entity.ConquerPoints += 66000;
                                    if (
Nr == 7client.MessageBox("You received a 66K CPs"null);
                                    
DialyQuestsEffect.Check(client"Sure");

                                }
                                else
                                {

                                    
dialog.Text("You do not have 50K  Cps.");
                                    
dialog.Option("I see."255);
                                    
dialog.Avatar(116);
                                    
dialog.Send();
                                }
                                break;
                            }
                        
#endregion
                        #region 100K Cps
                        
case 4:
                            {
                                if (
client.Entity.ConquerPoints >= 100000)
                                {
                                    
client.Entity.ConquerPoints -= 100000;
                                    
Random R = new Random();
                                    
int Nr R.Next(17);
                                    if (
Nr == 1client.Entity.ConquerPoints += 100000;
                                    if (
Nr == 1client.MessageBox("You received a 100K CPs "null);
                                    if (
Nr == 1client.Entity.ConquerPoints += 0;
                                    if (
Nr == 1client.MessageBox("Sorry you loss your Cps "null);
                                    if (
Nr == 2client.Entity.ConquerPoints += 100000;
                                    if (
Nr == 2client.MessageBox("You received a 100K CPs"null);
                                    if (
Nr == 2client.Entity.ConquerPoints += 29000;
                                    if (
Nr == 2client.MessageBox("You received a 29K CPs"null);
                                    if (
Nr == 2client.Entity.ConquerPoints += 0;
                                    if (
Nr == 2client.MessageBox("Sorry you loss your Cps"null);
                                    if (
Nr == 3client.Entity.ConquerPoints += 0;
                                    if (
Nr == 3client.MessageBox("Sorry you loss your Cps "null);
                                    if (
Nr == 4client.Entity.ConquerPoints += 0;
                                    if (
Nr == 4client.MessageBox("Sorry you loss your cps."nullnull0);
                                    if (
Nr == 5client.Entity.ConquerPoints += 200000;
                                    if (
Nr == 5client.MessageBox("You received a 200K CPs"null);
                                    if (
Nr == 5client.Entity.ConquerPoints += 0;
                                    if (
Nr == 5client.MessageBox("Sorry you loss your cps"null);
                                    if (
Nr == 6client.Entity.ConquerPoints += 150000;
                                    if (
Nr == 6client.MessageBox("You received a 150K CPs"null);
                                    if (
Nr == 7client.Entity.ConquerPoints += 130000;
                                    if (
Nr == 7client.MessageBox("You received a 130K CPs"null);
                                    
DialyQuestsEffect.Check(client"Sure");

                                }
                                else
                                {

                                    
dialog.Text("You do not have 100K cps.");
                                    
dialog.Option("I see."255);
                                    
dialog.Avatar(116);
                                    
dialog.Send();
                                }
                                break;
                            }
                        
#endregion
                    
}
                    break;
                }
            
#endregion 

ملحوظه : نزلته للأفاده عشان لو حد عايزو


الساعة الآن 04:32 AM

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