|
المشاركات 1,940 |
+التقييم 0.95 |
تاريخ التسجيل Apr 2019 |
الاقامة https://www.facebook.com/daany |
نظام التشغيل |
رقم العضوية 1 |
if (client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Entity.Dead && req.OptionID == 122 && client.Map.BaseID != 700 && client.Entity.invite)
#region PoleWar
//TwinCity
if (client.Map.BaseID != 6001 && !client.Entity.Dead && req.OptionID == 162)
{
_String str = new _String(true);
str.UID = client.Entity.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("good");
client.Entity.Owner.SendScreen(str, true);
client.Entity.Teleport(1002, 431, 383);
}
//Ape
if (client.Map.BaseID != 6001 && !client.Entity.Dead && req.OptionID == 164)
{
_String str = new _String(true);
str.UID = client.Entity.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("good");
client.Entity.Owner.SendScreen(str, true);
client.Entity.Teleport(1020, 566, 594);
}
//Desert
if (client.Map.BaseID != 6001 && !client.Entity.Dead && req.OptionID == 165)
{
_String str = new _String(true);
str.UID = client.Entity.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("good");
client.Entity.Owner.SendScreen(str, true);
client.Entity.Teleport(1000, 472, 654);
}//BirdIsland
if (client.Map.BaseID != 6001 && !client.Entity.Dead && req.OptionID == 166)
{
_String str = new _String(true);
str.UID = client.Entity.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("good");
client.Entity.Owner.SendScreen(str, true);
client.Entity.Teleport(1015, 733, 627);
}
//End
if (client.Map.BaseID != 6001 && !client.Entity.Dead && req.OptionID == 167)
{
/*_String str = new _String(true);
str.UID = client.Entity.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("good");
client.Entity.Owner.SendScreen(str, true);
client.Entity.Teleport(1000, 472, 654);*/
}
#endregion //Kimo-Team HourseRace
public static void ReceiveAttack(Entity attacker, SobNpcSpawn attacked, Attack attack, uint damage, SpellInformation spell)
#region PoleWar
foreach (Client.GameState client in Program.Values)
{//TwinCity
if ((attacker.MapID == 1002) && (attacked.UID == 79920))
{
ISobNpc sobNpcSpawn2 = new SobNpcSpawn();
if (attacked.Hitpoints == 0)
return;
if (attacked.Hitpoints <= damage)
{
ISobNpc sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = 79920;
sobNpcSpawn.Mesh = 1137;
sobNpcSpawn.ShowName = true;
sobNpcSpawn.Type = Enums.NpcType.Pole;
sobNpcSpawn.X = (ushort)(900 - 1);
sobNpcSpawn.Y = (ushort)(900 - 1);
sobNpcSpawn.MaxHitpoints = 2000000;
sobNpcSpawn.Hitpoints = (uint)Program.int_4;
sobNpcSpawn.Sort = 17;
sobNpcSpawn.Name = "Twin ~ Pole ";
sobNpcSpawn.MapID = 1002;
attacker.ConquerPoints += 500000;
Kernel.SendWorldMessage(new Message("Gratz " + attacker.Name + " Has Killed " + sobNpcSpawn.Name + " and Won 500k Cps !", System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Entity poleKeeping = attacker;
sobNpcSpawn.SendSpawn(client);
Program.bool_10 = false;
Program.bool_1 = true;
NpcReply reply = new NpcReply(6, "ApeCity Pole has just Spawned !");
reply.OptionID = 164;
client.Send(reply.ToArray());
}
Program.int_4 = (int)(Program.int_4 - damage);
}
if ((attacker.MapID == 1020) && (attacked.UID == 80920))
{
ISobNpc sobNpcSpawn2 = new SobNpcSpawn();
if (attacked.Hitpoints == 0)
return;
if (attacked.Hitpoints <= damage)
{
ISobNpc sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = 80920;
sobNpcSpawn.Mesh = 1137;
sobNpcSpawn.ShowName = true;
sobNpcSpawn.Type = Enums.NpcType.Pole;
sobNpcSpawn.X = (ushort)(900 - 1);
sobNpcSpawn.Y = (ushort)(900 - 1);
sobNpcSpawn.MaxHitpoints = 2000000;
sobNpcSpawn.Hitpoints = (uint)Program.int_5;
sobNpcSpawn.Sort = 17;
sobNpcSpawn.Name = "Ape ~ Pole ";
sobNpcSpawn.MapID = 1020;
attacker.ConquerPoints += 500000;
Kernel.SendWorldMessage(new Message("Gratz " + attacker.Name + " Has Killed " + sobNpcSpawn.Name + " and Won 500k Cps !", System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Entity poleKeeping = attacker;
sobNpcSpawn.SendSpawn(client);
Program.bool_1 = false;
Program.bool_2 = true;
NpcReply reply = new NpcReply(6, "DesertCity Pole has just Spawned !");
reply.OptionID = 165;
client.Send(reply.ToArray());
}
Program.int_5 = (int)(Program.int_5 - damage);
}
if ((attacker.MapID == 1000) && (attacked.UID == 81920))
{
ISobNpc sobNpcSpawn2 = new SobNpcSpawn();
if (attacked.Hitpoints == 0)
return;
if (attacked.Hitpoints <= damage)
{
ISobNpc sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = 81920;
sobNpcSpawn.Mesh = 1137;
sobNpcSpawn.ShowName = true;
sobNpcSpawn.Type = Enums.NpcType.Pole;
sobNpcSpawn.X = (ushort)(900 - 1);
sobNpcSpawn.Y = (ushort)(900 - 1);
sobNpcSpawn.MaxHitpoints = 2000000;
sobNpcSpawn.Hitpoints = (uint)Program.int_6;
sobNpcSpawn.Sort = 17;
sobNpcSpawn.Name = "Desert ~ Pole ";
sobNpcSpawn.MapID = 1000;
attacker.ConquerPoints += 500000;
Kernel.SendWorldMessage(new Message("Gratz " + attacker.Name + " Has Killed " + sobNpcSpawn.Name + " and Won 500k Cps !", System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Entity poleKeeping = attacker;
sobNpcSpawn.SendSpawn(client);
Program.bool_2 = false;
Program.bool_3 = true;
NpcReply reply = new NpcReply(6, "BirdCity Pole has just Spawned !");
reply.OptionID = 166;
client.Send(reply.ToArray());
}
Program.int_6 = (int)(Program.int_6 - damage);
}
if ((attacker.MapID == 1015) && (attacked.UID == 82920))
{
ISobNpc sobNpcSpawn2 = new SobNpcSpawn();
if (attacked.Hitpoints == 0)
return;
if (attacked.Hitpoints <= damage)
{
ISobNpc sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = 82920;
sobNpcSpawn.Mesh = 1137;
sobNpcSpawn.ShowName = true;
sobNpcSpawn.Type = Enums.NpcType.Pole;
sobNpcSpawn.X = (ushort)(900 - 1);
sobNpcSpawn.Y = (ushort)(900 - 1);
sobNpcSpawn.MaxHitpoints = 5000000;
sobNpcSpawn.Hitpoints = (uint)Program.int_7;
sobNpcSpawn.Sort = 17;
sobNpcSpawn.Name = "Bird ~ Pole ";
sobNpcSpawn.MapID = 1015;
attacker.ConquerPoints += 500000;
Kernel.SendWorldMessage(new Message("Gratz " + attacker.Name + " Has Killed " + sobNpcSpawn.Name + " and Won 500k Cps !", System.Drawing.Color.Black, 0x7db), Kernel.GamePool.Values);
Entity poleKeeping = attacker;
sobNpcSpawn.SendSpawn(client);
Program.bool_3 = false;
NpcReply reply = new NpcReply(6, "PoleWar has just Ended, Come again Tomorrow <MOhaa>!");
reply.OptionID = 167;
client.Send(reply.ToArray());
}
Program.int_7 = (int)(Program.int_7 - damage);
}
}
#endregion
#region Last Man Stand
#region PoleWar
if (DateTime.Now.Minute == 10 && DateTime.Now.Second == 00)
{//1.03PM
NpcReply reply18 = new NpcReply(6, "TwinCity Pole has just Spawned !");
reply18.OptionID = 162;
state.Send(reply18.ToArray());
Program.bool_10 = true;
Program.bool_1 = false;
Program.bool_2 = false;
Program.bool_3 = false;
Program.int_4 = 19912065;
Program.int_5 = 19912065;
Program.int_6 = 19912065;
Program.int_7 = 19912065;
}
//if (DateTime.Now.Hour == 16 && DateTime.Now.Minute == 03 && DateTime.Now.Second == 00)
//{//4.03PM
// NpcReply reply17 = new NpcReply(6, "TwinCity Pole has just Spawned !");
// reply17.OptionID = 162;
// state.Send(reply17.ToArray());
// Program.bool_10 = true;
// Program.bool_1 = false;
// Program.bool_2 = false;
// Program.bool_3 = false;
// Program.int_4 = 19912065;
// Program.int_5 = 19912065;
// Program.int_6 = 19912065;
// Program.int_7 = 19912065;
//}
//if (DateTime.Now.Hour == 19 && DateTime.Now.Minute == 03 && DateTime.Now.Second == 00)
//{//7.03PM
// NpcReply reply16 = new NpcReply(6, "TwinCity Pole has just Spawned !");
// reply16.OptionID = 162;
// state.Send(reply16.ToArray());
// Program.bool_10 = true;
// Program.bool_1 = false;
// Program.bool_2 = false;
// Program.bool_3 = false;
// Program.int_4 = 19912065;
// Program.int_5 = 19912065;
// Program.int_6 = 19912065;
// Program.int_7 = 19912065;
//}
//if (DateTime.Now.Hour == 22 && DateTime.Now.Minute == 03 && DateTime.Now.Second == 00)
//{//10.03PM
// NpcReply reply15 = new NpcReply(6, "TwinCity Pole has just Spawned !");
// reply15.OptionID = 162;
// state.Send(reply15.ToArray());
// Program.bool_10 = true;
// Program.bool_1 = false;
// Program.bool_2 = false;
// Program.bool_3 = false;
// Program.int_4 = 19912065;
// Program.int_5 = 19912065;
// Program.int_6 = 19912065;
// Program.int_7 = 19912065;
//}
//if (DateTime.Now.Hour == 12 && DateTime.Now.Minute == 03 && DateTime.Now.Second == 00)
//{//12.03AM
// NpcReply reply14 = new NpcReply(6, "TwinCity Pole has just Spawned !");
// reply14.OptionID = 162;
// state.Send(reply14.ToArray());
// Program.bool_10 = true;
// Program.bool_1 = false;
// Program.bool_2 = false;
// Program.bool_3 = false;
// Program.int_4 = 19912065;
// Program.int_5 = 19912065;
// Program.int_6 = 19912065;
// Program.int_7 = 19912065;
//}
//if (DateTime.Now.Hour == 4 && DateTime.Now.Minute == 03 && DateTime.Now.Second == 00)
//{//4.03AM
// NpcReply reply13 = new NpcReply(6, "TwinCity Pole has just Spawned !");
// reply13.OptionID = 162;
// state.Send(reply13.ToArray());
// Program.bool_10 = true;
// Program.bool_1 = false;
// Program.bool_2 = false;
// Program.bool_3 = false;
// Program.int_4 = 19912065;
// Program.int_5 = 19912065;
// Program.int_6 = 19912065;
// Program.int_7 = 19912065;
//}
//if (DateTime.Now.Hour == 7 && DateTime.Now.Minute == 03 && DateTime.Now.Second == 00)
//{//7.03AM
// NpcReply reply12 = new NpcReply(6, "TwinCity Pole has just Spawned !");
// reply12.OptionID = 162;
// state.Send(reply12.ToArray());
// Program.bool_10 = true;
// Program.bool_1 = false;
// Program.bool_2 = false;
// Program.bool_3 = false;
// Program.int_4 = 19912065;
// Program.int_5 = 19912065;
// Program.int_6 = 19912065;
// Program.int_7 = 19912065;
//}
//if (DateTime.Now.Hour == 18 && DateTime.Now.Minute == 03 && DateTime.Now.Second == 00)
//{//10.03AM
// NpcReply reply11 = new NpcReply(6, "TwinCity Pole has just Spawned !");
// reply11.OptionID = 162;
// state.Send(reply11.ToArray());
// Program.bool_10 = true;
// Program.bool_1 = false;
// Program.bool_2 = false;
// Program.bool_3 = false;
// Program.int_4 = 19912065;
// Program.int_5 = 19912065;
// Program.int_6 = 19912065;
// Program.int_7 = 19912065;
//}
//TwinCity
if (Program.bool_10 && ServerBase.Kernel.Maps.ContainsKey(1002))
{
ISobNpc sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = 79920;
sobNpcSpawn.Mesh = 1137;
sobNpcSpawn.ShowName = true;
sobNpcSpawn.Type = Enums.NpcType.Pole;
sobNpcSpawn.X = 427;
sobNpcSpawn.Y = 379;
sobNpcSpawn.MaxHitpoints = 2000000;
sobNpcSpawn.Hitpoints = (uint)Program.int_4;
sobNpcSpawn.Sort = 17;
sobNpcSpawn.Name = "Twin ~ Pole ";
sobNpcSpawn.MapID = 1002;
sobNpcSpawn.SendSpawn(state);
}
//ApeCity
if (Program.bool_1 && ServerBase.Kernel.Maps.ContainsKey(1020))
{
ISobNpc sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = 80920;
sobNpcSpawn.Mesh = 1137;
sobNpcSpawn.ShowName = true;
sobNpcSpawn.Type = Enums.NpcType.Pole;
sobNpcSpawn.X = 568;
sobNpcSpawn.Y = 591;
sobNpcSpawn.MaxHitpoints = 2000000;
sobNpcSpawn.Hitpoints = (uint)Program.int_5;
sobNpcSpawn.Sort = 17;
sobNpcSpawn.Name = "Ape ~ Pole ";
sobNpcSpawn.MapID = 1020;
sobNpcSpawn.SendSpawn(state);
}
//DeserCity
if (Program.bool_2 && ServerBase.Kernel.Maps.ContainsKey(1000))
{
ISobNpc sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = 81920;
sobNpcSpawn.Mesh = 1137;
sobNpcSpawn.ShowName = true;
sobNpcSpawn.Type = Enums.NpcType.Pole;
sobNpcSpawn.X = 469;
sobNpcSpawn.Y = 655;
sobNpcSpawn.MaxHitpoints = 2000000;
sobNpcSpawn.Hitpoints = (uint)Program.int_6;
sobNpcSpawn.Sort = 17;
sobNpcSpawn.Name = "Desert ~ Pole ";
sobNpcSpawn.MapID = 1000;
sobNpcSpawn.SendSpawn(state);
}
//BirdIsland
if (Program.bool_3 && ServerBase.Kernel.Maps.ContainsKey(1015))
{
ISobNpc sobNpcSpawn = new SobNpcSpawn();
sobNpcSpawn.UID = 82920;
sobNpcSpawn.Mesh = 1137;
sobNpcSpawn.ShowName = true;
sobNpcSpawn.Type = Enums.NpcType.Pole;
sobNpcSpawn.X = 734;
sobNpcSpawn.Y = 632;
sobNpcSpawn.MaxHitpoints = 5000000;
sobNpcSpawn.Hitpoints = (uint)Program.int_7;
sobNpcSpawn.Sort = 17;
sobNpcSpawn.Name = "Bird ~ Pole ";
sobNpcSpawn.MapID = 1015;
sobNpcSpawn.SendSpawn(state);
}
#endregion
public static MemoryCompressor MCompressor = new MemoryCompressor();
public static bool bool_10;//TwinCity Pole
public static bool bool_1;//ApeCity Pole
public static bool bool_2;//DesertCity Pole
public static bool bool_3;//BirdIsland Pole
public static int int_4;//TwinCityPole HitPoints
public static int int_5;//ApeCityPole HitPoints
public static int int_6;//DesertCityPole HitPoints
public static int int_7;//BirdIslandPole HitPoints
namespace Conquer_Online_Server.Interfaces{
using Conquer_Online_Server.Client;
using Conquer_Online_Server.Game;
using System;
public interface ISobNpc
{
void SendSpawn(GameState Client);
uint Hitpoints { get; set; }
ushort MapID { get; set; }
uint MaxHitpoints { get; set; }
ushort Mesh { get; set; }
string Name { get; set; }
ushort Sort { get; set; }
bool ShowName { get; set; }
Enums.NpcType Type { get; set; }
uint UID { get; set; }
ushort X { get; set; }
ushort Y { get; set; }
}
}
public enum NpcType : byte
Pole = 10,
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
كوست كتب cps | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2023-10-09 07:31 AM |
حرب البولات | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2023-07-21 01:39 PM |
لاول مره علي الانترنت كوست TowerOfMystery | Hassan Emprator | تطوير سيرفرات كونكر | 9 | 2019-10-30 09:47 PM |
كوست بتل وار بتل بور | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-06-25 10:42 PM |
كوست Emperor War | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-05-07 12:41 PM |