|
أفضل جواب - كتبه Tefa |
npc.cs كود:
كود:
World.cs كود:
ان بي سي دخول ف تون سيتي ان بي سي جوايز بتشوف رقم مابه و تحطه فيها احداثيات مابه الي هيه X-y 50 50و اعمل مابات جديده من نافي كات maps لو هما مش عندك |
#region Last Man [1]
case 54245:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join LastManStanding PKWar?.");
dialog.Option("The Top Now", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (Now64.Minute >= 1 && Now64.Minute <= 4)
{
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Player.Teleport(4444, 51, 73);
if (Nr == 2) client.Player.Teleport(4444, 33, 34);
if (Nr == 3) client.Player.Teleport(4444, 67, 34);
if (Nr == 4) client.Player.Teleport(4444, 51, 73);
if (Nr == 5) client.Player.Teleport(4444, 33, 34);
if (Nr == 6) client.Player.Teleport(4444, 67, 34);
if (Nr == 7) client.Player.Teleport(4444, 51, 73);
if (Nr == 8) client.Player.Teleport(4444, 33, 34);
if (Nr == 9) client.Player.Teleport(4444, 67, 34);
if (Nr == 10) client.Player.Teleport(4444, 68, 57);
client.Player.PKMode = Game.Enums.PKMode.PK;
client.Player.RemoveFlag((ulong)MsgUpdate.Flags.Ride);
client.Player.Update(MsgName.Mode.Effect, "zf2-e360", true);
client.Send(new MsgAction(true) { UID = client.Player.UID, ID = MsgAction.Mode.ChangePKMode, dwParam = (uint)client.Player.PKMode });
}
else if (Now64.Minute >= 5 && Now64.Minute <= 9)
{
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Player.Teleport(4444, 51, 73);
if (Nr == 2) client.Player.Teleport(4444, 33, 34);
if (Nr == 3) client.Player.Teleport(4444, 67, 34);
if (Nr == 4) client.Player.Teleport(4444, 51, 73);
if (Nr == 5) client.Player.Teleport(4444, 33, 34);
if (Nr == 6) client.Player.Teleport(4444, 67, 34);
if (Nr == 7) client.Player.Teleport(4444, 51, 73);
if (Nr == 8) client.Player.Teleport(4444, 33, 34);
if (Nr == 9) client.Player.Teleport(4444, 67, 34);
if (Nr == 10) client.Player.Teleport(4444, 68, 57);
client.Player.PKMode = Game.Enums.PKMode.PK;
client.Player.RemoveFlag((ulong)MsgUpdate.Flags.Ride);
client.Player.Update(MsgName.Mode.Effect, "zf2-e360", true);
client.Send(new MsgAction(true) { UID = client.Player.UID, ID = MsgAction.Mode.ChangePKMode, dwParam = (uint)client.Player.PKMode });
}
break;
}
else
{
dialog.Text("Now Top Now ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
}
break;
}
#endregion
#region All Queste Day
// case 141198:
case 141199:
{
dialog.Avatar(67);
switch (npcRequest.OptionID)
{
case 0:
{
{
dialog.Text("Hey there > " + client.Entity.Name + " < No Questes for now -_-");
dialog.Option("Ok Thanks.", 255);
client.Entity.Update(_String.Effect, "ErLongTengFei", true);
dialog.Send();
}
if (DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 2)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Top WarriorTop PKWar?.");
dialog.Option("Yea Teleport me Please WarriorTop!!", 100);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 3 && DateTime.Now.Minute <= 5)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join ToP ArcherTop PKWar?.");
dialog.Option("Yea Teleport me Please ArcherTop!!", 101);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 6 && DateTime.Now.Minute <= 8)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Top NinjaTop PKWar?.");
dialog.Option("Yea Teleport me Please NinjaTop!!", 102);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 9 && DateTime.Now.Minute <= 11)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TopMonk Pk?.");
dialog.Option("Yea Teleport me Please TopMonk!!", 103);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 12 && DateTime.Now.Minute <= 14)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TopTrojan PK PKWar?.");
dialog.Option("Yea Teleport me Please TopTrojan!!", 104);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 17)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Top PiratLord ?.");
dialog.Option("Yea Teleport me Please PiratLord!!", 106);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 18 && DateTime.Now.Minute <= 20)
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Top KungFuKing PKWar?.");
dialog.Option("Yea Teleport me Please KungFuKing!!", 107);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 21 && DateTime.Now.Minute <= 22)
{
dialog.Text("Hello " + client.Entity.Name + "I Can Let You Join The Cps War.");
dialog.Text("Start Every Hours At (××:21) The End (××:22) Your Make 5 Muints SinglUp.");
dialog.Text("If You Need To Join Cps War a " + ServerRates.Tops + " CPs Cps In Your Inventory If You Killed Any Entity U Will Drop " + ServerRates.Tops + " From Him Also If U Died U will Lose " + ServerRates.Tops + " Cps");
dialog.Option("Yea Teleport me Please CpsWar!!", 108);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 23 && DateTime.Now.Minute <= 25)
{
dialog.Text("Hey there > " + client.Entity.Name + " < Would you like to join Windwalker~PK ?.");
dialog.Option("Yea Teleport me Please Windwalker~PK!!", 109);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 27 && DateTime.Now.Minute <= 29)
{
dialog.Text("Hey there > " + client.Entity.Name + " < Would you like to join ?.");
dialog.Option("Yea Teleport me Please PkTopWater!!", 110);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 31 && DateTime.Now.Minute <= 34)
{
dialog.Text("Hey there > " + client.Entity.Name + " < Would you like to join ?.");
dialog.Option("Yea Teleport me Please rygh_hglx!!", 111);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 35 && DateTime.Now.Minute <= 37)
{
dialog.Text("Hey there > " + client.Entity.Name + " < Would you like to join ?.");
dialog.Option("Yea Teleport me Please rygh_syzs!!", 112);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute <= 43)
{
dialog.Text("Hey there > " + client.Entity.Name + " < Would you like to join ?.");
dialog.Option("Yea Teleport me Please ConuqerSuperBlue!!", 113);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 45 && DateTime.Now.Minute <= 48)
{
dialog.Text("Hey there > " + client.Entity.Name + " < Would you like to join ?.");
dialog.Option("Yea Teleport me Please MRConquerHost!!", 114);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 50 && DateTime.Now.Minute <= 53)
{
dialog.Text("Hey there > " + client.Entity.Name + " < Would you like to join ?.");
dialog.Option("Yea Teleport me Please 4thPlace_120!!", 115);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 57)
{
dialog.Text("Hey there > " + client.Entity.Name + " < Would you like to join ?.");
dialog.Option("Yea Teleport me Please 3rdPlace_120!!", 116);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Send();
}
break;
}
case 116:
{
if (DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 57)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(1997, 45, 45);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top 3rdPlace_120 Pk War is held during xx:55 to xx:57 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 115:
{
if (DateTime.Now.Minute >= 50 && DateTime.Now.Minute <= 53)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(1996, 45, 45);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top 4thPlace_120 Pk War is held during xx:50 to xx:53 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 114:
{
if (DateTime.Now.Minute >= 45 && DateTime.Now.Minute <= 48)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(1995, 45, 45);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top MRConquerHost Pk War is held during xx:45 to xx:48 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 113:
{
if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute <= 43)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(1994, 45, 45);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top ConuqerSuperBlue Pk War is held during xx:40 to xx:43 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 112:
{
if (DateTime.Now.Minute >= 35 && DateTime.Now.Minute <= 37)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(1993, 45, 45);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top rygh_syzs Pk War is held during xx:35 to xx:37 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 111:
{
if (DateTime.Now.Minute >= 31 && DateTime.Now.Minute <= 34)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(1992, 45, 45);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top rygh_hglx Pk War is held during xx:31 to xx:34 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 110:
{
if (DateTime.Now.Minute >= 27 && DateTime.Now.Minute <= 29)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(1991, 45, 45);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top Water Pk War is held during xx:27 to xx:29 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 100:
{
if (DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 2)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(2536, 50, 50);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top WarriorTop Pk War is held during xx:00 to xx:2 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 101:
{
if (DateTime.Now.Minute >= 3 && DateTime.Now.Minute <= 5)
{
client.Entity.Teleport(8541, 57, 51);
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("[ ArcherTop PK] War is held during [xx:03] To [xx:05] in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 102:
{
if (DateTime.Now.Minute >= 6 && DateTime.Now.Minute <= 8)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(2529, 57, 51);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top NinjaTop Pk War is held during xx:6 to xx:8 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 103:
{
if (DateTime.Now.Minute >= 9 && DateTime.Now.Minute <= 11)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(2528, 50, 50);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top MonkTop Pk War is held during xx:9 to xx:11 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 104:
{
if (DateTime.Now.Minute >= 12 && DateTime.Now.Minute <= 14)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(2538, 50, 50);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top Trojan Pk War is held during xx:12 to xx:14 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 106:
{
if (DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 17)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(2527, 50, 50);
// if (Nr == 1) client.Entity.Teleport(5928, 50, 50);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top PiratLord Pk War is held during xx:15 to xx:17 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 107:
{
if (DateTime.Now.Minute >= 18 && DateTime.Now.Minute <= 20)
{
Random R = new Random();
int Nr = R.Next(1, 1);
if (Nr == 1) client.Entity.Teleport(321, 50, 50);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Top KungFuKing Pk War is held during xx:18 to xx:20 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 108:
{
if (DateTime.Now.Minute >= 21 && DateTime.Now.Minute <= 22)
{
if (client.Entity.ConquerPoints >= ServerRates.Tops)
{
client.Entity.Teleport(6565, 39, 35);
/* if (client.Entity.MyClones.Count > 0)
{
var clones = client.Entity.MyClones.Values.ToArray();
for (int i = 0; i < clones.Length; i++)
{
var item = clones[i];
if (item == null)
continue;
Data data = new Data(true);
data.UID = item.UID;
data.ID = Network.GamePackets.Data.RemoveEntity;
client.Entity.Owner.SendScreen(data);
client.Entity.MyClones[item.UID] = null;
}
client.Entity.MyClones.Clear();
}*/
}
else
{
dialog.Text("Sorry Your Dont Make " + ServerRates.Tops + " CPs");
dialog.Option("Thanks.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
else
{
dialog.Text("Sorry i Can Let You join The Event Now Come again Later On (××:21) Off (××:22).");
dialog.Option("Thanks.", 255);
dialog.Avatar(116);
dialog.Send();
break;
}
//break;
}
case 109:
{
if (DateTime.Now.Minute >= 23 && DateTime.Now.Minute <= 25)
{
Random R = new Random();
int Nr = R.Next(1, 1);
client.Entity.Teleport(9575, 50, 50);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
if (client.Entity.ContainsFlag(Network.GamePackets.Update.Flags.Ride))
{
client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ride);
}
}
else
{
dialog.Text("Hey there > " + client.Entity.Name + "Would you like to join Windwalker~PK ?.");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
endregion
#region all queste day
// case 141198:
Case 141199:
{
dialog.avatar(67);
switch (npcrequest.optionid)
{
case 0:
{
{
dialog.text("hey there > " + client.entity.name + " < no questes for now -_-");
dialog.option("ok thanks.", 255);
client.entity.update(_string.effect, "erlongtengfei", true);
dialog.send();
}
if (datetime.now.minute >= 00 && datetime.now.minute <= 2)
{
dialog.text("hey there " + client.entity.name + " would you like to join top warriortop pkwar?.");
dialog.option("yea teleport me please warriortop!!", 100);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 3 && datetime.now.minute <= 5)
{
dialog.text("hey there " + client.entity.name + " would you like to join top archertop pkwar?.");
dialog.option("yea teleport me please archertop!!", 101);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 6 && datetime.now.minute <= 8)
{
dialog.text("hey there " + client.entity.name + " would you like to join top ninjatop pkwar?.");
dialog.option("yea teleport me please ninjatop!!", 102);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 9 && datetime.now.minute <= 11)
{
dialog.text("hey there " + client.entity.name + " would you like to join topmonk pk?.");
dialog.option("yea teleport me please topmonk!!", 103);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 12 && datetime.now.minute <= 14)
{
dialog.text("hey there " + client.entity.name + " would you like to join toptrojan pk pkwar?.");
dialog.option("yea teleport me please toptrojan!!", 104);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 15 && datetime.now.minute <= 17)
{
dialog.text("hey there " + client.entity.name + " would you like to join top piratlord ?.");
dialog.option("yea teleport me please piratlord!!", 106);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 18 && datetime.now.minute <= 20)
{
dialog.text("hey there " + client.entity.name + " would you like to join top kungfuking pkwar?.");
dialog.option("yea teleport me please kungfuking!!", 107);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 21 && datetime.now.minute <= 22)
{
dialog.text("hello " + client.entity.name + "i can let you join the cps war.");
dialog.text("start every hours at (××:21) the end (××:22) your make 5 muints singlup.");
dialog.text("if you need to join cps war a " + serverrates.tops + " cps cps in your inventory if you killed any entity u will drop " + serverrates.tops + " from him also if u died u will lose " + serverrates.tops + " cps");
dialog.option("yea teleport me please cpswar!!", 108);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 23 && datetime.now.minute <= 25)
{
dialog.text("hey there > " + client.entity.name + " < would you like to join windwalker~pk ?.");
dialog.option("yea teleport me please windwalker~pk!!", 109);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 27 && datetime.now.minute <= 29)
{
dialog.text("hey there > " + client.entity.name + " < would you like to join ?.");
dialog.option("yea teleport me please pktopwater!!", 110);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 31 && datetime.now.minute <= 34)
{
dialog.text("hey there > " + client.entity.name + " < would you like to join ?.");
dialog.option("yea teleport me please rygh_hglx!!", 111);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 35 && datetime.now.minute <= 37)
{
dialog.text("hey there > " + client.entity.name + " < would you like to join ?.");
dialog.option("yea teleport me please rygh_syzs!!", 112);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 40 && datetime.now.minute <= 43)
{
dialog.text("hey there > " + client.entity.name + " < would you like to join ?.");
dialog.option("yea teleport me please conuqersuperblue!!", 113);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 45 && datetime.now.minute <= 48)
{
dialog.text("hey there > " + client.entity.name + " < would you like to join ?.");
dialog.option("yea teleport me please mrconquerhost!!", 114);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 50 && datetime.now.minute <= 53)
{
dialog.text("hey there > " + client.entity.name + " < would you like to join ?.");
dialog.option("yea teleport me please 4thplace_120!!", 115);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
if (datetime.now.minute >= 55 && datetime.now.minute <= 57)
{
dialog.text("hey there > " + client.entity.name + " < would you like to join ?.");
dialog.option("yea teleport me please 3rdplace_120!!", 116);
dialog.option("i`ll~think~about~it.", 255);
dialog.send();
}
break;
}
case 116:
{
if (datetime.now.minute >= 55 && datetime.now.minute <= 57)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(1997, 45, 45);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top 3rdplace_120 pk war is held during xx:55 to xx:57 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 115:
{
if (datetime.now.minute >= 50 && datetime.now.minute <= 53)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(1996, 45, 45);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top 4thplace_120 pk war is held during xx:50 to xx:53 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 114:
{
if (datetime.now.minute >= 45 && datetime.now.minute <= 48)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(1995, 45, 45);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top mrconquerhost pk war is held during xx:45 to xx:48 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 113:
{
if (datetime.now.minute >= 40 && datetime.now.minute <= 43)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(1994, 45, 45);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top conuqersuperblue pk war is held during xx:40 to xx:43 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 112:
{
if (datetime.now.minute >= 35 && datetime.now.minute <= 37)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(1993, 45, 45);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top rygh_syzs pk war is held during xx:35 to xx:37 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 111:
{
if (datetime.now.minute >= 31 && datetime.now.minute <= 34)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(1992, 45, 45);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top rygh_hglx pk war is held during xx:31 to xx:34 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 110:
{
if (datetime.now.minute >= 27 && datetime.now.minute <= 29)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(1991, 45, 45);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top water pk war is held during xx:27 to xx:29 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 100:
{
if (datetime.now.minute >= 00 && datetime.now.minute <= 2)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(2536, 50, 50);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top warriortop pk war is held during xx:00 to xx:2 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 101:
{
if (datetime.now.minute >= 3 && datetime.now.minute <= 5)
{
client.entity.teleport(8541, 57, 51);
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("[ archertop pk] war is held during [xx:03] to [xx:05] in every hour");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 102:
{
if (datetime.now.minute >= 6 && datetime.now.minute <= 8)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(2529, 57, 51);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top ninjatop pk war is held during xx:6 to xx:8 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 103:
{
if (datetime.now.minute >= 9 && datetime.now.minute <= 11)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(2528, 50, 50);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top monktop pk war is held during xx:9 to xx:11 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 104:
{
if (datetime.now.minute >= 12 && datetime.now.minute <= 14)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(2538, 50, 50);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top trojan pk war is held during xx:12 to xx:14 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 106:
{
if (datetime.now.minute >= 15 && datetime.now.minute <= 17)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(2527, 50, 50);
// if (nr == 1) client.entity.teleport(5928, 50, 50);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top piratlord pk war is held during xx:15 to xx:17 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 107:
{
if (datetime.now.minute >= 18 && datetime.now.minute <= 20)
{
random r = new random();
int nr = r.next(1, 1);
if (nr == 1) client.entity.teleport(321, 50, 50);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("top kungfuking pk war is held during xx:18 to xx:20 you have 4 min to signup ");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
case 108:
{
if (datetime.now.minute >= 21 && datetime.now.minute <= 22)
{
if (client.entity.conquerpoints >= serverrates.tops)
{
client.entity.teleport(6565, 39, 35);
/* if (client.entity.myclones.count > 0)
{
var clones = client.entity.myclones.values.toarray();
for (int i = 0; i < clones.length; i++)
{
var item = clones[i];
if (item == null)
continue;
data data = new data(true);
data.uid = item.uid;
data.id = network.gamepackets.data.removeentity;
client.entity.owner.sendscreen(data);
client.entity.myclones[item.uid] = null;
}
client.entity.myclones.clear();
}*/
}
else
{
dialog.text("sorry your dont make " + serverrates.tops + " cps");
dialog.option("thanks.", 255);
dialog.avatar(116);
dialog.send();
}
break;
}
else
{
dialog.text("sorry i can let you join the event now come again later on (××:21) off (××:22).");
dialog.option("thanks.", 255);
dialog.avatar(116);
dialog.send();
break;
}
//break;
}
case 109:
{
if (datetime.now.minute >= 23 && datetime.now.minute <= 25)
{
random r = new random();
int nr = r.next(1, 1);
client.entity.teleport(9575, 50, 50);
client.entity.pkmode = game.enums.pkmode.team;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
if (client.entity.containsflag(network.gamepackets.update.flags.ride))
{
client.entity.removeflag(network.gamepackets.update.flags.ride);
}
}
else
{
dialog.text("hey there > " + client.entity.name + "would you like to join windwalker~pk ?.");
dialog.option("i don't care.", 255);
dialog.send();
break;
}
break;
}
}
break;
}
endregion
#region Questesr Join
case 141198:
{
switch (npcRequest.OptionID)
{
case 0:
{
{
dialog.Text("Hey there > " + client.Player.Name + " < No Questes for now -_-");
dialog.Option("Ok Thanks.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 03)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top?.");
dialog.Option("Yea Please !!", 100);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 04 && DateTime.Now.Minute <= 07)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top?.");
dialog.Option("Yea Please !!", 101);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 08 && DateTime.Now.Minute <= 11)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join top?.");
dialog.Option("Yea Please !!", 102);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 12 && DateTime.Now.Minute <= 15)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top?.");
dialog.Option("Yea Please !!", 103);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 16 && DateTime.Now.Minute <= 19)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top ?.");
dialog.Option("Yea Please !!", 104);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 23)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top ?.");
dialog.Option("Yea Please !!", 105);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 24 && DateTime.Now.Minute <= 27)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top?.");
dialog.Option("Yea Please !!", 106);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 28 && DateTime.Now.Minute <= 31)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top?.");
dialog.Option("Yea Please !!", 107);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 32 && DateTime.Now.Minute <= 35)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top?.");
dialog.Option("Yea Please !!", 108);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 36 && DateTime.Now.Minute <= 39)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join top?.");
dialog.Option("Yea Please !!", 109);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute <= 43)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top?.");
dialog.Option("Yea Please !!", 110);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 44 && DateTime.Now.Minute <= 47)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top ?.");
dialog.Option("Yea Please !!", 111);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 48 && DateTime.Now.Minute <= 51)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top ?.");
dialog.Option("Yea Please !!", 112);
dialog.Option("Thx.", 255);
dialog.Send();
}
if (DateTime.Now.Minute >= 52 && DateTime.Now.Minute <= 55)
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to join the top?.");
dialog.Option("Yea Please !!", 113);
dialog.Option("Thx.", 255);
dialog.Send();
}
break;
}
case 100:
{
if (DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 03)
{
client.Player.Teleport(1991, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("ConquerPK War is held during xx:00 To xx:03 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 101:
{
if (DateTime.Now.Minute >= 04 && DateTime.Now.Minute <= 07)
{
client.Player.Teleport(1992, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("DemonHellPK War is held during xx:04 To xx:07 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 102:
{
if (DateTime.Now.Minute >= 08 && DateTime.Now.Minute <= 11)
{
client.Player.Teleport(1993, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("HorsePK War is held during xx:08 To xx:11 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 103:
{
if (DateTime.Now.Minute >= 12 && DateTime.Now.Minute <= 15)
{
client.Player.Teleport(1994, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("SpeedPK War is held during xx:12 To xx:15 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 104:
{
if (DateTime.Now.Minute >= 16 && DateTime.Now.Minute <= 19)
{
client.Player.Teleport(1995, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("The Prince War is held during xx:16 To xx:19 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 105:
{
if (DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 23)
{
client.Player.Teleport(1996, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("The Duke War is held during xx:20 To xx:23 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 106:
{
if (DateTime.Now.Minute >= 24 && DateTime.Now.Minute <= 27)
{
client.Player.Teleport(1997, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("ChampionPK War is held during xx:24 To xx:27 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 107:
{
if (DateTime.Now.Minute >= 28 && DateTime.Now.Minute <= 31)
{
client.Player.Teleport(1998, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("Final-WaR War is held during xx:28 To xx:31 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 108:
{
if (DateTime.Now.Minute >= 32 && DateTime.Now.Minute <= 35)
{
client.Player.Teleport(2005, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("SuperPK War is held during xx:32 To xx:35 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 109:
{
if (DateTime.Now.Minute >= 36 && DateTime.Now.Minute <= 39)
{
client.Player.Teleport(2000, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("The C.P.S War is held during xx:36 To xx:39 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 110:
{
if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute <= 43)
{
client.Player.Teleport(1989, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("Hendy-Star War is held during xx:40 To xx:43 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 111:
{
if (DateTime.Now.Minute >= 44 && DateTime.Now.Minute <= 47)
{
client.Player.Teleport(1990, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("Class PK War is held during xx:44 To xx:47 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 112:
{
if (DateTime.Now.Minute >= 48 && DateTime.Now.Minute <= 51)
{
client.Player.Teleport(1988, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("Dead World War is held during xx:48 To xx:51 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 113:
{
if (DateTime.Now.Minute >= 52 && DateTime.Now.Minute <= 55)
{
client.Player.Teleport(1987, 45, 45);
client.Player.RemoveFlag(Update.Flags.Ride);
}
else
{
dialog.Text("WhtenamePK War is held during xx:52 To xx:55 in every Hour");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [1]
case 1991:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1991 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 04)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Ninja, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1991)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:04");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [2]
case 1992:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1992 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 08)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Water, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1992)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:08");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [3]
case 1993:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1993 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 12)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Trojan, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1993)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:12");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [4]
case 1994:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1994 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 16)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Fire, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1994)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:16");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [5]
case 1995:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1995 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 20)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Warrior, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1995)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:20");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [6]
case 199006:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1996 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 24)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Monk, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1996)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:24");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [7]
case 199007:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1997 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 28)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Archer, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1997)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:28");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [8]
case 199008:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1998 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 32)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.TopPirate, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1998)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:32");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [9]
case 199009:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 2005 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 36)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Warrior, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1999)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:36");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [10]
case 2000:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 2000 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 40)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Monk, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 2000)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:40");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [11]
case 1989:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1989 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 44)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2Archer, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1989)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:44");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [12]
case 1990:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1990 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 48)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.TopPirate, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1990)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:48");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [13]
case 1988:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1988 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 52)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top3SpouseYellow, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1988)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:52");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize [14]
case 1987:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Player.MapID == 1987 && (!Entitys.Player.Dead))
alive++;
if (DateTime.Now.Minute >= 56)
{
if (alive == 1)
{
client.Player.Teleport(1002, 300, 278);
client.Player.AddTopStatus(Update.Flags2.Top2SpouseBlue, 2, DateTime.Now.AddMinutes(45));
client.Player.ConquerPoints += 30000;
client.Inventory.Add(730004, 4, 1);
//client.Inventory.Add(3009001, 0, 2);
Mr_Panda.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [30k] ConquerPoints for winning Quest for this Minute #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
foreach (var clients in Program.Values)
{
if (clients.Player.MapID == 1987)
{
clients.Player.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entitys in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + "You can only claim the prize when the time on or after xx:56");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Tops
#region ConquerPK
if (Now64.Minute == 00 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("ConquerPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("ConquerPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region DemonHellPK
if (Now64.Minute == 04 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("DemonHellPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("DemonHellPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region HorsePK
if (Now64.Minute == 08 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("HorsePK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("HorsePK began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region SpeedPK
if (Now64.Minute == 12 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("SpeedPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("SpeedPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region The Prince
if (Now64.Minute == 16 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("The Prince began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("The Prince began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region The Duke
if (Now64.Minute == 20 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("The Duke began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("The Duke began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region ChampionPK
if (Now64.Minute == 24 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("ChampionPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("ChampionPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region Final-WaR
if (Now64.Minute == 28 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("Final-WaR began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("Final-WaR began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region SuperPK
if (Now64.Minute == 32 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("SuperPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("SuperPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region The C.P.S
if (Now64.Minute == 36 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("The C.P.S began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("The C.P.S began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region Hendy-Star
if (Now64.Minute == 40 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("Hendy-Star began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("Hendy-Star began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region Class PK
if (Now64.Minute == 44 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("Class PK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("Class PK began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region Dead World
if (Now64.Minute == 48 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("Dead World began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("Dead World began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region WhtenamePK
if (Now64.Minute == 52 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("WhtenamePK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("WhtenamePK began! Would you like to join?",
p => { p.Player.Teleport(1002, 301, 271); }, null, 20);
}
#endregion
#region HeroOFGame [30]
if (DateTime.Now.Minute == 30)
{
HeroOfGame.CheakUp();
}
#endregion
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
طلب بخصوص الدروب الوحوش الكبيرة | abdocoder | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-05-02 05:00 AM |
بخصوص الدروب | stevenayman1 | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2020-04-04 05:14 PM |
طلب بخصوص الحروب | osama | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2019-08-07 04:49 AM |
حاجه بخصوص الحروب | uncelsam | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-07-14 05:12 PM |
طلب بخصوص الدروب | osama | مشكلات السيرفيرات كونكر الشخصيه | 17 | 2019-07-01 10:16 PM |