|
المشاركات 1,940 |
+التقييم 0.95 |
تاريخ التسجيل Apr 2019 |
الاقامة https://www.facebook.com/daany |
نظام التشغيل |
رقم العضوية 1 |
#region Enlightment
#region The.Goblin Race
foreach (Client.GameState Client in Kernel.GamePool.Values)
{
if ((DateTime.Now.Minute == 50) && (DateTime.Now.Second == 10))
{
cycolne = true;
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, " Champion Race Start Go and sgin up ")
{
OptionID = 0x91
};
client.Send(npc.ToArray());
}
if ((DateTime.Now.Minute == 0x33) && (DateTime.Now.Second == 0))
{
cycolne1 = true;
}
if ((DateTime.Now.Minute == 0x34) && (DateTime.Now.Second == 0))
{
cycolne1 = false;
}
if ((client.Entity.race == 1) && cycolne1)
{
client.Entity.RemoveFlag(0x4000000000000L);
client.Entity.MagicDefenderStamp = Time32.Now;
client.Entity.MagicDefenderTime = 180;
client.Entity.AddFlag(0x20000000);
client.Entity.race = 0;
Random R = new Random();
switch (R.Next(1, 2))
{
case 1:
client.Entity.Teleport(1012, 539, 539);
break;
case 2:
client.Entity.Teleport(1012, 539, 539);
break;
}
}
if (!(cycolne || (client.Entity.MapID != 1012)))
{
client.Entity.Teleport(0x3ea, 0x1b3, 0x17a);
}
if (client.Entity.ContainsFlag(0x4000000000000L) && (client.Entity.MapID == 1012))
{
client.Entity.RemoveFlag(0x4000000000000L);
}
}
#endregion
public static bool connec = false;
#region Cyclone War
public static bool cycolne = false;
public static bool cycolne1 = false;
#endregion Cyclone War
if (client.Entity.MapID == 1005)
{
if (client.Entity.X == 42 && client.Entity.Y == 51)//stig
#region Race The.Goblin
if (client.Entity.MapID == 1012)
{
if (((client.Entity.X == 539 && client.Entity.Y == 539) || (client.Entity.X == 533 && client.Entity.Y == 529) || (client.Entity.X == 387 && client.Entity.Y == 370) || (client.Entity.X == 366 && client.Entity.Y == 397)))
{
if (!client.Entity.ContainsFlag(Update.Flags.Ghost))
{
if (client.Entity.EntityFlag == ShekoProject.Game.EntityFlag.Player && client.Entity.MaxHitpoints != client.Entity.Hitpoints)
{
SpellUse suse = new SpellUse(true);
suse.Attacker = client.Entity.UID;
suse.SpellID = 7012;
suse.SpellLevel = 0;
suse.X = 539;
suse.X = 533;
suse.Y = 539;
suse.Y = 529;
suse.X = 366;
suse.Y = 397;
suse.X = 387;
suse.Y = 370;
suse.Targets.Add(client.Entity.UID, 0);
client.Entity.AddFlag(Update.Flags2.Aturdido);
client.Entity.AturdidoTimeStamp = DateTime.Now;
client.Entity.StigmaIncrease = 25;
client.Entity.TiempoAturdido = 20;
client.SendScreen(suse, true);
client.Send(new Message("Stupid " + client.Entity.Name + " You Will Get This for 20 Second!", System.Drawing.Color.Red, Message.Talk));
}
}
}
}
if (client.Entity.MapID == 1012)
{
if (client.Entity.X == 517 && client.Entity.Y == 528)//stig
{
if (!client.Entity.ContainsFlag(Update.Flags.Ghost))
{
if (client.Entity.EntityFlag == ShekoProject.Game.EntityFlag.Player && client.Entity.MaxHitpoints != client.Entity.Hitpoints)
{
SpellUse suse = new SpellUse(true);
suse.Attacker = client.Entity.UID;
suse.SpellID = 10360;
suse.SpellLevel = 0;
suse.X = 517;
suse.Y = 528;
suse.Targets.Add(client.Entity.UID, 0);
client.Entity.AddFlag(Update.Flags2.Congelado);
client.Entity.CongeladoTimeStamp = DateTime.Now;
client.Entity.StigmaIncrease = 25;
client.Entity.CongeladoTime = 5;
client.SendScreen(suse, true);
client.Send(new Message("Stupid " + client.Entity.Name + " You Will Stop for 5 Second !", System.Drawing.Color.Blue, Message.Talk));
}
}
}
}
#endregion The.Goblin
public static string TopPirate = "";
public static string Top2Archer = "";
TopWarrior = r.ReadString("TopWarrior");
Top2Archer = r.ReadString("Top2Archer");
public static void AddTopArcher(Client.GameState client)
public static void Add2Archer(Client.GameState client)
{
new MySqlCommand(MySqlCommandType.UPDATE).Update("flags").Set("Top2Archer", client.Entity.Name).Execute();
Top2Archer = client.Entity.Name;
}
public int _TopTrojan = 0;
public int _TopArcher2 = 0;
public int TopArcher2
{
get { return _TopArcher2; }
set
{
_TopArcher2 = value;
UpdateDatabase("TopArcher2", value);
if (value >= 1)
{
AddFlag(Network.GamePackets.Update.Flags2.Top2Archer);
}
#region New Event Frome sheko
#region Cyclone War
private uint _race;
public uint race
{
get
{
return this._race;
}
set
{
this._race = value;
}
}
#endregion
public Database.MonsterInformation MonsterInfo;
public uint TiempoAturdido = 0;
public int CongeladoTime = 0;
public int AturdidoTimeTime = 0;
public DateTime CongeladoTimeStamp;
public DateTime AturdidoTimeStamp;
if (attacked.Dead && attacker.MonsterInfo.SpellID != 1050)
return;
#region The.Goblin Attack And New Spells
#region ThrillingSpook
if (attacker.Name == "ThrillingSpook" || attacker.Name == "LavaBeast" || attacker.Name == "SwordMaster")
{
uint rand = (uint)ShekoProject.ServerBase.Kernel.Random.Next(1, 12);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 10361;
break;
case 2:
attacker.MonsterInfo.SpellID = 10362;
break;
case 3:
attacker.MonsterInfo.SpellID = 10363;
break;
case 4:
attacker.MonsterInfo.SpellID = 10364;
break;
case 5:
attacker.MonsterInfo.SpellID = 7017;
break;
default: attacker.MonsterInfo.SpellID = 0; break;
}
uint damage1 = 0;
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
// uint damage = Calculate.Melee(attacker, attacked, ref attack);
damage1 += 1270;
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage1, attacked.Hitpoints), true);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
if (DateTime.Now >= attacker.AtaqueBoss.AddSeconds(30))
{
attacker.AtaqueBoss = DateTime.Now;
suse.SpellID = 10360;
suse.SpellLevel = 0;
damage1 = damage1 + 2150;
suse.Targets.Add(attacked.UID, damage1);
if (!attacked.ContainsFlag(Update.Flags2.Congelado))
{
attacked.AddFlag(Update.Flags2.Congelado);
attacked.CongeladoTime = 15;
attacked.CongeladoTimeStamp = DateTime.Now;
attacked.AttackPacket = null;
}
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (!clients.Entity.ContainsFlag(Update.Flags2.Congelado))
{
clients.Entity.AddFlag(Update.Flags2.Congelado);
clients.Entity.CongeladoTime = 15;
clients.Entity.CongeladoTimeStamp = DateTime.Now;
clients.Entity.AttackPacket = null;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
}
}
}
if (attacked.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 10360)
{
if (Kernel.Rate(attacked.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(attacked.UID, SpellUse.EffectValue.WaterResist);
}
}
}
if (suse.SpellID != 0)
{
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (clients.Entity.Hitpoints <= damage1)
{
clients.Entity.Die(attacker);
}
else
{
clients.Entity.Hitpoints -= damage1;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
if (clients.Entity.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 10360)
{
if (Kernel.Rate(clients.Entity.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(clients.Entity.UID, SpellUse.EffectValue.WaterResist);
}
}
}
}
}
}
suse.Targets.Add(attacked.UID, damage1);
if (attacked.Hitpoints <= damage1)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage1;
}
attacked.Owner.Screen.SendScreen(suse, true);
}
#endregion
#region SnowBanshee
if (attacker.Name == "SnowBanshee")
{
uint rand = (uint)ShekoProject.ServerBase.Kernel.Random.Next(1, 12);
switch (rand)
{
case 3:
{
attacker.MonsterInfo.SpellID = 30013;
break;
}
case 6:
{
attacker.MonsterInfo.SpellID = 30011;
break;
}
case 9:
{
attacker.MonsterInfo.SpellID = 30010;
break;
}
default: attacker.MonsterInfo.SpellID = 0; break;
}
uint damage1 = 0;
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
// uint damage = Calculate.Melee(attacker, attacked, ref attack);
damage1 += 1270;
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage1, attacked.Hitpoints), true);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
if (DateTime.Now >= attacker.AtaqueBoss.AddSeconds(30))
{
attacker.AtaqueBoss = DateTime.Now;
suse.SpellID = 30012;
suse.SpellLevel = 0;
damage1 = damage1 + 2150;
suse.Targets.Add(attacked.UID, damage1);
if (!attacked.ContainsFlag(Update.Flags2.IceBlock))
{
attacked.AddFlag(Update.Flags2.IceBlock);
attacked.FreezeTime = 10;
attacked.FreezeStamp = Time32.Now;
attacked.AttackPacket = null;
}
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (!clients.Entity.ContainsFlag(Update.Flags2.IceBlock))
{
clients.Entity.AddFlag(Update.Flags2.IceBlock);
clients.Entity.FreezeTime = 10;
clients.Entity.FreezeStamp = Time32.Now;
clients.Entity.AttackPacket = null;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
}
}
}
if (attacked.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 30012)
{
if (Kernel.Rate(attacked.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(attacked.UID, SpellUse.EffectValue.WaterResist);
}
}
}
if (suse.SpellID != 0)
{
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (clients.Entity.Hitpoints <= damage1)
{
clients.Entity.Die(attacker);
}
else
{
clients.Entity.Hitpoints -= damage1;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
if (clients.Entity.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 30012)
{
if (Kernel.Rate(clients.Entity.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(clients.Entity.UID, SpellUse.EffectValue.WaterResist);
}
}
}
}
}
}
suse.Targets.Add(attacked.UID, damage1);
if (attacked.Hitpoints <= damage1)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage1;
}
attacked.Owner.Screen.SendScreen(suse, true);
}
#endregion
#region TeratoDragon
if (attacker.Name == "TeratoDragon")
{
uint rand = (uint)ShekoProject.ServerBase.Kernel.Random.Next(1, 12);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 7011;
break;
case 2:
attacker.MonsterInfo.SpellID = 7013;
break;
case 3:
attacker.MonsterInfo.SpellID = 7015;
break;
case 4:
attacker.MonsterInfo.SpellID = 7016;
break;
case 5:
attacker.MonsterInfo.SpellID = 7017;
break;
default: attacker.MonsterInfo.SpellID = 0; break;
}
uint damage1 = 0;
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
// uint damage = Calculate.Melee(attacker, attacked, ref attack);
damage1 += 1270;
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage1, attacked.Hitpoints), true);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
if (DateTime.Now >= attacker.AtaqueBoss.AddSeconds(30))
{
attacker.AtaqueBoss = DateTime.Now;
suse.SpellID = 7012;
suse.SpellLevel = 0;
damage1 = damage1 + 2150;
suse.Targets.Add(attacked.UID, damage1);
if (!attacked.ContainsFlag(Update.Flags2.Aturdido))
{
attacked.AddFlag(Update.Flags2.Aturdido);
attacked.TiempoAturdido = 30;
attacked.AturdidoTimeStamp = DateTime.Now;
attacked.AttackPacket = null;
}
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (!attacked.ContainsFlag2(Update.Flags2.Aturdido))
{
clients.Entity.AturdidoTimeStamp = DateTime.Now;
clients.Entity.AturdidoTimeTime = 45;
clients.Entity.AddFlag3(Update.Flags2.Aturdido);
clients.Entity.RemoveFlag(Update.Flags.XPList);
clients.Entity.AttackPacket = null;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
}
}
}
if (attacked.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 7012)
{
if (Kernel.Rate(attacked.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(attacked.UID, SpellUse.EffectValue.WaterResist);
}
}
}
if (suse.SpellID != 0)
{
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (clients.Entity.Hitpoints <= damage1)
{
clients.Entity.Die(attacker);
}
else
{
clients.Entity.Hitpoints -= damage1;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
if (clients.Entity.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 7012)
{
if (Kernel.Rate(clients.Entity.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(clients.Entity.UID, SpellUse.EffectValue.WaterResist);
}
}
}
}
}
}
suse.Targets.Add(attacked.UID, damage1);
if (attacked.Hitpoints <= damage1)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage1;
}
attacked.Owner.Screen.SendScreen(suse, true);
}
#endregion
#region CaptainCook
if (attacker.Name == "CaptainCook")
{
uint rand = (uint)ShekoProject.ServerBase.Kernel.Random.Next(1, 12);
switch (rand)
{
case 3:
{
attacker.MonsterInfo.SpellID = 30013;
break;
}
case 6:
{
attacker.MonsterInfo.SpellID = 30011;
break;
}
case 9:
{
attacker.MonsterInfo.SpellID = 30010;
break;
}
case 7:
attacker.MonsterInfo.SpellID = 10361;
break;
case 8:
attacker.MonsterInfo.SpellID = 10362;
break;
case 10:
attacker.MonsterInfo.SpellID = 10363;
break;
case 11:
attacker.MonsterInfo.SpellID = 10364;
break;
case 12:
attacker.MonsterInfo.SpellID = 7017;
break;
case 14:
attacker.MonsterInfo.SpellID = 7011;
break;
case 13:
attacker.MonsterInfo.SpellID = 7013;
break;
case 15:
attacker.MonsterInfo.SpellID = 7015;
break;
case 16:
attacker.MonsterInfo.SpellID = 7016;
break;
case 17:
attacker.MonsterInfo.SpellID = 7017;
break;
default: attacker.MonsterInfo.SpellID = 0; break;
}
uint damage1 = 0;
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
// uint damage = Calculate.Melee(attacker, attacked, ref attack);
damage1 += 1270;
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage1, attacked.Hitpoints), true);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
if (DateTime.Now >= attacker.AtaqueBoss.AddSeconds(30))
{
attacker.AtaqueBoss = DateTime.Now;
suse.SpellID = 30012;
suse.SpellLevel = 0;
damage1 = damage1 + 7150;
suse.Targets.Add(attacked.UID, damage1);
if (!attacked.ContainsFlag(Update.Flags2.IceBlock))
{
attacked.AddFlag(Update.Flags2.IceBlock);
attacked.FreezeTime = 20;
attacked.FreezeStamp = Time32.Now;
attacked.AddFlag(Update.Flags2.Aturdido);
attacked.TiempoAturdido = 20;
attacked.AturdidoTimeStamp = DateTime.Now;
attacked.AddFlag(Update.Flags2.Congelado);
attacked.CongeladoTime = 20;
attacked.CongeladoTimeStamp = DateTime.Now;
attacked.AttackPacket = null;
}
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (!clients.Entity.ContainsFlag(Update.Flags2.IceBlock))
{
clients.Entity.AddFlag(Update.Flags2.IceBlock);
clients.Entity.FreezeTime = 20;
clients.Entity.FreezeStamp = Time32.Now;
attacked.AddFlag(Update.Flags2.Aturdido);
clients.Entity.TiempoAturdido = 20;
clients.Entity.AturdidoTimeStamp = DateTime.Now;
attacked.AddFlag(Update.Flags2.Congelado);
clients.Entity.TiempoAturdido = 20;
clients.Entity.AturdidoTimeStamp = DateTime.Now;
clients.Entity.AttackPacket = null;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
}
}
}
if (attacked.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 30012)
{
if (Kernel.Rate(attacked.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(attacked.UID, SpellUse.EffectValue.WaterResist);
}
}
}
if (suse.SpellID != 0)
{
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (clients.Entity.Hitpoints <= damage1)
{
clients.Entity.Die(attacker);
}
else
{
clients.Entity.Hitpoints -= damage1;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
if (clients.Entity.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 30012)
{
if (Kernel.Rate(clients.Entity.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(clients.Entity.UID, SpellUse.EffectValue.WaterResist);
}
}
}
}
}
}
suse.Targets.Add(attacked.UID, damage1);
if (attacked.Hitpoints <= damage1)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage1;
}
attacked.Owner.Screen.SendScreen(suse, true);
}
#endregion
#region CaptainCook
if (attacker.Name == "Guard1")
{
uint rand = (uint)ShekoProject.ServerBase.Kernel.Random.Next(1, 12);
switch (rand)
{
case 3:
{
attacker.MonsterInfo.SpellID = 30013;
break;
}
case 6:
{
attacker.MonsterInfo.SpellID = 30011;
break;
}
case 9:
{
attacker.MonsterInfo.SpellID = 30010;
break;
}
case 7:
attacker.MonsterInfo.SpellID = 10361;
break;
case 8:
attacker.MonsterInfo.SpellID = 10362;
break;
case 10:
attacker.MonsterInfo.SpellID = 10363;
break;
case 11:
attacker.MonsterInfo.SpellID = 10364;
break;
case 12:
attacker.MonsterInfo.SpellID = 7017;
break;
case 14:
attacker.MonsterInfo.SpellID = 7011;
break;
case 13:
attacker.MonsterInfo.SpellID = 7013;
break;
case 15:
attacker.MonsterInfo.SpellID = 7015;
break;
case 16:
attacker.MonsterInfo.SpellID = 7016;
break;
case 17:
attacker.MonsterInfo.SpellID = 7017;
break;
default: attacker.MonsterInfo.SpellID = 0; break;
}
uint damage1 = 0;
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, ref attack);
// uint damage = Calculate.Melee(attacker, attacked, ref attack);
damage1 += 1270;
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage1, attacked.Hitpoints), true);
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
if (DateTime.Now >= attacker.AtaqueBoss.AddSeconds(30))
{
attacker.AtaqueBoss = DateTime.Now;
suse.SpellID = 30012;
suse.SpellLevel = 0;
damage1 = damage1 + 7150;
suse.Targets.Add(attacked.UID, damage1);
if (!attacked.ContainsFlag(Update.Flags2.IceBlock))
{
attacked.AddFlag(Update.Flags2.IceBlock);
attacked.FreezeTime = 20;
attacked.FreezeStamp = Time32.Now;
attacked.AddFlag(Update.Flags2.Aturdido);
attacked.TiempoAturdido = 20;
attacked.AturdidoTimeStamp = DateTime.Now;
attacked.AddFlag(Update.Flags2.Congelado);
attacked.CongeladoTime = 20;
attacked.CongeladoTimeStamp = DateTime.Now;
attacked.AttackPacket = null;
}
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (!clients.Entity.ContainsFlag(Update.Flags2.IceBlock))
{
clients.Entity.AddFlag(Update.Flags2.IceBlock);
clients.Entity.FreezeTime = 20;
clients.Entity.FreezeStamp = Time32.Now;
attacked.AddFlag(Update.Flags2.Aturdido);
clients.Entity.TiempoAturdido = 20;
clients.Entity.AturdidoTimeStamp = DateTime.Now;
attacked.AddFlag(Update.Flags2.Congelado);
clients.Entity.TiempoAturdido = 20;
clients.Entity.AturdidoTimeStamp = DateTime.Now;
clients.Entity.AttackPacket = null;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
}
}
}
if (attacked.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 30012)
{
if (Kernel.Rate(attacked.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(attacked.UID, SpellUse.EffectValue.WaterResist);
}
}
}
if (suse.SpellID != 0)
{
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
if (attacked.Owner.Screen.Contains(clients.Entity))
{
if (clients.Entity.Hitpoints <= damage1)
{
clients.Entity.Die(attacker);
}
else
{
clients.Entity.Hitpoints -= damage1;
}
suse.Targets.Add(clients.Entity.UID, damage1);
clients.Screen.SendScreen(suse, true);
if (clients.Entity.Statistics.WaterResistance > 0)
{
if (suse.SpellID != 30012)
{
if (Kernel.Rate(clients.Entity.Statistics.WaterResistance))
{
damage1 = (uint)(damage1 / 1.5);
// suse.Effect.Add(clients.Entity.UID, SpellUse.EffectValue.WaterResist);
}
}
}
}
}
}
suse.Targets.Add(attacked.UID, damage1);
if (attacked.Hitpoints <= damage1)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage1;
}
attacked.Owner.Screen.SendScreen(suse, true);
}
#endregion
#endregion New Monster Attack And Spells
if (Game.Flags.TopSpouse == client.Entity.Name)
if (Game.Flags.Top2Archer == client.Entity.Name)
{
client.Entity.AddFlag2(Network.GamePackets.Update.Flags2.Top2Archer);
}
client.Entity.Body = r.ReadUInt16("Body");
client.Entity.TopArcher2 = r.ReadUInt16("TopArcher2");
public static void ResetExpball
public static void ResetTopArcher2()
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.UPDATE);
cmd.Update("entities").Set("TopArcher2", 0); cmd.Execute();
}
#region The.Goblin Race join
case 1154428583://6520
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello " + client.Entity.Name + " this Is Cyclone Speed Race Start Evrey Hour in xx:50 ");
dialog.Option("let me join", 1);
break;
case 1:
if (Program.cycolne)
{
client.Entity.race = 1;
dialog.Text("You Have Signed Up Wait 1 min ");
dialog.Send();
}
else
{
dialog.Text("This is not the right time Come Later ");
dialog.Option("okay", 0xff);
dialog.Send();
}
break;
}
break;
#endregion Cyclone War
#region The.Goblin Race Prize
case 1154428584://6521
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello " + client.Entity.Name + " did u finish Race Get ur prize ");
dialog.Option("Give me my prize ", 1);
break;
case 1:
if (Program.cycolne)
{
client.Entity.Teleport(0x3ea, 0x1b3, 0x17a);
ShekoProject.Game.Flags.Add2Archer(client);
client.Entity.AddFlag2(Network.GamePackets.Update.Flags2.Top2Archer);
client.Entity.race = 0;
uint cycx = 50000;
client.Entity.ConquerPoints += cycx;
Kernel.SendWorldMessage(new Message("Gratz! " + client.Entity.Name + " has Finish Cycolne Speed And Won " + cycx + " Cps ", System.Drawing.Color.Red, 0x7db), Kernel.GamePool.Values);
client.Entity.RemoveFlag(0x800000L);
Program.cycolne = false;
}
break;
}
break;
#endregion Cyclone War
1154428584 0 0 hemaRace 2 9446 -1 1012 61 52 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1154428583 0 0 hemaracej 2 50038 -1 1002 444 424 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
TopArcher2 bigint 255 0 -1 0 0 0 0 0 0 0
Top2Archer char 40 0 0 0 0 0 0 0 utf8 utf8_general_ci 0 0
Archer2 bigint 10 0 -1 0 0 0 0 0 0 0
if (client.Entity.MapID == 1012)
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
اقوي صفحة تسجيل هتشوفها معا طريقة التركيب | Eljoker | صفحات التسجيل كونكر اونلاين | 120 | 2024-11-17 03:53 AM |
مابة جديد مش مع حد اول مره هتشوفها في حياتك مقدم من فريق Team Back8 | ahmedfathy | تطوير سيرفرات كونكر | 99 | 2024-09-02 04:04 AM |
كويسته ماتريكس | zonfor | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-02-20 06:51 PM |
كويسته DemonDiamond | Amr Khalid | تطوير سيرفرات كونكر | 1 | 2019-05-07 01:50 PM |
كويسته PoleTwin | محمد ياسر | تطوير سيرفرات كونكر | 2 | 2019-04-27 01:36 PM |