|
المشاركات 132 |
+التقييم 0.07 |
تاريخ التسجيل Dec 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 3266 |
#region ClanWar
case 48116:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello there. Do you want to Join The ClanWar.. It Start [20.00 To 21.00] EveryDay Excpt Friday?.");
dialog.Option("Yes Please.", 1);
dialog.Option("Cliam Prize.", 2);
dialog.Option("Just Passing By!", 255);
dialog.Send();
break;
}
case 1:
{
if (ClanWar.IsWar)
{
client.Entity.Teleport(1509, 82, 119);
client.Entity.PKMode = Game.Enums.PKMode.PK;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
}
else
{
dialog.Text("The War Has Not Started It Start [20.00 To 21.00] EveryDay Excpt Friday");
dialog.Option("Aww ok!", 255);
dialog.Send();
}
break;
}
case 2:
{
if (ClanWar.KeeperID != 0 && !ClanWar.IsWar && ClanWar.Claim && client.Entity.ClanId == ClanWar.KeeperID && client.Entity.ClanRank == Clan.Ranks.ClanLeader)
{
Program.AddWarLog("ClanWar", "[Prize : 1,000,000]", client.Entity.Name);
ClanWar.Claim = false;
ClanWar.KeeperID = 0;
client.Entity.OnlinePoints += 1;
client.Entity.ConquerPoints += 1000000;
client.Entity.BoundCps += 100000;
KhaledMohamed.Kernel.SendWorldMessage(new Message(" Congratulations " + client.Entity.Name + " Leader of " + client.Entity.ClanName + " The winner Clan has Claimed Clan War Prize " + 1000000 + "[1,000,000] ConquerPoints & [100.000] CpsBound ", System.Drawing.Color.White, Message.TopLeft), Program.Values);
}
else
{
dialog.Text("Sorry you dont have Any Prize to claim only CL of the winner CLAN can claim Prize After CW");
dialog.Option("Ahh.", 255);
dialog.Send();
}
break;
}
}
break;
}
case 4482115:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello there. Do you want to Teleport To Twincity.");
dialog.Option(" Send Me There. ", 1);
dialog.Option("Just Passing By!", 255);
dialog.Send();
break;
}
case 1:
{
client.Entity.Teleport(1002, 284, 146);
break;
}
}
break;
}
#endregion
#region Clan War [14H] To [16H]
if (!Game.ClanWar.IsWar)
{
if ((Now64.Hour == 14) && Now64.Minute == 00 && Now64.Second == 15 && !ClanWar.IsWar)
{
Game.ClanWar.Start();
ClanWarAI = false;
if (Now64.Hour != 2)
{
ClanWarAI = Now64.Hour != 2;
foreach (var client in Program.Values)
if (client.Entity.GuildID != 0)
client.MessageBox("ClanWar has begun! Would you like to join?",
p => { p.Entity.Teleport(1002, 285, 148); }, null);
}
}
if ((DateTime.Now.Hour == 14 && DateTime.Now.Minute == 55 && Now64.Second == 58))
{
ClanWarAI = true;
foreach (var client in Program.Values)
if (client.Entity.GuildID != 0)
client.MessageBox("ClanWar has begun Would you like to join Prize [100,000,000] ConquerPoints & [100.000]",
p => { p.Entity.Teleport(1002, 286, 143); }, null);
}
if (DateTime.Now.Hour == 15 && DateTime.Now.Minute == 00 && Now64.Second == 10)
{
Game.ClanWar.End();
}
if (Game.ClanWar.IsWar)
{
if (Time32.Now > Game.ClanWar.ScoreSendStamp.AddSeconds(3))
{
Game.ClanWar.ScoreSendStamp = Time32.Now;
Game.ClanWar.SendScores();
}
}
}
#endregion
#region clanwar
case 48116:
{
switch (npcrequest.optionid)
{
case 0:
{
dialog.text("hello there. Do you want to join the clanwar.. It start [20.00 to 21.00] everyday excpt friday?.");
dialog.option("yes please.", 1);
dialog.option("cliam prize.", 2);
dialog.option("just passing by!", 255);
dialog.send();
break;
}
case 1:
{
if (clanwar.iswar)
{
client.entity.teleport(1509, 82, 119);
client.entity.pkmode = game.enums.pkmode.pk;
client.send(new data(true) { uid = client.entity.uid, id = data.changepkmode, dwparam = (uint)client.entity.pkmode });
}
else
{
dialog.text("the war has not started it start [20.00 to 21.00] everyday excpt friday");
dialog.option("aww ok!", 255);
dialog.send();
}
break;
}
case 2:
{
if (clanwar.keeperid != 0 && !clanwar.iswar && clanwar.claim && client.entity.clanid == clanwar.keeperid && client.entity.clanrank == clan.ranks.clanleader)
{
program.addwarlog("clanwar", "[prize : 1,000,000]", client.entity.name);
clanwar.claim = false;
clanwar.keeperid = 0;
client.entity.onlinepoints += 1;
client.entity.conquerpoints += 1000000;
client.entity.boundcps += 100000;
khaledmohamed.kernel.sendworldmessage(new message(" congratulations " + client.entity.name + " leader of " + client.entity.clanname + " the winner clan has claimed clan war prize " + 1000000 + "[1,000,000] conquerpoints & [100.000] cpsbound ", system.drawing.color.white, message.topleft), program.values);
}
else
{
dialog.text("sorry you dont have any prize to claim only cl of the winner clan can claim prize after cw");
dialog.option("ahh.", 255);
dialog.send();
}
break;
}
}
break;
}
case 4482115:
{
switch (npcrequest.optionid)
{
case 0:
{
dialog.text("hello there. Do you want to teleport to twincity.");
dialog.option(" send me there. ", 1);
dialog.option("just passing by!", 255);
dialog.send();
break;
}
case 1:
{
client.entity.teleport(1002, 284, 146);
break;
}
}
break;
}
#endregion
#region clan war [14h] to [16h]
if (!game.clanwar.iswar)
{
if ((now64.hour == 14) && now64.minute == 00 && now64.second == 15 && !clanwar.iswar)
{
game.clanwar.start();
clanwarai = false;
if (now64.hour != 2)
{
clanwarai = now64.hour != 2;
foreach (var client in program.values)
if (client.entity.guildid != 0)
client.messagebox("clanwar has begun! Would you like to join?",
p => { p.entity.teleport(1002, 285, 148); }, null);
}
}
if ((datetime.now.hour == 14 && datetime.now.minute == 55 && now64.second == 58))
{
clanwarai = true;
foreach (var client in program.values)
if (client.entity.guildid != 0)
client.messagebox("clanwar has begun would you like to join prize [100,000,000] conquerpoints & [100.000]",
p => { p.entity.teleport(1002, 286, 143); }, null);
}
if (datetime.now.hour == 15 && datetime.now.minute == 00 && now64.second == 10)
{
game.clanwar.end();
}
if (game.clanwar.iswar)
{
if (time32.now > game.clanwar.scoresendstamp.addseconds(3))
{
game.clanwar.scoresendstamp = time32.now;
game.clanwar.sendscores();
}
}
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة في البوله بتاعت الكلان Clan war Pole | Alaa Ghanem | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-12-11 01:33 AM |