|
المشاركات 1,941 |
+التقييم 0.96 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
public static int skullinmap;
public static int ninjainmap;
public uint GeVaRa_tomm210;
public void SendScoreVs(GameClient client)
{
for (uint x = 1; x < 3; x++)
{
string Mesage = "";
skullinmap = 0;
ninjainmap = 0;
foreach (GameClient clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 6413)
{
if (clients.Entity.ContainsFlag3(Network.GamePackets.Update.Flags3.skull) && !clients.Entity.Dead)
skullinmap++;
else if (clients.Entity.ContainsFlag3(Network.GamePackets.Update.Flags3.ninja) && !clients.Entity.Dead)
ninjainmap++;
}
}
if (x == 1)
Mesage = "Skull Team Alive Player.: " + skullinmap + "";
else
Mesage = "ninja Team Alive Player.: " + ninjainmap + "";
Message msg = new Message(Mesage, System.Drawing.Color.Red, x == 1 ? Message.FirstRightCorner : Message.ContinueRightCorner);
client.Send(msg);
}
}
public void Die(Entity killer)
{
#region Ninja Vs Skull
if (this.MapID == 6413 && killer.MapID == 6413)
{
if (World.SkullVsNinja == true)
{
if (killer.ContainsFlag3(Network.GamePackets.Update.Flags3.ninja) && this.ContainsFlag3(Network.GamePackets.Update.Flags3.skull))
{
killer.Owner.Send(new Message("Grtz You Got " + 2000 + " cps From kill skull Team member ", System.Drawing.Color.Red, Message.Talk));
killer.ConquerPoints += (uint)2000;
}
else if (killer.ContainsFlag3(Network.GamePackets.Update.Flags3.skull) && this.ContainsFlag3(Network.GamePackets.Update.Flags3.ninja))
{
killer.Owner.Send(new Message("Grtz You Got " + 2000 + " cps From kill skull Team member ", System.Drawing.Color.Red, Message.Talk));
killer.ConquerPoints += (uint)2000;
}
else if (killer.ContainsFlag3(Network.GamePackets.Update.Flags3.skull) && this.ContainsFlag3(Network.GamePackets.Update.Flags3.skull))
{
if (killer.ConquerPoints >= 2000)
{
killer.Owner.Send(new Message("You Lose 50 cps Cuz You KIll Team Member ", System.Drawing.Color.Red, Message.Talk));
killer.ConquerPoints -= (uint)2000;
}
else
{
Owner.Send(new Message("You out cuz u kill Team member and not hvae cps", System.Drawing.Color.Red, Message.Talk));
killer.Teleport(1002, 301, 281);
killer.ConquerPoints -= killer.ConquerPoints;
}
}
else if (killer.ContainsFlag3(Network.GamePackets.Update.Flags3.ninja) && this.ContainsFlag3(Network.GamePackets.Update.Flags3.ninja))
{
if (killer.ConquerPoints >= 2000)
{
killer.Owner.Send(new Message("You Lose 50 cps Cuz You KIll Team Member ", System.Drawing.Color.Red, Message.Talk));
killer.ConquerPoints -= (uint)2000;
}
else
{
killer.Owner.Send(new Message("You out cuz u kill Team member and not hvae cps", System.Drawing.Color.Red, Message.Talk));
killer.Teleport(1002, 301, 281);
killer.ConquerPoints = 0;
}
}
foreach (GameClient client in Kernel.GamePool.Values)
{
if (client.Entity.MapID == 6413)
{
SendScoreVs(client);
}
}
}
}
#endregion
public static bool ChangeFlag { get; set; }
public class Flags3
{
public const uint
skull = (uint)1UL << 4,
ninja = (uint)1UL << 3,
public static bool SkullVsNinja { get; set; }
private void WorldTournaments(int time)
{
#region NinjaVSSkull
if (DateTime.Now.Minute == 35 && DateTime.Now.Second == 1)
{
World.SkullVsNinja = true;
foreach (var client in Program.GamePool)
client.MessageBox("NinjaVSSkull IS Work Join Now and Get Houner For Ur Team Get a lot off CPS ",
p => { p.Entity.Teleport(1002, 285, 360); }, null);
}
if (DateTime.Now.Minute == 40 && SkullVsNinja)
{
World.SkullVsNinja = false;
}
#endregion
#region SkullVsNinja Fight
case 16414:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello " + client.Entity.Name + " This Is Skull Team Vs Ninja Team join now And Get Honer For Ur Team");
dialog.Option("let me join", 1);
break;
}
case 1:
if (World.SkullVsNinja == true)
{
if (Program.ChangeFlag)
{
Program.ChangeFlag = false;
client.Entity.Teleport(6413, 50, 50);
client.Entity.AddFlag3(Network.GamePackets.Update.Flags3.skull);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Network.GamePackets.Data(true) { UID = client.Entity.UID, ID = Network.GamePackets.Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
}
else
{
Program.ChangeFlag = true;
client.Entity.Teleport(6413, 50, 50);
client.Entity.AddFlag3(Network.GamePackets.Update.Flags3.ninja);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Network.GamePackets.Data(true) { UID = client.Entity.UID, ID = Network.GamePackets.Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
}
}
else
{
dialog.Text("This is not the right time Come Later at xx:35");
dialog.Option("okay", 255);
dialog.Send();
}
break;
}
break;
}
#region SkullVsNinja Fight Winer
case 16415:
{
switch (npcRequest.OptionID)
{
case 0:
{
client.Entity.SendScoreVs(client);
dialog.Text("Hello " + client.Entity.Name + " Skull Team In Map : " + Entity.skullinmap + "Ninja Team In Map : " + Entity.ninjainmap + "");
dialog.Option("Give ME My Prize", 1);
dialog.Send();
break;
}
case 1:
if (World.SkullVsNinja == false)
{
client.Entity.SendScoreVs(client);
if (Entity.skullinmap > 0 && Entity.ninjainmap == 0)
{
client.Entity.GeVaRa_tomm210++;
client.Entity.Teleport(1002, 301, 278);
client.Entity.ConquerPoints += (uint)(50000 / Entity.skullinmap);
client.Send(new Message("Grtz You Got" + (50000 / Entity.skullinmap) + "cps ", System.Drawing.Color.Red, Message.TopLeft));
}
else if (Entity.ninjainmap > 0 && Entity.skullinmap == 0)
{
client.Entity.GeVaRa_tomm210++;
client.Entity.ConquerPoints += (uint)(50000 / Entity.ninjainmap);
client.Entity.Teleport(1002, 301, 278);
client.Send(new Message("Grtz You Got" + (50000 / Entity.ninjainmap) + "cps ", System.Drawing.Color.Red, Message.TopLeft));
}
else if (Entity.skullinmap != 0 && Entity.ninjainmap != 0)
{
if (client.Entity.ContainsFlag3(Network.GamePackets.Update.Flags3.ninja))
dialog.Text("War Not Finesh Yet You Most Kill all Skull Team In Map There : " + Entity.skullinmap + " Skull Team Player");
else if (client.Entity.ContainsFlag3(Network.GamePackets.Update.Flags3.skull))
dialog.Text("War Not Finesh Yet You Most Kill all ninja Team In Map There : " + Entity.ninjainmap + " Skull Team Player");
dialog.Send();
}
}
else
{
dialog.Text("This is not the right time Come Later at xx:40");
dialog.Option("okay", 255);
dialog.Send();
}
break;
}
break;
}
#endregion
#endregion
6413 1017 7 0
16414 0 SkullVsNinja 0 2 29320 -1 1002 285 357 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
16415 0 SkullVsNinjawin 0 2 29320 -1 6413 54 46 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
هيفوتك نص عمرك Interface PSD مجاني من فريق Team Back8 | ahmedfathy | تطوير سيرفرات كونكر | 96 | اليوم 07:35 PM |
سورس زمان المحاربين لاول مره نسخة عربي مقدمه من فريق #Team_Back8 | ahmedfathy | سورسات كونكر | 155 | 2024-10-26 06:09 PM |
سورس ثري دي عربي وانجليزي هدية من فريق Back 8 | ahmedfathy | سورسات كونكر | 64 | 2024-10-09 05:26 AM |
مابة جديد مش مع حد اول مره هتشوفها في حياتك مقدم من فريق Team Back8 | ahmedfathy | تطوير سيرفرات كونكر | 99 | 2024-09-02 04:04 AM |
سيستم كوستة وحوش يوميه كوستت Code Winner | M.H.B[X-Coder]X | تطوير سيرفرات كونكر | 29 | 2024-03-23 12:34 AM |