|
المشاركات 1,993 |
+التقييم 1.00 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل ويندوز 0 |
رقم العضوية 279 |
#region prize
#region Winner OF 1997
case 1997:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 58 && DateTime.Now.Minute <= 59)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The TopWaterTaoist Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
//Program.AddWarLog("EuroPK", "500", client.Entity.Name);
client.Entity.AddFlag3(ElSaher.Network.GamePackets.Update.Flags3._3rdPlace_120);
// client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperBlue, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 1997)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:58 to xx:59");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF 1996
case 1996:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 57)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The TopWaterTaoist Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
//Program.AddWarLog("EuroPK", "500", client.Entity.Name);
client.Entity.AddFlag3(ElSaher.Network.GamePackets.Update.Flags3._4thPlace_120);
// client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperBlue, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 1996)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:55 to xx:57");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF 1995
case 1995:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 50 && DateTime.Now.Minute <= 52)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The TopWaterTaoist Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
//Program.AddWarLog("EuroPK", "500", client.Entity.Name);
client.Entity.AddFlag3(ElSaher.Network.GamePackets.Update.Flags3.MRConquerHost);
// client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperBlue, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 1995)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:50 to xx:52");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF 1994
case 1994:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 45 && DateTime.Now.Minute <= 47)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The TopWaterTaoist Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
//Program.AddWarLog("EuroPK", "500", client.Entity.Name);
client.Entity.AddFlag3(ElSaher.Network.GamePackets.Update.Flags3.ConuqerSuperBlue);
// client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperBlue, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 1994)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:45 to xx:47");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF 1993
case 1993:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 38 && DateTime.Now.Minute <= 40)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The TopWaterTaoist Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
//Program.AddWarLog("EuroPK", "500", client.Entity.Name);
client.Entity.AddFlag3(ElSaher.Network.GamePackets.Update.Flags3.rygh_syzs);
// client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperBlue, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 1993)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:38 to xx:40");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF 1992
case 1992:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 35 && DateTime.Now.Minute <= 37)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The TopWaterTaoist Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
//Program.AddWarLog("EuroPK", "500", client.Entity.Name);
client.Entity.AddFlag3(ElSaher.Network.GamePackets.Update.Flags3.rygh_hglx);
// client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperBlue, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 1992)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:35 to xx:37");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF 1991
case 1991:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 30 && DateTime.Now.Minute <= 34)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The TopWaterTaoist Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
//Program.AddWarLog("EuroPK", "500", client.Entity.Name);
client.Entity.AddTopStatus(Update.Flags.TopWaterTaoist, 3, DateTime.Now.AddMinutes(59));
client.Entity.AddFlag(ElSaher.Network.GamePackets.Update.Flags.TopWaterTaoist);
// client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperBlue, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 1991)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:30 to xx:34");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF Trojan
case 2539:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 17 && DateTime.Now.Minute <= 18)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The Top Trojan Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
//Program.AddWarLog("EuroPK", "500", client.Entity.Name);
client.Entity.AddTopStatus((ulong)Update.Flags.TopTrojan, 1, DateTime.Now.AddMinutes(58));
// client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperBlue, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 2538)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:17 to xx:18");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF Cps War
case 25371:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 25 && DateTime.Now.Minute <= 28)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + "Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The Top Cps Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.AddFlag4(Update.Flags4.WindwalkerTop);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 6565)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:25 to xx:28");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of ToP ArcherTop
case 485760:
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 Need To Leave", 2);
// dialog.Option("Potions HP / Magic", 3);
dialog.Option("I don't care.", 0xff);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
foreach (GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Entity.MapID == 8541 && (!Entitys.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 9 && DateTime.Now.Minute <= 11)
{
if (alive == 1)
{
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
client.Entity.OnlinePoints += 50;
client.Entity.AddTopStatus((ulong)Update.Flags.TopArcher, 1, DateTime.Now.AddMinutes(58));
ElSaher.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + "You Winner 1000 OnlinePoints ToP ArcherTop Claimed The Prize " + ServerRates.Tops + " CPs ", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 278);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 8541)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + ClassPk.howmanyinmap + " Entitys in the map kill it first to claim prize !");
dialog.Option("okay", 0xff);
dialog.Send();
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after [xx:11]");
dialog.Option("okay", 0xff);
dialog.Send();
}
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 3:
{
INpc npc = null;
if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npc))
{
//Data data = new Data(true);
//data.ID = Data.OpenWindow;
//data.UID = client.Entity.UID;
//data.TimeStamp = Time32.Now;
//data.dwParam = 0x1FA;
//data.wParam1 = npc.X;
//data.wParam2 = npc.Y;
//client.Send(data);
}
break;
}
}
break;
#endregion
#region Windwalker~PK Prize
case 81501:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 29 && DateTime.Now.Minute <= 31)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopWaterTaoist2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 10", System.Drawing.Color.Red, 0x7d1), client);
client.Entity.AddFlag3(Update.Flags3.DragonWarriorTop2);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The Top Windwalker Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 9575)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:29 to xx:31");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF Top Warrior//[00:04]
case 25360:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 5 && DateTime.Now.Minute <= 6)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.Money += ServerRates.MoneyTops;
client.Entity.OnlinePoints += 100;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
// client.Entity.TopTrojan2 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 19", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + "Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The Top WarriorTop Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.AddTopStatus((ulong)Update.Flags.TopWarrior, 1, DateTime.Now.AddMinutes(58));
//client.Entity.AddTopStatus(Update.Flags3.rygh_syzs, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 2536)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:5 to xx:6");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF Top NinjaTop
case 25290:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 13)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.Money += ServerRates.MoneyTops;
client.Entity.OnlinePoints += 100;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopArcher8 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 23", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The Top NinjaTop Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.AddTopStatus((ulong)Update.Flags.TopNinja, 1, DateTime.Now.AddMinutes(58));
//client.Entity.AddTopStatus(Update.Flags3.ConuqerSuperYellow, 3, DateTime.Now.AddMinutes(59));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 2529)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:11 to xx:13");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF Top MonkTop
case 25280:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 14 && DateTime.Now.Minute <= 15)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.Money += ServerRates.MoneyTops;
client.Entity.OnlinePoints += 100;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopNinja8 = 1;
//PacketHandler.CheckCommand10(new Message("@addflags2 14", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The Top MonkTop Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
// client.Entity.AddTopStatus(Update.Flags2.Top3Ninja, 2, DateTime.Now.AddMinutes(59));
//client.Entity.AddTopStatus((ulong)Update.Flags2.TopMonk, 1, DateTime.Now.AddMinutes(58));
client.Entity.AddFlag3(ElSaher.Network.GamePackets.Update.Flags2.TopMonk);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 2528)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:14 to xx:15");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF Top PiratLord
case 25270:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 22)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.Money += ServerRates.MoneyTops;
client.Entity.OnlinePoints += 100;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopNinja2 = 1;
// PacketHandler.CheckCommand10(new Message("@addflags2 13", System.Drawing.Color.Red, 0x7d1), client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The Top PiratLord Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.AddTopStatus((ulong)Update.Flags2.TopPirate, 1, DateTime.Now.AddMinutes(58));
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
// if (clients.Entity.MapID == 2527)
if (clients.Entity.MapID == 2527)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:20 to xx:22");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF Top KungFuKing
case 25260:
{
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 Need To Leave", 2);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 1:
{
int alive = 0;
foreach (ElSaher.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 22 && DateTime.Now.Minute <= 23)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.Tops;
client.Entity.OnlinePoints += 100;
client.Entity.Money += ServerRates.MoneyTops;
client.Inventory.Add(ServerRates.Stone1, 0, 1);
client.Inventory.Add(ServerRates.Stone2, 0, 1);
//client.Entity. += 20;
//client.Entity.TopArcher2 = 1;
client.Entity.AddTopStatus(Update.Flags3.DragonWarriorTop, 3, DateTime.Now.AddMinutes(59));
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & 1000 OnlinePoints & Box Great Prizes For Win The Top KungFuKing Pk Every Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 321)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in Every Hour xx:22 to xx:23");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#endregion
if(client.Entity.class >= 50 &&client.Entity.Cass<=55)
{
client.Entity.AddFlag3(ElSaher.Network.GamePackets .Update.Flags3._3rdPlace_120);
}
if(client.Entity.class >= 50 &&client.Entity.Cass<=55)
{
client.Entity.AddFlag3(ElSaher.Network.GamePackets .Update.Flags3._3rdPlace_120);
}
if(client.entity.class >= 50 &&client.entity.cass<=55)
{
client.entity.addflag3(elsaher.network.gamepackets .update.flags3._3rdplace_120);
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة في التوبات | AhmedGadd | مشكلات السيرفيرات كونكر الشخصيه | 12 | 2020-04-16 01:54 PM |
مشكله في مابات التوبات | Diego | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-04-10 10:00 AM |
التعديل علي كل التوبات الكبيره | ahmedshetos888 | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-01-27 09:32 PM |
مشكلة في التوبات | youssefabdelmanam | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-12-11 07:02 AM |
مشكله في التوبات | Adel Abd El Hay | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2019-08-01 11:52 AM |