محمد ياسر
2019-07-30, 12:33 PM
السلام عليكم ورحمة الله وبركاته
معانا اليوم توب الشخصيات
التوب لشخصيات دول لو تحب تكتر براحتك
Pirates vs Trojan
Assassin vs Monk
Ninja vs Water
Fire vs Warrior
كل شخصيتن من دول هيلعبو في مابه ومش هينفع شخصيه تانيه تخش المابا غير الشخصيات اللي قلت عليها كذا ضد كذا
الشرح
اولا افتح Npcs.cs
وضيف دول تحت اي توب عندك
#region Top-Monk-VS-Assassin by ana wad gentle
case 201510:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Top-Monk-VS-Assassin-World ClassPk?.");
dialog.Option("Yes Please", 1);
dialog.Option("Me Not Monk or Assassin.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 01 && DateTime.Now.Minute <= 04)
{
if (client.Entity.Class == 15) return;
if (client.Entity.Class == 25) return;
if (client.Entity.Class == 135) return;
if (client.Entity.Class == 145) return;
if (client.Entity.Class == 55) return;
if (client.Entity.Class == 75) return;
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(225, 51, 73);
if (Nr == 2) client.Entity.Teleport(225, 33, 34);
if (Nr == 3) client.Entity.Teleport(225, 67, 34);
if (Nr == 4) client.Entity.Teleport(225, 51, 73);
if (Nr == 5) client.Entity.Teleport(225, 33, 34);
if (Nr == 6) client.Entity.Teleport(225, 67, 34);
if (Nr == 7) client.Entity.Teleport(225, 51, 73);
if (Nr == 8) client.Entity.Teleport(225, 33, 34);
if (Nr == 9) client.Entity.Teleport(225, 67, 34);
if (Nr == 10) client.Entity.Teleport(225, 68, 57);
}
else
{
dialog.Text("Top-Monk-VS-Ninja-World ClassPk is held during 01:04 to 01:04 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of Top-Monk-VS-Assassin by ana wad gentle
case 201511:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.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:
{
Daily.CheackAlive3();
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 08 && DateTime.Now.Minute <= 10)
{
if (Daily.howmanyinmap2 == 1)
{
client.Entity.ConquerPoints += 500000;
client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , DateTime.Now.AddDays(1));
MrEtaleProject.ServerBase.Kernel.SendWorldMessage( new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + 500000 + " ConquerPoints for winning the Top-Monk-VS-Assassin Pk War and Receive PkWar Halo.", System.Drawing.Color.White, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 299, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap2 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 00:20");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Top-Trojan-VS-Pirates by ana wad gentle
case 201512:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Trojan-VS-Pirates-World ClassPk?.");
dialog.Option("Yes Please", 1);
dialog.Option("me not Trojan Or Pirates.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 14)
{
if (client.Entity.Class == 55) return;
if (client.Entity.Class == 25) return;
if (client.Entity.Class == 135) return;
if (client.Entity.Class == 145) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 45) return;
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(226, 51, 73);
if (Nr == 2) client.Entity.Teleport(226, 33, 34);
if (Nr == 3) client.Entity.Teleport(226, 67, 34);
if (Nr == 4) client.Entity.Teleport(226, 51, 73);
if (Nr == 5) client.Entity.Teleport(226, 33, 34);
if (Nr == 6) client.Entity.Teleport(226, 67, 34);
if (Nr == 7) client.Entity.Teleport(226, 51, 73);
if (Nr == 8) client.Entity.Teleport(226, 33, 34);
if (Nr == 9) client.Entity.Teleport(226, 67, 34);
if (Nr == 10) client.Entity.Teleport(226, 68, 57);
}
else
{
dialog.Text("Top-Trojan-VS-Archer-World ClassPk is held during 05:08 to 05:08 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of Top-Trojan-VS-Pirates by ana wad gentle
case 201513:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.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:
{
Daily.CheackAlive3();
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 17 && DateTime.Now.Minute <= 20)
{
if (Daily.howmanyinmap2 == 1)
{
client.Entity.ConquerPoints += 500000;
client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , DateTime.Now.AddDays(1));
MrEtaleProject.ServerBase.Kernel.SendWorldMessage( new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + 500000 + " ConquerPoints for winning the Top-Trojan-VS-Pirates Pk War and Receive Top-Monk-VS-Ninja PkWar Halo.", System.Drawing.Color.White, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 299, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap2 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 01:10");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Top-Ninja-VS-Water by ana wad gentle
case 201514:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Ninja-VS-Water-World ClassPk?.");
dialog.Option("Yes Please", 1);
dialog.Option("Me not Ninja or Water.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 21 && DateTime.Now.Minute <= 24)
{
if (client.Entity.Class == 15) return;
if (client.Entity.Class == 25) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 145) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 75) return;
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(227, 51, 73);
if (Nr == 2) client.Entity.Teleport(227, 33, 34);
if (Nr == 3) client.Entity.Teleport(227, 67, 34);
if (Nr == 4) client.Entity.Teleport(227, 51, 73);
if (Nr == 5) client.Entity.Teleport(227, 33, 34);
if (Nr == 6) client.Entity.Teleport(227, 67, 34);
if (Nr == 7) client.Entity.Teleport(227, 51, 73);
if (Nr == 8) client.Entity.Teleport(227, 33, 34);
if (Nr == 9) client.Entity.Teleport(227, 67, 34);
if (Nr == 10) client.Entity.Teleport(227, 68, 57);
}
else
{
dialog.Text("Top-Ninja-VS-Water-World ClassPk is held during 09:11 to 09:11 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of Top-Ninja-VS-Water by ana wad gentle
case 201515:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.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:
{
Daily.CheackAlive3();
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 28 && DateTime.Now.Minute <= 31)
{
if (Daily.howmanyinmap2 == 1)
{
client.Entity.ConquerPoints += 500000;
client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , DateTime.Now.AddDays(1));
MrEtaleProject.ServerBase.Kernel.SendWorldMessage( new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + 500000 + " ConquerPoints for winning the Top-Ninja-VS-Water Pk War and Receive Top-Monk-VS-Ninja PkWar Halo.", System.Drawing.Color.White, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 299, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap2 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 01:10");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Top-Warrior-VS-Fire by ana wad gentle
case 201516:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Warrior-VS-Fire-World ClassPk?.");
dialog.Option("Yes Please", 1);
dialog.Option("Me not Warrior or Fire.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 32 && DateTime.Now.Minute <= 34)
{
if (client.Entity.Class == 15) return;
if (client.Entity.Class == 55) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 135) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 75) return;
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(228, 51, 73);
if (Nr == 2) client.Entity.Teleport(228, 33, 34);
if (Nr == 3) client.Entity.Teleport(228, 67, 34);
if (Nr == 4) client.Entity.Teleport(228, 51, 73);
if (Nr == 5) client.Entity.Teleport(228, 33, 34);
if (Nr == 6) client.Entity.Teleport(228, 67, 34);
if (Nr == 7) client.Entity.Teleport(228, 51, 73);
if (Nr == 8) client.Entity.Teleport(228, 33, 34);
if (Nr == 9) client.Entity.Teleport(228, 67, 34);
if (Nr == 10) client.Entity.Teleport(228, 68, 57);
}
else
{
dialog.Text("Warrior-VS-Fire-World ClassPk is held during 00:34 to 00:34 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of Top-Warrior-VS-Fire by ana wad gentle
case 201517:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.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:
{
Daily.CheackAlive3();
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 37 && DateTime.Now.Minute <= 40)
{
if (Daily.howmanyinmap2 == 1)
{
client.Entity.ConquerPoints += 500000;
client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , DateTime.Now.AddDays(1));
MrEtaleProject.ServerBase.Kernel.SendWorldMessage( new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + 500000 + " ConquerPoints for winning the Top-Monk-VS-Ninja Pk War and Receive Top-Monk-VS-Ninja PkWar Halo.", System.Drawing.Color.White, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 299, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap2 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 01:10");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
ثانيا الاتو انفيت
ضيف دول في ملف World.cs
تحت اي اتو انفيت
#region Top-Monk-VS-Assassin by ana wad gentle
if (Now64.Minute == 01 && Now64.Second == 00)
{
Kernel.SendWorldMessage(new Message("Top-Monk-VS-Assassin began!", Color.Red, Message.Center), Program.GamePool);
foreach (var pclint in Program.GamePool)
client.MessageBox("Top-Monk-VS-Assassin Event Has Started Wana Join? ",
(p) => { p.Entity.Teleport(1002, 285, 359); }, null, 10);
}
#endregion Top-Monk-VS-Assassin by ana wad gentle
#region Top-Trojan-VS-Pirates
if (Now64.Minute == 11 && Now64.Second == 00)
{
Kernel.SendWorldMessage(new Message("Top-Trojan-VS-Pirates began!", Color.Red, Message.Center), Program.GamePool);
foreach (var pclint in Program.GamePool)
client.MessageBox("Top-Trojan-VS-Pirates Event Has Started Wana Join? ",
(p) => { p.Entity.Teleport(1002, 274, 359); }, null, 10);
}
#endregion Top-Trojan-VS-Pirates by ana wad gentle
#region Top-Warrior-VS-Fire
if (Now64.Minute == 32 && Now64.Second == 00)
{
Kernel.SendWorldMessage(new Message("Top-Warrior-VS-Fire began!", Color.Red, Message.Center), Program.GamePool);
foreach (var pclint in Program.GamePool)
client.MessageBox("Top-Warrior-VS-Fire Event Has Started Wana Join? ",
(p) => { p.Entity.Teleport(1002, 281, 359); }, null, 10);
}
#endregion Top-Warrior-VS-Fire by ana wad gentle
#region Top-Ninja-VS-Water
if (Now64.Minute == 21 && Now64.Second == 00)
{
Kernel.SendWorldMessage(new Message("Top-Ninja-VS-Water began!", Color.Red, Message.Center), Program.GamePool);
foreach (var pclint in Program.GamePool)
client.MessageBox("Top-Ninja-VS-Water Event Has Started Wana Join? ",
(p) => { p.Entity.Teleport(1002, 277, 359); }, null, 10);
}
#endregion Top-Ninja-VS-Water by ana wad gentle
ثالثا شغل النفي كات
دول في ملف Npcs
201511 0 0 Top-Monk-VS-asa1 2 29500 -1 225 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201512 0 0 Trojan-VS-Pirate 2 29500 -1 1002 274 357 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201513 0 0 Trojan-VS-Pirate 2 29500 -1 226 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201514 0 0 Ninja-VS-Water 2 29500 -1 1002 277 357 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201515 0 0 Ninja-VS-Water1 2 29500 -1 227 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201516 0 0 Warrior-VS-Fire 2 29500 -1 1002 281 357 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201517 0 0 Warrior-VS-Fire1 2 29500 -1 228 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ودول في ملف maps
225 1730 7 0
226 1730 7 0
227 1730 7 0
228 1730 7 0
معانا اليوم توب الشخصيات
التوب لشخصيات دول لو تحب تكتر براحتك
Pirates vs Trojan
Assassin vs Monk
Ninja vs Water
Fire vs Warrior
كل شخصيتن من دول هيلعبو في مابه ومش هينفع شخصيه تانيه تخش المابا غير الشخصيات اللي قلت عليها كذا ضد كذا
الشرح
اولا افتح Npcs.cs
وضيف دول تحت اي توب عندك
#region Top-Monk-VS-Assassin by ana wad gentle
case 201510:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Top-Monk-VS-Assassin-World ClassPk?.");
dialog.Option("Yes Please", 1);
dialog.Option("Me Not Monk or Assassin.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 01 && DateTime.Now.Minute <= 04)
{
if (client.Entity.Class == 15) return;
if (client.Entity.Class == 25) return;
if (client.Entity.Class == 135) return;
if (client.Entity.Class == 145) return;
if (client.Entity.Class == 55) return;
if (client.Entity.Class == 75) return;
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(225, 51, 73);
if (Nr == 2) client.Entity.Teleport(225, 33, 34);
if (Nr == 3) client.Entity.Teleport(225, 67, 34);
if (Nr == 4) client.Entity.Teleport(225, 51, 73);
if (Nr == 5) client.Entity.Teleport(225, 33, 34);
if (Nr == 6) client.Entity.Teleport(225, 67, 34);
if (Nr == 7) client.Entity.Teleport(225, 51, 73);
if (Nr == 8) client.Entity.Teleport(225, 33, 34);
if (Nr == 9) client.Entity.Teleport(225, 67, 34);
if (Nr == 10) client.Entity.Teleport(225, 68, 57);
}
else
{
dialog.Text("Top-Monk-VS-Ninja-World ClassPk is held during 01:04 to 01:04 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of Top-Monk-VS-Assassin by ana wad gentle
case 201511:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.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:
{
Daily.CheackAlive3();
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 08 && DateTime.Now.Minute <= 10)
{
if (Daily.howmanyinmap2 == 1)
{
client.Entity.ConquerPoints += 500000;
client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , DateTime.Now.AddDays(1));
MrEtaleProject.ServerBase.Kernel.SendWorldMessage( new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + 500000 + " ConquerPoints for winning the Top-Monk-VS-Assassin Pk War and Receive PkWar Halo.", System.Drawing.Color.White, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 299, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap2 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 00:20");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Top-Trojan-VS-Pirates by ana wad gentle
case 201512:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Trojan-VS-Pirates-World ClassPk?.");
dialog.Option("Yes Please", 1);
dialog.Option("me not Trojan Or Pirates.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 14)
{
if (client.Entity.Class == 55) return;
if (client.Entity.Class == 25) return;
if (client.Entity.Class == 135) return;
if (client.Entity.Class == 145) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 45) return;
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(226, 51, 73);
if (Nr == 2) client.Entity.Teleport(226, 33, 34);
if (Nr == 3) client.Entity.Teleport(226, 67, 34);
if (Nr == 4) client.Entity.Teleport(226, 51, 73);
if (Nr == 5) client.Entity.Teleport(226, 33, 34);
if (Nr == 6) client.Entity.Teleport(226, 67, 34);
if (Nr == 7) client.Entity.Teleport(226, 51, 73);
if (Nr == 8) client.Entity.Teleport(226, 33, 34);
if (Nr == 9) client.Entity.Teleport(226, 67, 34);
if (Nr == 10) client.Entity.Teleport(226, 68, 57);
}
else
{
dialog.Text("Top-Trojan-VS-Archer-World ClassPk is held during 05:08 to 05:08 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of Top-Trojan-VS-Pirates by ana wad gentle
case 201513:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.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:
{
Daily.CheackAlive3();
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 17 && DateTime.Now.Minute <= 20)
{
if (Daily.howmanyinmap2 == 1)
{
client.Entity.ConquerPoints += 500000;
client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , DateTime.Now.AddDays(1));
MrEtaleProject.ServerBase.Kernel.SendWorldMessage( new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + 500000 + " ConquerPoints for winning the Top-Trojan-VS-Pirates Pk War and Receive Top-Monk-VS-Ninja PkWar Halo.", System.Drawing.Color.White, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 299, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap2 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 01:10");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Top-Ninja-VS-Water by ana wad gentle
case 201514:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Ninja-VS-Water-World ClassPk?.");
dialog.Option("Yes Please", 1);
dialog.Option("Me not Ninja or Water.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 21 && DateTime.Now.Minute <= 24)
{
if (client.Entity.Class == 15) return;
if (client.Entity.Class == 25) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 145) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 75) return;
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(227, 51, 73);
if (Nr == 2) client.Entity.Teleport(227, 33, 34);
if (Nr == 3) client.Entity.Teleport(227, 67, 34);
if (Nr == 4) client.Entity.Teleport(227, 51, 73);
if (Nr == 5) client.Entity.Teleport(227, 33, 34);
if (Nr == 6) client.Entity.Teleport(227, 67, 34);
if (Nr == 7) client.Entity.Teleport(227, 51, 73);
if (Nr == 8) client.Entity.Teleport(227, 33, 34);
if (Nr == 9) client.Entity.Teleport(227, 67, 34);
if (Nr == 10) client.Entity.Teleport(227, 68, 57);
}
else
{
dialog.Text("Top-Ninja-VS-Water-World ClassPk is held during 09:11 to 09:11 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of Top-Ninja-VS-Water by ana wad gentle
case 201515:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.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:
{
Daily.CheackAlive3();
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 28 && DateTime.Now.Minute <= 31)
{
if (Daily.howmanyinmap2 == 1)
{
client.Entity.ConquerPoints += 500000;
client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , DateTime.Now.AddDays(1));
MrEtaleProject.ServerBase.Kernel.SendWorldMessage( new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + 500000 + " ConquerPoints for winning the Top-Ninja-VS-Water Pk War and Receive Top-Monk-VS-Ninja PkWar Halo.", System.Drawing.Color.White, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 299, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap2 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 01:10");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Top-Warrior-VS-Fire by ana wad gentle
case 201516:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Warrior-VS-Fire-World ClassPk?.");
dialog.Option("Yes Please", 1);
dialog.Option("Me not Warrior or Fire.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 32 && DateTime.Now.Minute <= 34)
{
if (client.Entity.Class == 15) return;
if (client.Entity.Class == 55) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 135) return;
if (client.Entity.Class == 65) return;
if (client.Entity.Class == 75) return;
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(228, 51, 73);
if (Nr == 2) client.Entity.Teleport(228, 33, 34);
if (Nr == 3) client.Entity.Teleport(228, 67, 34);
if (Nr == 4) client.Entity.Teleport(228, 51, 73);
if (Nr == 5) client.Entity.Teleport(228, 33, 34);
if (Nr == 6) client.Entity.Teleport(228, 67, 34);
if (Nr == 7) client.Entity.Teleport(228, 51, 73);
if (Nr == 8) client.Entity.Teleport(228, 33, 34);
if (Nr == 9) client.Entity.Teleport(228, 67, 34);
if (Nr == 10) client.Entity.Teleport(228, 68, 57);
}
else
{
dialog.Text("Warrior-VS-Fire-World ClassPk is held during 00:34 to 00:34 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of Top-Warrior-VS-Fire by ana wad gentle
case 201517:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.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:
{
Daily.CheackAlive3();
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 37 && DateTime.Now.Minute <= 40)
{
if (Daily.howmanyinmap2 == 1)
{
client.Entity.ConquerPoints += 500000;
client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , DateTime.Now.AddDays(1));
MrEtaleProject.ServerBase.Kernel.SendWorldMessage( new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + 500000 + " ConquerPoints for winning the Top-Monk-VS-Ninja Pk War and Receive Top-Monk-VS-Ninja PkWar Halo.", System.Drawing.Color.White, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 299, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap2 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 01:10");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
ثانيا الاتو انفيت
ضيف دول في ملف World.cs
تحت اي اتو انفيت
#region Top-Monk-VS-Assassin by ana wad gentle
if (Now64.Minute == 01 && Now64.Second == 00)
{
Kernel.SendWorldMessage(new Message("Top-Monk-VS-Assassin began!", Color.Red, Message.Center), Program.GamePool);
foreach (var pclint in Program.GamePool)
client.MessageBox("Top-Monk-VS-Assassin Event Has Started Wana Join? ",
(p) => { p.Entity.Teleport(1002, 285, 359); }, null, 10);
}
#endregion Top-Monk-VS-Assassin by ana wad gentle
#region Top-Trojan-VS-Pirates
if (Now64.Minute == 11 && Now64.Second == 00)
{
Kernel.SendWorldMessage(new Message("Top-Trojan-VS-Pirates began!", Color.Red, Message.Center), Program.GamePool);
foreach (var pclint in Program.GamePool)
client.MessageBox("Top-Trojan-VS-Pirates Event Has Started Wana Join? ",
(p) => { p.Entity.Teleport(1002, 274, 359); }, null, 10);
}
#endregion Top-Trojan-VS-Pirates by ana wad gentle
#region Top-Warrior-VS-Fire
if (Now64.Minute == 32 && Now64.Second == 00)
{
Kernel.SendWorldMessage(new Message("Top-Warrior-VS-Fire began!", Color.Red, Message.Center), Program.GamePool);
foreach (var pclint in Program.GamePool)
client.MessageBox("Top-Warrior-VS-Fire Event Has Started Wana Join? ",
(p) => { p.Entity.Teleport(1002, 281, 359); }, null, 10);
}
#endregion Top-Warrior-VS-Fire by ana wad gentle
#region Top-Ninja-VS-Water
if (Now64.Minute == 21 && Now64.Second == 00)
{
Kernel.SendWorldMessage(new Message("Top-Ninja-VS-Water began!", Color.Red, Message.Center), Program.GamePool);
foreach (var pclint in Program.GamePool)
client.MessageBox("Top-Ninja-VS-Water Event Has Started Wana Join? ",
(p) => { p.Entity.Teleport(1002, 277, 359); }, null, 10);
}
#endregion Top-Ninja-VS-Water by ana wad gentle
ثالثا شغل النفي كات
دول في ملف Npcs
201511 0 0 Top-Monk-VS-asa1 2 29500 -1 225 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201512 0 0 Trojan-VS-Pirate 2 29500 -1 1002 274 357 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201513 0 0 Trojan-VS-Pirate 2 29500 -1 226 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201514 0 0 Ninja-VS-Water 2 29500 -1 1002 277 357 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201515 0 0 Ninja-VS-Water1 2 29500 -1 227 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201516 0 0 Warrior-VS-Fire 2 29500 -1 1002 281 357 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
201517 0 0 Warrior-VS-Fire1 2 29500 -1 228 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ودول في ملف maps
225 1730 7 0
226 1730 7 0
227 1730 7 0
228 1730 7 0