Dialogs.cs
Code:
اقتباس:
#region ClassPkEnvoy
case 705:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there i hold every
Class PK Tournament for Trojans, Warriors, Ninjas, Taoists And Archers,
So Tell me your character so i can Sign you Up.at 19:45!");
dialog.Option("Iam a Trojan [Saturday]", 1);
dialog.Option("iam a Warrior [Sunday]", 2);
dialog.Option("iam a Ninja [Monday]", 3);
dialog.Option("iam a WaterTaoist [Tuesday]", 4);
dialog.Option("iam a FireTaoist [Wednesday]", 5);
dialog.Option("iam a Archer [Thursday]", 6);
dialog.Option("iam a Monk.. [Thursday]", 7);
dialog.Option("You are very naughty.", 255);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
{
if (client.Entity.Class == 15
&& (DateTime.Now.Hour == 19 && DateTime.Now.Minute >=
45))
{
client.Entity.Teleport(1730, 34, 19);
dialog.Text("Good luck and be carefull");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
else
{
dialog.Text("If you want
Sign Up,you must choose your Right character in the right day and come
at 19:45");
dialog.Option("Ok.$orry", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Option("sorry...I will come in correct day", 255);
dialog.Send();
}
break;
}
case 2:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday)
{
if (client.Entity.Class == 25
&& (DateTime.Now.Hour == 19 && DateTime.Now.Minute >=
45))
{
client.Entity.Teleport(1731, 34, 19);
dialog.Text("Good luck and be carefull");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
else
{
dialog.Text("If you want
Sign Up,you must choose your Right character in the right day and come
at 19:45");
dialog.Option("oK.Sorry", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Option("sorry...I will come in correct day", 255);
dialog.Send();
}
break;
}
case 3:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Monday)
{
if (client.Entity.Class == 55
&& (DateTime.Now.Hour == 19 && DateTime.Now.Minute >=
45))
{
client.Entity.Teleport(1732, 34, 19);
dialog.Text("Good luck and be carefull");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
else
{
dialog.Text("If you want
Sign Up,you must choose your Right character in the right day and come
at 19:45");
dialog.Option("oK.Sorry", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Option("sorry...I will come in correct day", 255);
dialog.Send();
}
break;
}
case 4:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Tuesday)
{
if (client.Entity.Class == 135
&& (DateTime.Now.Hour == 19 && DateTime.Now.Minute >=
45))
{
client.Entity.Teleport(1733, 34, 19);
dialog.Text("Good luck and be carefull");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
else
{
dialog.Text("If you want
Sign Up,you must choose your Right character in the right day and come
at 19:45");
dialog.Option("Ok.Sorry.", 255);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Option("sorry...I will come in correct day", 255);
dialog.Send();
}
break;
}
case 5:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday)
{
if (client.Entity.Class == 145
&& (DateTime.Now.Hour == 19 && DateTime.Now.Minute >=
45))
{
client.Entity.Teleport(1734, 34, 19);
dialog.Text("Good luck and be carefull");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
else
{
dialog.Text("If you want
Sign Up,you must choose your Right character in the right day and come
at 19:45");
dialog.Option("Ok.Sorry.", 255);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Option("sorry...I will come in correct day", 255);
dialog.Send();
}
break;
}
case 6:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday)
{
if (client.Entity.Class == 45
&& (DateTime.Now.Hour == 19 && DateTime.Now.Minute >=
45))
{
client.Entity.Teleport(1735, 34, 19);
dialog.Text("Good luck and be carefull");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
else
{
dialog.Text("If you want
Sign Up,you must choose your Right character in the right day and come
at 19:45");
dialog.Option("Ok.Sorry.", 255);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Option("sorry...I will come in correct day", 255);
dialog.Send();
}
break;
}
case 7:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday)
{
if (client.Entity.Class == 65
&& (DateTime.Now.Hour == 22 && DateTime.Now.Minute >=
10))
{
client.Entity.Teleport(1736, 34, 19);
dialog.Text("Good luck and be carefull");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
else
{
dialog.Text("If you want
Sign Up,you must choose your Right character in the right day and come
at 19:45");
dialog.Option("Ok.Sorry.", 255);
dialog.Send();
}
}
else
{
dialog.Text("This is not the correct day Come later in correct day");
dialog.Option("sorry...I will come in correct day", 255);
dialog.Send();
}
break;
}
}
break;
}
#endregion
متنساش الرد بالدعاء