#region Prize For Trojan
case 7898521:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
{
if (client.Entity.Class == 15 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopTrojan);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the Trojan PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10!");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopTrojan);
break;
}
#endregion
#region Prize For Warrior
case 7898522:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday)
{
if (client.Entity.Class == 25 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopWarrior);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the Warrior PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopWarrior);
break;
}
#endregion
#region Prize For Ninja
case 7898523:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Monday)
{
if (client.Entity.Class == 55 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopNinja);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the Ninja PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopNinja);
break;
}
#endregion
#region Prize For WaterTaoist
case 7898524:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Tuesday)
{
if (client.Entity.Class == 135 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopWaterTaoist);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the WaterTaoist PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopWaterTaoist);
break;
}
#endregion
#region Prize For FireTaoist
case 7898525:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday)
{
if (client.Entity.Class == 145 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopFireTaoist);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the FireTaoist PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopFireTaoist);
break;
}
#endregion
#region Prize For Archer
case 7898526:
{
if (npcRequest.OptionID == 0)
{
dialog.Text("I will claim to you your prize at 20.10!");
dialog.Link("Claim My Prize", 1);
dialog.Link("Teleport me to TwinCity", 2);
dialog.Avatar(0);
dialog.Send();
}
else if (npcRequest.OptionID == 1)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday)
{
if (client.Entity.Class == 45 && (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 10))
{
client.Entity.UpdateHalo(true, false, false, Enums.StatusEffectEn.TopArcher);
DateTime.Now.AddDays(7);
client.Entity.ConquerPoints += 3000;
Conquer_Online_Server.Network.PacketHandler.WorldM essage("Congratulations! " + client.Entity.Name + " has won the Archer PK Tournament!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.AliceBlue);
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
else
{
dialog.Text("You can Take it Later at 20:10.");
dialog.Link("I see.", 255);
dialog.Avatar(0);
dialog.Send();
}
}
}
else if (npcRequest.OptionID == 2)
{
client.Entity.Teleport(1002, 429, 378);
dialog.Text("Good luck and be careful!");
dialog.Link("Thanks.", 255);
dialog.Avatar(0);
dialog.Send();
}
if (DateTime.Now.Equals(7))
client.Entity.UpdateHalo(true, false, true, Enums.StatusEffectEn.TopArcher);
break;
}
#endregion
|