|
#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(1090, 40, 50);
client.Team.Teammates[1].Player.Teleport(1090, 40, 50);
}
}
}
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.TopSpouse, 1, DateTime.Now.AddDays(1));
client.Player.Teleport(1002, 300, 278);
GameState spouse = Program.FindClient(client.Player.Spouse);
if (spouse != null)
{
spouse.Player.AddTopStatus(Update.Flags.TopSpouse, 1, DateTime.Now.AddDays(1));
spouse.Player.Teleport(1002, 300, 278);
}
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.White, Message.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
public static readonly System.Collections.Generic.List<ushort> Forcetc = new System.Collections.Generic.List<ushort> {
2536,8541,2529,2528,2538,2222,2527,321,6565,9575,3071,1038,3820,12345
//توبات عشان لو قفل جواها يفتح في التون
};
static void DoLogin(
if (Database.EntityTable.LoadEntity(client))
{
#region At Quest by rider
///////////////////////////////////////////////////////////
if (Constants.Forcetc.Contains(client.Entity.MapID))
client.Entity.Teleport(1002, 300, 279);
////////////////////////////////////
#endregion