المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : طلب صغير


osama
2020-05-07, 03:36 PM
عاوز اخلى الكويستة دى تشتغل مرتين او 3 فى اليوم عاوزها زى بلااى كونكر بظبط

#region [Cps~Castle]
case 232:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey " + client.Player.Name + " Would you Go to event [Cps~Castle]?.");
dialog.Text(" you can join At 12:00 to 12:15 & 15:00 To 15:15 In All Days #26");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Hour == 12 && DateTime.Now.Minute < 15)
{
client.Player.RemoveFlag(Update.Flags.Ride);
Random R = new Random();
int Nr = R.Next(1, 9);
if (Nr == 1) client.Player.Teleport(3030, 200, 215);
if (Nr == 2) client.Player.Teleport(3030, 230, 320);
if (Nr == 3) client.Player.Teleport(3030, 280, 320);
if (Nr == 4) client.Player.Teleport(3030, 338, 320);
if (Nr == 5) client.Player.Teleport(3030, 338, 300);
if (Nr == 6) client.Player.Teleport(3030, 401, 298);
if (Nr == 7) client.Player.Teleport(3030, 451, 320);
if (Nr == 8) client.Player.Teleport(3030, 451, 400);
if (Nr == 9) client.Player.Teleport(3030, 451, 470);
if (Nr == 10) client.Player.Teleport(3030, 321, 455);
client.Player.PKMode = Game.Enums.PKMode.PK;
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
}
else
{
dialog.Text("Sorry it is not the time for the event!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
}
}
break;
}
break;
}
#endregion

Hassan Emprator
2020-05-09, 11:01 PM
يغلق لعدم المتابعه