المشاركة الأصلية كتبت بواسطة mronlinegvrix
(المشاركة 28273)
با النسبة للجوايز ابحث بدل دا با الى عندك
كود PHP:
#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
با النسبة للوقت عدل برحتك بقا
كود PHP:
#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
|