#region 12Hours vote Prize by conquer9
case 900200:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hi im akachab Conquer9 Coder " + client.Entity.Name + " you can get Cps by voting for the server");
dialog.Option("ok", 2);
dialog.Option("Let me Vote", 1);
dialog.Option("Nahh.", 255);
dialog.Avatar(80);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.loginstate == true)
{
if (client.Entity.logintime.AddHours(12) <= Time32.Now)
{
client.Entity.loginstate = false;
dialog.Text("Thanks for you spurt!");
dialog.Option(" No", 255);
dialog.Option("ok", 2);
dialog.Avatar(80);
dialog.Send();
}
else
{
dialog.Text("you can vote only ones every 12 h!");
dialog.Option("Dame man", 255);
dialog.Avatar(80);
dialog.Send();
}
break;
}
else
{
dialog.Text("You must vote first!");
dialog.Option("Ok.", 255);
dialog.Option("New voting", 2);
dialog.Avatar(80);
dialog.Send();
break;
}
}
case 2:
{
if (client.Entity.loginstate == false)
{
client.Send(new Conquer_Online_Server.Network.GamePackets.Message("www.vpscairo.com", System.Drawing.Color.Yellow, 2105));
// System.Diagnostics.Process.Start("www.vpscairo.com");
client.Entity.ConquerPoints += 1000;
client.Entity.logintime = Time32.Now;
client.Entity.ConquerPoints += 1000;
client.Entity.loginstate = true;
dialog.Text("You voted now come within 12 hours!");
dialog.Option("Ok .", 255);
dialog.Avatar(80);
dialog.Send();
break;
}
else
{
dialog.Text("You voted before!");
dialog.Option("Dame man i need Cps.", 255);
dialog.Avatar(80);
dialog.Send();
}
break;
}
}
break;
}
#endregion