|
|
المشاركات 3,131 |
+التقييم 1.17 |
تاريخ التسجيل Jun 2019 |
الاقامة الزقازيق |
نظام التشغيل ويندوز 0 |
رقم العضوية 279 |
case 1000000:
او
#region Medicine
if (Constants.NoHp.Contains(client.Entity.MapID))
{
return;
}
case 1001000:
case 1001010:
case 1001020:
case 1001030:
case 1001040:
case 1002030:
case 1002040:
case 725066:
if (Constants.NoHp.Contains(client.Entity.MapID))
{
return;
}
if (Constants.NoHp.Contains(client.Entity.MapID))
{
return;
}
void Revive
if (Constants.revnomap.Contains(client.Entity.MapID))
او
if (Constants.NoRevHere.Contains(client.Entity.MapID))
if (Constants.NoHp.Contains(client.Entity.MapID))
{
client.Entity.Teleport(1002, 300, 279);
}
if (Constants.NoRevHere.Contains(client.Entity.MapID))
او
if (Constants.PKFreeMaps.Contains(client.Entity.MapID))
او
if (Constants.revnomap.Contains(client.Entity.MapID))
if (Constants.NoHp.Contains(client.Entity.MapID))
client.Entity.Teleport(1002, 300, 279);
#region Top No Hp
case 11110:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Top NO HP PKWar?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
client.Entity.Update(_String.Effect, "ErLongTengFei", true);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (DateTime.Now.Hour == 16 && DateTime.Now.Minute >= 31 && DateTime.Now.Minute <= 33)
{
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(1111, 50, 50);
if (Nr == 2) client.Entity.Teleport(1111, 56, 70);
if (Nr == 3) client.Entity.Teleport(1111, 78, 69);
if (Nr == 4) client.Entity.Teleport(1111, 67, 51);
if (Nr == 5) client.Entity.Teleport(1111, 58, 59);
if (Nr == 6) client.Entity.Teleport(1111, 53, 57);
if (Nr == 7) client.Entity.Teleport(1111, 45, 73);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
}
else
{
dialog.Text("Top Champion Pk War is held during xx:5 to xx:9 you have 4 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner OF Top NOHp
case 1111:
{
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:
{
int alive = 0;
foreach (XMeGo.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 34 && DateTime.Now.Minute <= 45)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += ServerRates.NOHp;
;
//client.Entity.TopArcher2 = 1;
// client.Entity.AddFlag3(XMeGo.Network.GamePackets.Update.Flags3.rygh_hglx);
client.Entity.AddTopStatus(Update.Flags3.rygh_hglx, 3, DateTime.Now.AddMinutes(25));
//PacketHandler.CheckCommand10(new Message("@addflags2 22",client);
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Claimed The Prize " + ServerRates.Tops + " CPs & & Box Great Prizes For Win The Top NOHp 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 == 1111)
{
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:24 to xx:40");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
public static readonly System.Collections.Generic.List<ushort> NoHp = new System.Collections.Generic.List<ushort> {
1238,1858,1111
};
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| شرح ازاي تعمل دومين مجاني | محمودمحمدسالم | البرامج والودرات | 29 | 2021-02-13 11:52 PM |
| ازاى تعمل ايتم ( شنطه ) بتدى ايتمات لسيرفرك | Hazem | تطوير سيرفرات كونكر | 11 | 2021-02-06 01:42 PM |
| ازاي تعمل مهمة يوميه زي السيرفرات الكبيره | M.H.B[X-Coder]X | تطوير سيرفرات كونكر | 8 | 2020-09-12 04:16 AM |
| ازاى تعمل ارض لتجميع السى بى اس للناس الفى اى بى | Ahmeed Sheeko | تطوير سيرفرات كونكر | 3 | 2019-08-13 03:28 PM |
| تعلم ازاي تغير شكل Effect NPC | Hazem | تطوير سيرفرات كونكر | 0 | 2019-04-23 02:05 PM |