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

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


محمد ياسر
2019-04-27, 10:18 AM
بسم الله الرحمن الرحيم
====================

كلو زهق من الكويستات كلها فكرة واحدة ادخل موت واطلع

انا قولت اعمل كويسته بفكر جديد


شرح الكويسته
===========
عبارة عن سباق بس مش سباق احصنه لا سباق بالجرى

وفى الارض وانت بتجرى فى فخوخ

مثال

فخ بيخليك تدوخ وتقف مكانك ل5 ثوانى

وفخ تانى بيخليك النطه تبقى معكوسه لمدة 20 ثانيه

واللى بيوصل اول واحد بياخد الجايزة وتوب جديد


افتح ملف

Program.cs

وابحث عن

#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

وافتح ملف

PacketHandler.cs


وابحث عن
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

افتح ملف

Flags.cs

وابحث عن
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;
}

وبعدين افتح ملف

Entity

وابحث عن
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.Top2Arch er);

}

وفى نفس المكان ابحث عن

ابحث عن
#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;

وافتح ملف

Handle.cs

وابحث عن
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.Congel ado))
{
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.WaterResist ance))
{
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.IceBlo ck))
{
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.WaterResist ance))
{
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.WaterResist ance))
{
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.IceBlo ck))
{
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.WaterResist ance))
{
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.IceBlo ck))
{
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.WaterResist ance))
{
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

افتح ملف

EntityTable.cs

وابحث عن
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();
}

وافتح ملف

Npc.cs

وضيف الانبسيهات دى
#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

شغل النافى كات بقى

افتح ملف
Npcs

وضيف دول
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

وافتح ملف
entities

وضيف العامود دة
TopArcher2 bigint 255 0 -1 0 0 0 0 0 0 0

افتح ملف

flags

وضيف العامود دة
Top2Archer char 40 0 0 0 0 0 0 0 utf8 utf8_general_ci 0 0

وافتح ملف

rates

واعمل العامود دة
Archer2 bigint 10 0 -1 0 0 0 0 0 0 0

بالنسبة للفخوخ اللى عايز يعمل فخ معين فى احداثيات معينه

فى الباكت هاندلر

ابحث عن
if (client.Entity.MapID == 1012)

وتحتها ضيف الاحداثيات مع الكود اللى تحتها

Hassan Emprator
2019-04-27, 01:34 PM
عطلاق انت برنس ولله افكاركك فاااااااااااجره

karem1q
2023-10-13, 09:10 PM
عاش