|
المشاركات 1,940 |
+التقييم 0.95 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
#region Battle Power War
#region Battle Power in
case 8736:
{
dialog.Avatar(32);
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcome, Are You Ready to Enter the BattlePower Tournament ?");
if (DateTime.Now.Hour == 12 && DateTime.Now.Minute >= 13 && DateTime.Now.Minute <= 15 && DateTime.Now.Second < 59
|| DateTime.Now.Hour == 1 && DateTime.Now.Minute >= 13 && DateTime.Now.Minute <= 15 && DateTime.Now.Second < 59)
{
if (client.Player.BattlePower >= 250 && client.Player.BattlePower <= 300)
{
dialog.Option("BattlePower Group 250 - 300 ", 1);
}
if (client.Player.BattlePower >= 301 && client.Player.BattlePower <= 350)
{
dialog.Option("BattlePower Group 301 - 350 ", 2);
}
if (client.Player.BattlePower > 350)
{
dialog.Option("BattlePower Group + 350 ", 3);
}
dialog.Option("Nothink", 255);
break;
}
else
{
dialog.Text("Sorry This Quest start at 12:13 to 12:15 ?");
dialog.Text("Or");
dialog.Text("Sorry This Quest start at 1:13 to 1:15 ?");
dialog.Option("oki Thank you", 255);
}
break;
}
case 1:
{
client.Player.Teleport(8080, 33, 16);//Group 250 - 300
break;
}
case 2:
{
client.Player.Teleport(8081, 33, 16);//Group 301 - 350
break;
}
case 3:
{
client.Player.Teleport(8082, 33, 16);// Group + 350
break;
}
}
break;
}
#endregion
#region Battle Power War 250 - 300
case 5421:
{
dialog.Avatar(32);
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 players in Kernel.GamePool.Values)
if (players.Player.MapID == 8080 && (!players.Player.Dead))
alive++;
if (Now64.Minute >= 15)
{
if (alive == 1)
{
client.Player.ConquerPoints += ServerRates.BattlePower3;
client.Player.ConquerPointsFake += ServerRates.BattlePower3;
client.ChiPoints += 1000;
//client.Inventory.Add(3006840, 0, 1);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags3.rygh_syzs, 3, DateTime.Now.AddDays(1));
KamaTcho.Kernel.SendWorldMessage(new KamaTcho.Network.GamePackets.MsgTalk("Congratulations! " + client.Player.Name + " winning the Battle Power Quest [ 250-300 ] and gain " + ServerRates.BattlePower3 + " cps .", System.Drawing.Color.Black, KamaTcho.Network.GamePackets.MsgTalk.Center), Server.GamePool);
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 300, 278);
foreach (var clients in Server.GamePool)
{
if (clients.Player.MapID == 8080)
{
clients.Player.Teleport(1002, 300, 278);
clients.Player.BringToLife();
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Player Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " players 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:15");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Battle Power War 300 - 350
case 5422:
{
dialog.Avatar(32);
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 players in Kernel.GamePool.Values)
if (players.Player.MapID == 8081 && (!players.Player.Dead))
alive++;
if (Now64.Minute >= 15)
{
if (alive == 1)
{
client.Player.ConquerPoints += ServerRates.BattlePower2;
client.Player.ConquerPointsFake += ServerRates.BattlePower2;
client.ChiPoints += 1500;
//client.Inventory.Add(3006841, 0, 1);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags3.rygh_syzs, 3, DateTime.Now.AddDays(1));
KamaTcho.Kernel.SendWorldMessage(new KamaTcho.Network.GamePackets.MsgTalk("Congratulations! " + client.Player.Name + " winning the Battle Power Quest [ 301-350 ] and gain " + ServerRates.BattlePower2 + " cps.", System.Drawing.Color.Black, KamaTcho.Network.GamePackets.MsgTalk.Center), Server.GamePool);
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 300, 278);
foreach (var clients in Server.GamePool)
{
if (clients.Player.MapID == 8081)
{
clients.Player.Teleport(1002, 300, 279);
clients.Player.BringToLife();
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Player Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " players 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:15");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Battle Power War + 350
case 5423:
{
dialog.Avatar(32);
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 players in Kernel.GamePool.Values)
if (players.Player.MapID == 8082 && (!players.Player.Dead))
alive++;
if (Now64.Minute >= 15)
{
if (alive == 1)
{
client.Player.ConquerPoints += ServerRates.BattlePower1;
client.Player.ConquerPointsFake += ServerRates.BattlePower1;
client.ChiPoints += 1500;
//client.Inventory.Add(3006842, 0, 1);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags3.rygh_hglx, 3, DateTime.Now.AddDays(1));
KamaTcho.Kernel.SendWorldMessage(new KamaTcho.Network.GamePackets.MsgTalk("Congratulations! " + client.Player.Name + " winning the Battle Power Quest [ 350+ ] and gain " + ServerRates.BattlePower1 + " cps .", System.Drawing.Color.Black, KamaTcho.Network.GamePackets.MsgTalk.Center), Server.GamePool);
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 300, 278);
foreach (var clients in Server.GamePool)
{
if (clients.Player.MapID == 8082)
{
clients.Player.Teleport(1002, 300, 278);
clients.Player.BringToLife();
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Player Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " players 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:15");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#endregion
void WorldTournaments
#region Battle Power
if (DateTime.Now.Hour == 12 && DateTime.Now.Minute == 12 && DateTime.Now.Second == 59)
{
foreach (var client in Server.GamePool)
{
if (!client.InQualifier() && client.Player.PokerTableUID == 0 && client.PlayRouletteUID == 0 && client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
MsgInviteTrans alert = new MsgInviteTrans
{
InviteID = 10655,
Countdown = 60,
Action = 1
};
client.Player.InviteID = 10655;
client.Send(alert.ToArray());
if (client.Player.ContainsFlag3((ulong)MsgUpdate.Flags3.rygh_syzs))
{
client.Player.RemoveTopStatus((ulong)MsgUpdate.Flags3.rygh_syzs);
}
if (client.Player.ContainsFlag3((ulong)MsgUpdate.Flags3.rygh_hglx))
{
client.Player.RemoveTopStatus((ulong)MsgUpdate.Flags3.rygh_hglx);
}
}
}
}
if (DateTime.Now.Hour == 1 && DateTime.Now.Minute == 12 && DateTime.Now.Second == 59)
{
foreach (var client in Server.GamePool)
{
if (!client.InQualifier() && client.Player.PokerTableUID == 0 && client.PlayRouletteUID == 0 && client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
MsgInviteTrans alert = new MsgInviteTrans
{
InviteID = 10655,
Countdown = 60,
Action = 1
};
client.Player.InviteID = 10655;
client.Send(alert.ToArray());
if (client.Player.ContainsFlag3((ulong)MsgUpdate.Flags3.rygh_syzs))
{
client.Player.RemoveTopStatus((ulong)MsgUpdate.Flags3.rygh_syzs);
}
if (client.Player.ContainsFlag3((ulong)MsgUpdate.Flags3.rygh_hglx))
{
client.Player.RemoveTopStatus((ulong)MsgUpdate.Flags3.rygh_hglx);
}
}
}
}
#endregion
void CharactersCallback
#region Battle Power
if (DateTime.Now.Hour == 12 && DateTime.Now.Minute == 13 && DateTime.Now.Second == 59)
{
Kernel.SendWorldMessage(new MsgTalk("Battle Power War began Would you like to join Go to TwinCity 309 , 147 ", Color.Red, MsgTalk.Center), Kernel.GamePool.Values.ToArray());
}
if (DateTime.Now.Hour == 1 && DateTime.Now.Minute == 13 && DateTime.Now.Second == 59)
{
Kernel.SendWorldMessage(new MsgTalk("Battle Power War began Would you like to join Go to TwinCity 309 , 147 ", Color.Red, MsgTalk.Center), Kernel.GamePool.Values.ToArray());
}
#endregion
INSERT INTO `game`.`sobnpcs` (`id`, `name`, `type`, `lookface`, `mapid`, `cellx`, `celly`, `life`, `maxlife`, `base`, `sort`, `showname`, `prize`, `effect`) VALUES ('8736', 'BattlePower', '02', '45318', '1002', '309', '145', '0000', '0000', '0000', '00', '0', '0', '');
INSERT INTO `game`.`sobnpcs` (`id`, `name`, `type`, `lookface`, `mapid`, `cellx`, `celly`, `life`, `maxlife`, `base`, `sort`, `showname`, `prize`, `effect`) VALUES ('5421', 'Battle~Prize', '02', '45026', '8080', '33', '50', '0000', '0000', '0000', '00', '0', '0', '');
INSERT INTO `game`.`sobnpcs` (`id`, `name`, `type`, `lookface`, `mapid`, `cellx`, `celly`, `life`, `maxlife`, `base`, `sort`, `showname`, `prize`, `effect`) VALUES ('5422', 'Battle~Prize', '02', '45026', '8081', '33', '50', '0000', '0000', '0000', '00', '0', '0', '');
INSERT INTO `game`.`sobnpcs` (`id`, `name`, `type`, `lookface`, `mapid`, `cellx`, `celly`, `life`, `maxlife`, `base`, `sort`, `showname`, `prize`, `effect`) VALUES ('5423', 'Battle~Prize', '02', '45026', '8082', '33', '50', '0000', '0000', '0000', '00', '0', '0', '');
INSERT INTO `game`.`maps` (`id`, `mapdoc`, `type`, `weather`) VALUES ('8080', '700', '0007', '0000');
INSERT INTO `game`.`maps` (`id`, `mapdoc`, `type`, `weather`) VALUES ('8081', '700', '0007', '0000');
INSERT INTO `game`.`maps` (`id`, `mapdoc`, `type`, `weather`) VALUES ('8082', '700', '0007', '0000');
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
كوست كتب cps | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2023-10-09 07:31 AM |
لاول مره علي الانترنت كوست TowerOfMystery | Hassan Emprator | تطوير سيرفرات كونكر | 9 | 2019-10-30 09:47 PM |
كوست Emperor War | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-05-07 12:41 PM |
كوست البولات ال 4 مدن | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-05-01 06:53 PM |