الموضوع: NPC Lucky Play Cps
عرض مشاركة واحدة
قديم 2019-08-01, 12:46 PM
المشاركة 5
Ahmeed Sheeko
.:: عضو نشيط ::.
  • غير متواجد
Timid رد: NPC Lucky Play Cps
هو كان جايب ايرورات كتير اوى فانا غيرته كله يعنى حتى ظبطه على سيرفرى

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

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