قديم 2019-08-31, 11:17 PM
المشاركة 2
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: طلب بخصوص حرب المتزوجين

كود:
 #region TopSpouse Join
                    
case 23106:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there " client.Player.Name " Would you like to join TopSpouse PKWar?.");
                                        
dialog.Text("you should make Team and Join your Spouse in it so i can let you Join?.");
                                        
dialog.Option("Yes Please"1);
                                        
dialog.Option("I don't care."255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        
DateTime Now64 DateTime.Now;
                                        if (
DateTime.Now.Hour == 16 && DateTime.Now.Minute <= 05)
                                        {
                                            if (
client.Team != null && client.Team.TeamLeader && (client.Player.Body == 1003 || client.Player.Body == 1004))
                                            {
                                                if (
client.Team.SpouseWarFull)
                                                {
                                                    
client.Team.Teammates[0].Player.Teleport(10904050);
                                                    
client.Team.Teammates[1].Player.Teleport(10904050);
                                                }
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text("TopSpouse Pk War is held during " 16 ":00 to " 16 ":05 and End " 00 ":30 in every day");
                                            
dialog.Text("and to let you Join you must be Team leader and have your spouse in the team");
                                            
dialog.Text(" Note: only you and your Spouse in the Team so you can Join");
                                            
dialog.Option("I don't care."255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region TopSpouse Claim
                    
case 2314007:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hey there " client.Player.Name " Would you like to claim TopSpouse PKWar reward?.");
                                        
dialog.Text("you should be the only man here your claim 125m cps and 2 lover book dont forget to give?.");
                                        
dialog.Text(" A loveBook to your Spouse and claim halo from here?.");
                                        
dialog.Option("ClaimPrize"1);
                                        
dialog.Option("I don't care."255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
DateTime.Now.Hour == 16 && DateTime.Now.Minute >= 06 && DateTime.Now.Minute 30)
                                        {
                                            
ahmedfathy.Game.ConquerStructures.Daily.CheackSpouse();
                                            if (
ahmedfathy.Game.ConquerStructures.Daily.howmanyinmap3 == 1)
                                            {
                                                if (
client.Team != null)
                                                {
                                                    
client.Player.AddTopStatus(Update.Flags.TopSpouse1DateTime.Now.AddDays(1));
                                                    
client.Player.Teleport(1002300278);
                                                    
GameState spouse Program.FindClient(client.Player.Spouse);
                                                    if (
spouse != null)
                                                    {
                                                        
spouse.Player.AddTopStatus(Update.Flags.TopSpouse1DateTime.Now.AddDays(1));
                                                        
spouse.Player.Teleport(1002300278);
                                                    }

                                                    
client.Player.ConquerPoints += 125000000;
                                                    
client.Player.killerpoints += 50;
                                                    
Kernel.SendWorldMessage(new Message(" Congratulations ! " client.Player.Name " has claimed Prize for Couples pk for this day " rates.TopSpouse " 125m Cps + 50 KPT."System.Drawing.Color.WhiteMessage.Center), Program.Values);
                                                }
                                            }
                                        }
                                        else
                                        {
                                            
dialog.Text("Sorry you can claim TopSpouse Prize if you the last man Here in The Map");
                                            
dialog.Option("oh i see!."255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 


قديم 2019-09-01, 01:05 AM
المشاركة 3
ابو مروان
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: طلب بخصوص حرب المتزوجين
كود:
 #region topspouse join
                    
case 23106:
                        {
                            switch (
npcrequest.optionid)
                            {
                                case 
0:
                                    {
                                        
dialog.text("hey there " client.player.name " would you like to join topspouse pkwar?.");
                                        
dialog.text("you should make team and join your spouse in it so i can let you join?.");
                                        
dialog.option("yes please"1);
                                        
dialog.option("i don't care."255);
                                        
dialog.send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        
datetime now64 datetime.now;
                                        if (
datetime.now.hour == 16 && datetime.now.minute <= 05)
                                        {
                                            if (
client.team != null && client.team.teamleader && (client.player.body == 1003 || client.player.body == 1004))
                                            {
                                                if (
client.team.spousewarfull)
                                                {
                                                    
client.team.teammates[0].player.teleport(10904050);
                                                    
client.team.teammates[1].player.teleport(10904050);
                                                }
                                            }
                                        }
                                        else
                                        {
                                            
dialog.text("topspouse pk war is held during " 16 ":00 to " 16 ":05 and end " 00 ":30 in every day");
                                            
dialog.text("and to let you join you must be team leader and have your spouse in the team");
                                            
dialog.text(" note: Only you and your spouse in the team so you can join");
                                            
dialog.option("i don't care."255);
                                            
dialog.send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion
                    #region topspouse claim
                    
case 2314007:
                        {
                            switch (
npcrequest.optionid)
                            {
                                case 
0:
                                    {
                                        
dialog.text("hey there " client.player.name " would you like to claim topspouse pkwar reward?.");
                                        
dialog.text("you should be the only man here your claim 125m cps and 2 lover book dont forget to give?.");
                                        
dialog.text(" a lovebook to your spouse and claim halo from here?.");
                                        
dialog.option("claimprize"1);
                                        
dialog.option("i don't care."255);
                                        
dialog.send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        if (
datetime.now.hour == 16 && datetime.now.minute >= 06 && datetime.now.minute 30)
                                        {
                                            
ahmedfathy.game.conquerstructures.daily.cheackspouse();
                                            if (
ahmedfathy.game.conquerstructures.daily.howmanyinmap3 == 1)
                                            {
                                                if (
client.team != null)
                                                {
                                                    
client.player.addtopstatus(update.flags.topspouse1datetime.now.adddays(1));
                                                    
client.player.teleport(1002300278);
                                                    
gamestate spouse program.findclient(client.player.spouse);
                                                    if (
spouse != null)
                                                    {
                                                        
spouse.player.addtopstatus(update.flags.topspouse1datetime.now.adddays(1));
                                                        
spouse.player.teleport(1002300278);
                                                    }

                                                    
client.player.conquerpoints += 125000000;
                                                    
client.player.killerpoints += 50;
                                                    
kernel.sendworldmessage(new message(" congratulations ! " client.player.name " has claimed prize for couples pk for this day " rates.topspouse " 125m cps + 50 kpt."system.drawing.color.whitemessage.center), program.values);
                                                }
                                            }
                                        }
                                        else
                                        {
                                            
dialog.text("sorry you can claim topspouse prize if you the last man here in the map");
                                            
dialog.option("oh i see!."255);
                                            
dialog.send();
                                            break;
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 
هى دى وربنا والله ما كنت اعرف :d


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع



الساعة الآن 11:13 AM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.