المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كوستة الدونشين بطريقه جديده


محمد ياسر
2019-06-19, 11:21 AM
السلام عليكم ورحمة الله وبركاته
مسئولين واعضاء وزوار منتدي اكواد
اقدم لكم اليوم كويسته دونشين بطريقه جديده
شرح الكوسته
الفكرة عموما سهله وكويسه.
الفكرة عباره عنـ .. الكينوج .. البرناسات .. الدوكات.
بتبدا الدقيقه 50 وبتنتهي 56 للكونوج والبرناست 55 والدوكات 54
كل واحد منهم اول ما الكويسته تبدا يخش في ماب لوحدو.
وايلي بيموت من الكنوج بيصحي في ماب البرنسات ولو مات تاني بيصحي عند الدوكات.
والكلام دا للكل يعني لو برنس مات وهو في خريطه البرنسات بيصحي مع الدوكات.. بس لو مات اي حد في ماب الدوكات بيصحي التون.. ولما الدقيقه تيجي 00 بيخرجو كلهم بره التون سيتي علشان الكويسه ايلي بعدها.
المهم لما الكينج او البرنس يكون في ماب البرنسات وخلاص محدش غيرو جوة ولازم تكون الدقيقه اكبر من 50 واقل من 54 وبيختار لو عاوز تخرج وتاخد هديك والكلام دا مع البرنات والدوكات بس ولو عاوز تقابل الكنوج.
فا لو عاوز يقابل الكنوج بيقابلهم ولو مات تاني والدقيقه 56 مش هينفع يخش للكنوج تاني خلاص والاخر في مابه الكنوج او ان كان رانكو بياخد الجايزة.
ياريت تكون الكويسته عجبتكو.
التركيب
اول حاجه الان بي سيهات..
#region Champions PK
#region Champions PKWAR
case 54230:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Champions PKWar?.");
dialog.Option("Send Me King Island.", 1);
dialog.Option("Send Me Prince Island.", 2);
dialog.Option("Send Me Duck Island.", 3);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (client.Entity.NobilityRank == NobilityRank.King)
{
if (Now64.Minute >= 50 && Now64.Minute <= 53)
{
client.Entity.Teleport(3691, 51, 51);
#region Effects
_String str = new _String(true);
str.UID = client.Entity.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("end_task");
client.SendScreen(str, true);
#endregion
}
}
else
{
dialog.Text("Champions PkWar is held during xx:50 to xx:53 you have 2 min to signup or You are not King.");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 2:
{
DateTime Now64 = DateTime.Now;
if (client.Entity.NobilityRank == NobilityRank.Prince)
{
if (Now64.Minute >= 50 && Now64.Minute <= 53)
{
client.Entity.Teleport(3692, 51, 51);
#region Effects
_String str = new _String(true);
str.UID = client.Entity.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("end_task");
client.SendScreen(str, true);
#endregion
}
}
else
{
dialog.Text("Champions PkWar is held during xx:50 to xx:53 you have 2 min to signup or You are not Prince.");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
case 3:
{
DateTime Now64 = DateTime.Now;
if (client.Entity.NobilityRank == NobilityRank.Duke)
{
if (Now64.Minute >= 50 && Now64.Minute <= 53)
{
client.Entity.Teleport(3693, 51, 51);
#region Effects
_String str = new _String(true);
str.UID = client.Entity.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("end_task");
client.SendScreen(str, true);
#endregion
}
}
else
{
dialog.Text("Champions PkWar is held during xx:50 to xx:53 you have 2 min to signup or You are not Duke.");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Champions KingPrize
case 3691:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim King of Kings Prize? Yeah!!");
dialog.Option("Champion prize", 1);
dialog.Option("I don't care.", 0xff);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Minute >= 56 && DateTime.Now.Minute <= 59)
{
Conquer_Online_Server.Game.ConquerStructures.Daily .CheackAlive22();
if (Conquer_Online_Server.Game.ConquerStructures.Dail y.howmanyinmap22 == 1)
{
client.Entity.AddTopStatus(Update.Flags.MonthlyPKC hampion, DateTime.Now.AddMinutes(30));
client.Entity.ConquerPoints += 200000;
Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has Claimed King Prize 200,000 CP's in Server UnReal-Online.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 429, 378);
}
else
{
dialog.Text("Sorry, Must be (1) Alive in this map.");
dialog.Option("Okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Champion King of kings you can get prize at xx:56.");
dialog.Option("Okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Champions PrincePrize
case 3692:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim Prince Prize? Yeah!!");
dialog.Option("Prince prize.", 1);
dialog.Option("i want Face Kings.", 2);
dialog.Option("No, thanks.", 0xff);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Minute >= 56 && DateTime.Now.Minute <= 59)
{
Conquer_Online_Server.Game.ConquerStructures.Daily .CheackAlive23();
if (Conquer_Online_Server.Game.ConquerStructures.Dail y.howmanyinmap23 == 1)
{
client.Entity.ConquerPoints += 100000;
Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has Claimed Prince Prize 100,000 CP's in Server UnReal-Online.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 429, 378);
}
else
{
dialog.Text("Sorry, Must be (1) Alive in this map.");
dialog.Option("Okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Champion Prince you can get prize at xx:54.");
dialog.Option("Okay", 255);
dialog.Send();
break;
}
break;
}
case 2:
{
if (DateTime.Now.Minute >= 53 && DateTime.Now.Minute <= 55)
{
Conquer_Online_Server.Game.ConquerStructures.Daily .CheackAlive23();
if (Conquer_Online_Server.Game.ConquerStructures.Dail y.howmanyinmap23 == 1)
{
client.Entity.Teleport(3691, 051, 051);
}
}
else
{
dialog.Text("Sorry should be (1) in Prince Map.or You, can face Princes at xx:54.");
dialog.Option("Okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Champions DukePrize
case 3693:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim Duke Prize? Yeah!!");
dialog.Option("Duke prize.", 1);
dialog.Option("i Want Face Princes.", 2);
dialog.Option("No, thanks.", 0xff);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Minute >= 54 && DateTime.Now.Minute <= 59)
{
Conquer_Online_Server.Game.ConquerStructures.Daily .CheackAlive24();
if (Conquer_Online_Server.Game.ConquerStructures.Dail y.howmanyinmap24 == 1)
{
client.Entity.ConquerPoints += 50000;
Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has Claimed Duke Prize 50,000 CP's in Server UnReal-Online.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 429, 378);
}
else
{
dialog.Text("Sorry, Must be (1) Alive in this map.");
dialog.Option("Okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Champion Prince you can get prize at xx:54.");
dialog.Option("Okay", 255);
dialog.Send();
break;
}
break;
}
case 2:
{
if (DateTime.Now.Minute >= 53 && DateTime.Now.Minute <= 55)
{
Conquer_Online_Server.Game.ConquerStructures.Daily .CheackAlive24();
if (Conquer_Online_Server.Game.ConquerStructures.Dail y.howmanyinmap24 == 1)
{
client.Entity.Teleport(3692, 051, 051);
}
}
else
{
dialog.Text("Sorry should be (1) in Duke Map.or You, can face Princes at xx:54.");
dialog.Option("Okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#endregion


ودا الاتو انفينت. world
#region Champions PKWAR
if ((Now64.Minute == 50) && (Now64.Second == 01))
{
if ((Now64.Minute == 50) && (Now64.Second == 01))
{
client.MessageBox("Champions PKWAR has begun! Would you like to join?",
(p) => { p.Entity.Teleport(1002, 388, 377); }, null, 60);
}
}
if ((Now64.Minute == 00) && (Now64.Second == 00))
{
if (client.Map.ID == 3691)
{
client.Entity.Teleport(1002, 400, 400);
}
}
if ((Now64.Minute == 50) && (Now64.Second == 00))
{
if (client.Map.ID == 2525)
{
client.Entity.Teleport(1002, 388, 377);
}
}
if ((Now64.Minute == 20) && (Now64.Second == 00))
{
if (client.Map.ID == 2626)
{
client.Entity.Teleport(1002, 448, 363);
}
}
if ((Now64.Minute == 00) && (Now64.Second == 00))
{
if (client.Map.ID == 3692)
{
client.Entity.Teleport(1002, 400, 400);
}
}
if ((Now64.Minute == 00) && (Now64.Second == 00))
{
if (client.Map.ID == 3693)
{
client.Entity.Teleport(1002, 400, 400);
}
}
#endregion


وتبحث عن الكود دا في ملف PacketHandler.cs
else if (client.Entity.MapID == 7777)

وفوقو علطول هنضيف الكود دا
else if (client.Entity.MapID == 3691)
{
client.Entity.Teleport(3692, 051, 051);
}
else if (client.Entity.MapID == 3692)
{
client.Entity.Teleport(3693, 051, 051);
}

ودا الاني بي سي في النفي كات
افتح ملف npcs من النفي كات وضيف دول
3692 0 0 ChampionsPrince 2 1990 -1 3692 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3691 0 0 ChampionsKing 2 1990 -1 3691 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3693 0 0 ChampionsDuck 2 1990 -1 3693 50 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
54230 0 0 CritiCanPkIn 2 5547 -1 1002 386 377 4017200 0 0 0 0 0 0 0 0 0 0 0 None 0 0 0 0 0 0

وافتح ملف maps في النفي كات وضويف دول
3691 1013 65544 7
3692 700 65544 7
3693 1004 65544 7

افتح ملف Constants.cs
وابحث عن
public static readonly System.Collections.Generic.List<ushort> PKFreeMaps = new System.Collections.Generic.List<ushort>()

وضيف دول تحت اي رقم بس مش في الاخر خالص
3691,
3692,
3693,

هتفتح ملف PacketHandler.cs
تدور علي.
public static void LoginMessages(Client.GameClient client)

وي تحت اول كوس ضيف الكود دا
if (client.Entity.MapID == 3691 || client.Entity.MapID == 3693 || client.Entity.MapID == 3692) client.Entity.Teleport(1002, 429, 378);

وبعدين افتح ملف Daily
ابحث علي
public static int howmanyinmap = 0;

وضيف تحتيها دول
public static int howmanyinmap22 = 0;
public static int howmanyinmap23 = 0;
public static int howmanyinmap24 = 0;

وابحث عن
public static void CheackAlive()

واقفلو من السالب وضيف دول تحتو
public static void CheackAlive22()
{
howmanyinmap22 = 0;
foreach (Client.GameClient client in Program.GamePool)
{
if (client.Entity.MapID == 3691 && client.Entity.Hitpoints >= 1)
{
howmanyinmap22 += 1;
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Players Alive in Champions King of Kings Now: " + howmanyinmap22 + " ", System.Drawing.Color.Black, Conquer_Online_Server.Network.GamePackets.Message. FirstRightCorner), Program.GamePool);
}
}
}
public static void CheackAlive24()
{
howmanyinmap24 = 0;
foreach (Client.GameClient client in Program.GamePool)
{
if (client.Entity.MapID == 3693 && client.Entity.Hitpoints >= 1)
{
howmanyinmap24 += 1;
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Players Alive in Champions Duke Now: " + howmanyinmap24 + " ", System.Drawing.Color.Black, Conquer_Online_Server.Network.GamePackets.Message. FirstRightCorner), Program.GamePool);
}
}
}
public static void CheackAlive23()
{
howmanyinmap23 = 0;
foreach (Client.GameClient client in Program.GamePool)
{
if (client.Entity.MapID == 3692 && client.Entity.Hitpoints >= 1)
{
howmanyinmap23 += 1;
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Players Alive in Champions Prince Now: " + howmanyinmap23 + " ", System.Drawing.Color.Black, Conquer_Online_Server.Network.GamePackets.Message. FirstRightCorner), Program.GamePool);
}
}
}


انتهت ومبروك عليك

ahmedfarouk
2023-07-27, 03:33 AM
تسلم

karem1q
2023-10-09, 07:29 AM
Nice