.png)
.: بسم الله الرحمن الرحيم :.
النهارده يا رجاله كويست جديدة وبفكرة جامدة
Kings Of Boss
شرح كدا ع السريع للكويست
اولاً
بنروح للانبي سي بتاع الكويست بيدخلنا مكان كبير شويه
المهم ان في المكان دا في 7 وحوش كل وحش مخلتف عن التانى فى شكلو وطبعا الوحوش دي اتاكها
عالي وكمان دمها
لان دي حرب جايلدات مش حرب واحد قصاد واحد
الجايلد اللي بيموت وحش بيكون هو صاحب الوحش دا لحد ما يجي جايلد تاني
ويموت الوحش منو
وطول ما الوحش بتاعك مش بيضرب اي حد في الجايلد بتاعك واي حد من اي جايلد
تاني هيعمل معاه الجولاشه
ولو جايلد تاني موت الوحش بتاعك بياخدو منك وبيبقي الوضع العكس وطول ما
انت واقف جنب الوحش بتاعك لازم انت اللي تدافع عنو
لانو مش هيضرب في حد خالص وانت واقف بس بمجرد انت ما تبعد عنو هيضرب في
اي حد يقرب ولو انت روحتلو ولقيت حد بيضرب فيه هتقدر تموت الواحد دا
بسهوله جدا حتي لو هو كينج وانت دوك لان الوحش بيضربه الضربه بتنقص نص
دمو تقريبا
وبكدا يكون الوحش بيدافع عن نفس وبيدافع عنك كمان
طيب كدا احنا قولنا فكره اللعب طيب ايه المطلوب عشان نكسب ؟
وبكدة الجايلد اللي يملك السبع وحوش مع بعض الحرب تخلص والجايلد
ليدر يروح للراجل اللي دخلو ياخد الجايزه
وبكدا يبقي الكويست خلص وعلي فكره الكويست ليه معاد بدايه بس انما مش
بيخلص الا لما حد يكسب يعني الوقت اوبن بوفيه
الانبسي
النهارده يا رجاله كويست جديدة وبفكرة جامدة
Kings Of Boss
شرح كدا ع السريع للكويست
اولاً
بنروح للانبي سي بتاع الكويست بيدخلنا مكان كبير شويه
المهم ان في المكان دا في 7 وحوش كل وحش مخلتف عن التانى فى شكلو وطبعا الوحوش دي اتاكها
عالي وكمان دمها
لان دي حرب جايلدات مش حرب واحد قصاد واحد
الجايلد اللي بيموت وحش بيكون هو صاحب الوحش دا لحد ما يجي جايلد تاني
ويموت الوحش منو
وطول ما الوحش بتاعك مش بيضرب اي حد في الجايلد بتاعك واي حد من اي جايلد
تاني هيعمل معاه الجولاشه
ولو جايلد تاني موت الوحش بتاعك بياخدو منك وبيبقي الوضع العكس وطول ما
انت واقف جنب الوحش بتاعك لازم انت اللي تدافع عنو
لانو مش هيضرب في حد خالص وانت واقف بس بمجرد انت ما تبعد عنو هيضرب في
اي حد يقرب ولو انت روحتلو ولقيت حد بيضرب فيه هتقدر تموت الواحد دا
بسهوله جدا حتي لو هو كينج وانت دوك لان الوحش بيضربه الضربه بتنقص نص
دمو تقريبا
وبكدا يكون الوحش بيدافع عن نفس وبيدافع عنك كمان
طيب كدا احنا قولنا فكره اللعب طيب ايه المطلوب عشان نكسب ؟
وبكدة الجايلد اللي يملك السبع وحوش مع بعض الحرب تخلص والجايلد
ليدر يروح للراجل اللي دخلو ياخد الجايزه
وبكدا يبقي الكويست خلص وعلي فكره الكويست ليه معاد بدايه بس انما مش
بيخلص الا لما حد يكسب يعني الوقت اوبن بوفيه
الانبسي
#region New Quest Kings Of Bos By MrBevo
case 99994:
{
switch (npcRequest.OptionID)
{
case 0:
{
effecx.good(client);
dialog.Text("hey mr : " + client.Entity.Name + " Would you like to join the King Of Bos Event ??");
dialog.Option("yes sure.", 1);
dialog.Option("I Win Claim Prize.", 2);
dialog.Option("What This.", 3);
dialog.Option("Will check later!", 255);
dialog.Avatar(35);
dialog.Send();
break;
}
case 1:
{
if (World.KingsOfMonstersTime == true && World.KingsOfMonstersPriz == false)
{
if (client.Guild != null)
{
//client.Entity.Teleport(7771, 180, 85);
Random R = new Random();
int Nr = R.Next(1, 2);
if (Nr == 1) client.Entity.Teleport(7771, 180, 85);
if (Nr == 2) client.Entity.Teleport(7771, 190, 290);
}
else
{
dialog.Text("Sorey mr : " + client.Entity.Name + " Go Sign up Any Guild .");
dialog.Option("oki I will make this .", 255);
}
}
else
{
dialog.Text("Sorey mr : " + client.Entity.Name + " this Event end Come Again in the tiem 20.00 .");
dialog.Option("oki I will Come Again .", 255);
}
break;
}
case 2:
{
if (client.Guild.Name == World.KingOctopus && client.Guild.Name == World.KingSnow)
{
if (World.KingsOfMonstersEnd == true)
{
if (World.KingsOfMonstersPriz == false)
{
if (client.Guild != null)
{
if (client.AsMember != null)
{
if (client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)
{
client.Entity.ConquerPoints += 5000000;
World.KingsOfMonstersPriz = true;
World.KingsOfMonstersTime = false;
}
else
{
dialog.Text("Sorey mr : " + client.Entity.Name + " You are not the leader of the Guild");
dialog.Option("oki Sorey .", 255);
}
}
else
{
dialog.Text("Sorey mr : " + client.Entity.Name + " You are not the leader of the Guild");
dialog.Option("oki Sorey .", 255);
}
}
else
{
dialog.Text("Sorey mr : " + client.Entity.Name + " You dont have any guild");
dialog.Option("oki Sorey .", 255);
}
}
else
{
dialog.Text("Sorey mr : " + client.Entity.Name + " I can Give The Prize Only one");
dialog.Option("oki Sorey .", 255);
}
}
else
{
dialog.Text("Sorey mr : " + client.Entity.Name + " This event is not over yet ");
dialog.Option("oki Sorey .", 255);
}
}
else
{
dialog.Text("Sorey mr : " + client.Entity.Name + " Not your guild is the winner ");
dialog.Option("oki Sorey .", 255);
}
break;
}
}
break;
}
#endregion New Quest For King Bos By MrBevo
وبعدين تبحث فى World.Cs
public class World
{ public static bool KingsOfMonsters = false, KingsOfMonstersTime = false, KingsOfMonstersPriz = false, KingsOfMonstersEnd = false;
public static string KingOctopus, KingDragon, KingSnow, KingSpooks, KingTigers, KingFighters, KingDevils; #region Buffers #region Kings Of Bos
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute == 35 && DateTime.Now.Second == 30)
{
KingsOfMonstersTime = true;
}
if (KingsOfMonsters == true)
{
if (KingOctopus == KingDragon && KingDragon == KingSnow && KingSnow == KingSpooks && KingSpooks == KingTigers && KingTigers == KingFighters && KingFighters == KingDevils && KingDevils == KingOctopus)
{
Kernel.SendWorldMessage(new Message("the Guild [ " + KingOctopus + "] has win of the Kings Monsters .", System.Drawing.Color.White, Message.Center), Program.GamePool);
if (client.Entity.MapID == 7771)
{
client.Entity.Teleport(1002, 300, 278);
KingsOfMonsters = false;
KingsOfMonstersEnd = true;
}
}
}
if (client.Entity.MapID == 7771)
{
if (client.Guild == null)
{
client.Entity.Teleport(1002, 300, 278);
client.MessageBox("you cant join this map Go sign Any Guild", (p) => { }, null);
}
}
#endregion Kings Of Bos
نخوش بقا علي
MonsterTable.cs
ابحث عن MonsterTable.cs
#region ThirillingSpook #region Kings OF Boss
#region KingOctopus
if (Name == "KingOctopus")
{
{
World.KingOctopus = killer.Owner.Guild.Name;
Kernel.SendWorldMessage(new Message("[" + killer.Name + "] Of Guild [" + World.KingOctopus + "] was killed " + Name + " monsters .", System.Drawing.Color.White, Message.Center), Program.GamePool);
return;
}
}
#endregion KingOctopus
#region KingDragon
if (Name == "KingDragon")
{
{
World.KingDragon = killer.Owner.Guild.Name;
Kernel.SendWorldMessage(new Message("[" + killer.Name + "] Of Guild [" + World.KingOctopus + "] was killed " + Name + " monsters .", System.Drawing.Color.White, Message.Center), Program.GamePool);
return;
}
}
#endregion KingDragon
#region KingSnow
if (Name == "KingSnow")
{
{
World.KingSnow = killer.Owner.Guild.Name;
Kernel.SendWorldMessage(new Message("[" + killer.Name + "] Of Guild [" + World.KingOctopus + "] was killed " + Name + " monsters .", System.Drawing.Color.White, Message.Center), Program.GamePool);
return;
}
}
#endregion KingSnow
#region KingSpooks
if (Name == "KingSpooks")
{
{
World.KingSpooks = killer.Owner.Guild.Name;
Kernel.SendWorldMessage(new Message("[" + killer.Name + "] Of Guild [" + World.KingOctopus + "] was killed " + Name + " monsters .", System.Drawing.Color.White, Message.Center), Program.GamePool);
return;
}
}
#endregion KingSnow
#region KingTigers
if (Name == "KingTigers")
{
{
World.KingTigers = killer.Owner.Guild.Name;
Kernel.SendWorldMessage(new Message("[" + killer.Name + "] Of Guild [" + World.KingOctopus + "] was killed " + Name + " monsters .", System.Drawing.Color.White, Message.Center), Program.GamePool);
return;
}
}
#endregion KingTigers
#region KingFighters
if (Name == "KingFighters")
{
{
World.KingFighters = killer.Owner.Guild.Name;
Kernel.SendWorldMessage(new Message("[" + killer.Name + "] Of Guild [" + World.KingOctopus + "] was killed " + Name + " monsters .", System.Drawing.Color.White, Message.Center), Program.GamePool);
return;
}
}
#endregion KingFighters
#region KingDevils
if (Name == "KingDevils")
{
World.KingDevils = killer.Owner.Guild.Name;
Kernel.SendWorldMessage(new Message("[" + killer.Name + "] Of Guild [" + World.KingOctopus + "] was killed " + Name + " monsters .", System.Drawing.Color.White, Message.Center), Program.GamePool);
if (World.KingsOfMonsters == false)
{
World.KingsOfMonsters = true;
}
return;
}
#endregion KingDevils
#endregion Kings OF Boss
ونخش بقى على نخوش بقا على
Handle.cs
ونبحث عن دة
Handle.cs
ونبحث عن دة
#region Player -> Player \ Monster \ Sob Npc #region Kings OF Boss
#region KingOctopus
if (attacker.Name == "KingOctopus")
{
if (attacked.Owner.Guild != null && attacked.Owner.Guild.Name == World.KingOctopus)
{
return;
}
uint rand = (uint)Conquer_Online_Server.ServerBase.Kernel.Random.Next(1, 4);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 5030;
break;
case 2:
attacker.MonsterInfo.SpellID = 5030;
break;
case 3:
attacker.MonsterInfo.SpellID = 5030;
break;
case 4:
attacker.MonsterInfo.SpellID = 5030;
break;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
#region TD Area
if (attacker.MonsterInfo.SpellID == 5030)
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;
damage += (uint)Kernel.Random.Next(1500, 3000);
suse.Effect1 = attack.Effect1;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= attacked.Hitpoints - 2;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.AddTarget(attacked.UID, damage, attack);
foreach (var obj in attacked.Owner.Screen.Objects)
{
if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14))
{
if (obj.MapObjType == MapObjectType.Player)
{
if (obj.Owner.Entity.ContainsFlag(Update.Flags.Dead))
continue;
attacked = obj as Entity;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage;
}
suse.AddTarget(attacked.UID, damage, attack);
}
}
}
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
#endregion
#region KingDragon
if (attacker.Name == "KingDragon")
{
if (attacked.Owner.Guild != null && attacked.Owner.Guild.Name == World.KingDragon)
{
return;
}
uint rand = (uint)Conquer_Online_Server.ServerBase.Kernel.Random.Next(1, 4);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 5030;
break;
case 2:
attacker.MonsterInfo.SpellID = 5030;
break;
case 3:
attacker.MonsterInfo.SpellID = 5030;
break;
case 4:
attacker.MonsterInfo.SpellID = 5030;
break;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
#region TD Area
if (attacker.MonsterInfo.SpellID == 5030)
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;
damage += (uint)Kernel.Random.Next(1500, 3000);
suse.Effect1 = attack.Effect1;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= attacked.Hitpoints - 2;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.AddTarget(attacked.UID, damage, attack);
foreach (var obj in attacked.Owner.Screen.Objects)
{
if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14))
{
if (obj.MapObjType == MapObjectType.Player)
{
if (obj.Owner.Entity.ContainsFlag(Update.Flags.Dead))
continue;
attacked = obj as Entity;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage;
}
suse.AddTarget(attacked.UID, damage, attack);
}
}
}
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
#endregion
#region KingSnow
if (attacker.Name == "KingSnow")
{
if (attacked.Owner.Guild != null && attacked.Owner.Guild.Name == World.KingSnow)
{
return;
}
uint rand = (uint)Conquer_Online_Server.ServerBase.Kernel.Random.Next(1, 4);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 5030;
break;
case 2:
attacker.MonsterInfo.SpellID = 5030;
break;
case 3:
attacker.MonsterInfo.SpellID = 5030;
break;
case 4:
attacker.MonsterInfo.SpellID = 5030;
break;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
#region TD Area
if (attacker.MonsterInfo.SpellID == 5030)
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;
damage += (uint)Kernel.Random.Next(1500, 3000);
suse.Effect1 = attack.Effect1;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= attacked.Hitpoints - 2;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.AddTarget(attacked.UID, damage, attack);
foreach (var obj in attacked.Owner.Screen.Objects)
{
if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14))
{
if (obj.MapObjType == MapObjectType.Player)
{
if (obj.Owner.Entity.ContainsFlag(Update.Flags.Dead))
continue;
attacked = obj as Entity;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage;
}
suse.AddTarget(attacked.UID, damage, attack);
}
}
}
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
#endregion
#region KingSpooks
if (attacker.Name == "KingSpooks")
{
if (attacked.Owner.Guild != null && attacked.Owner.Guild.Name == World.KingSpooks)
{
return;
}
uint rand = (uint)Conquer_Online_Server.ServerBase.Kernel.Random.Next(1, 4);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 5030;
break;
case 2:
attacker.MonsterInfo.SpellID = 5030;
break;
case 3:
attacker.MonsterInfo.SpellID = 5030;
break;
case 4:
attacker.MonsterInfo.SpellID = 5030;
break;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
#region TD Area
if (attacker.MonsterInfo.SpellID == 5030)
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;
damage += (uint)Kernel.Random.Next(1500, 3000);
suse.Effect1 = attack.Effect1;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= attacked.Hitpoints - 2;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.AddTarget(attacked.UID, damage, attack);
foreach (var obj in attacked.Owner.Screen.Objects)
{
if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14))
{
if (obj.MapObjType == MapObjectType.Player)
{
if (obj.Owner.Entity.ContainsFlag(Update.Flags.Dead))
continue;
attacked = obj as Entity;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage;
}
suse.AddTarget(attacked.UID, damage, attack);
}
}
}
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
#endregion
#region KingTigers
if (attacker.Name == "KingTigers")
{
if (attacked.Owner.Guild != null && attacked.Owner.Guild.Name == World.KingTigers)
{
return;
}
uint rand = (uint)Conquer_Online_Server.ServerBase.Kernel.Random.Next(1, 4);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 5030;
break;
case 2:
attacker.MonsterInfo.SpellID = 5030;
break;
case 3:
attacker.MonsterInfo.SpellID = 5030;
break;
case 4:
attacker.MonsterInfo.SpellID = 5030;
break;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
#region TD Area
if (attacker.MonsterInfo.SpellID == 5030)
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;
damage += (uint)Kernel.Random.Next(1500, 3000);
suse.Effect1 = attack.Effect1;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= attacked.Hitpoints - 2;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.AddTarget(attacked.UID, damage, attack);
foreach (var obj in attacked.Owner.Screen.Objects)
{
if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14))
{
if (obj.MapObjType == MapObjectType.Player)
{
if (obj.Owner.Entity.ContainsFlag(Update.Flags.Dead))
continue;
attacked = obj as Entity;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage;
}
suse.AddTarget(attacked.UID, damage, attack);
}
}
}
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
#endregion
#region KingFighters
if (attacker.Name == "KingFighters")
{
if (attacked.Owner.Guild != null && attacked.Owner.Guild.Name == World.KingFighters)
{
return;
}
uint rand = (uint)Conquer_Online_Server.ServerBase.Kernel.Random.Next(1, 4);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 5030;
break;
case 2:
attacker.MonsterInfo.SpellID = 5030;
break;
case 3:
attacker.MonsterInfo.SpellID = 5030;
break;
case 4:
attacker.MonsterInfo.SpellID = 5030;
break;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
#region TD Area
if (attacker.MonsterInfo.SpellID == 5030)
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;
damage += (uint)Kernel.Random.Next(1500, 3000);
suse.Effect1 = attack.Effect1;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= attacked.Hitpoints - 2;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.AddTarget(attacked.UID, damage, attack);
foreach (var obj in attacked.Owner.Screen.Objects)
{
if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14))
{
if (obj.MapObjType == MapObjectType.Player)
{
if (obj.Owner.Entity.ContainsFlag(Update.Flags.Dead))
continue;
attacked = obj as Entity;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage;
}
suse.AddTarget(attacked.UID, damage, attack);
}
}
}
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
#endregion
#region KingDevils
if (attacker.Name == "KingDevils")
{
if (attacked.Owner.Guild != null && attacked.Owner.Guild.Name == World.KingDevils)
{
return;
}
uint rand = (uint)Conquer_Online_Server.ServerBase.Kernel.Random.Next(1, 4);
switch (rand)
{
case 1:
attacker.MonsterInfo.SpellID = 5030;
break;
case 2:
attacker.MonsterInfo.SpellID = 5030;
break;
case 3:
attacker.MonsterInfo.SpellID = 5030;
break;
case 4:
attacker.MonsterInfo.SpellID = 5030;
break;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
if (Kernel.Rate(5))
{
attacker.MonsterInfo.SpellID = 5030;
}
#region TD Area
if (attacker.MonsterInfo.SpellID == 5030)
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;
damage += (uint)Kernel.Random.Next(1500, 3000);
suse.Effect1 = attack.Effect1;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= attacked.Hitpoints / 2;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.AddTarget(attacked.UID, damage, attack);
foreach (var obj in attacked.Owner.Screen.Objects)
{
if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14))
{
if (obj.MapObjType == MapObjectType.Player)
{
if (obj.Owner.Entity.ContainsFlag(Update.Flags.Dead))
continue;
attacked = obj as Entity;
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker);
}
else
{
attacked.Hitpoints -= damage;
}
suse.AddTarget(attacked.UID, damage, attack);
}
}
}
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
#endregion
#endregion Kings OF Boss
تمام كدة شغـل القاعدة بقى
ارمى دة فى Console
دة ال ده
monsterspawns
INSERT INTO `monsterspawns` VALUES ('7771', '7771', '0195', '0207', '0000', '0000', '0001', '0001', '0001', '4205', '0000', '0000', '0000', '0000'); INSERT INTO `monsterspawns` VALUES ('7772', '7771', '0131', '0127', '0000', '0000', '0001', '0001', '0001', '4201', '0000', '0000', '0000', '0000'); INSERT INTO `monsterspawns` VALUES ('7773', '7771', '0133', '0253', '0000', '0000', '0001', '0001', '0001', '4202', '0000', '0000', '0000', '0000'); INSERT INTO `monsterspawns` VALUES ('7774', '7771', '0253', '0253', '0000', '0000', '0001', '0001', '0001', '4203', '0000', '0000', '0000', '0000'); INSERT INTO `monsterspawns` VALUES ('7775', '7771', '0253', '0125', '0000', '0000', '0001', '0001', '0001', '4204', '0000', '0000', '0000', '0000'); INSERT INTO `monsterspawns` VALUES ('7776', '7771', '0143', '0187', '0000', '0000', '0001', '0001', '0001', '4206', '0000', '0000', '0000', '0000'); INSERT INTO `monsterspawns` VALUES ('7777', '7771', '0248', '0184', '0000', '0000', '0001', '0001', '0001', '4207', '0000', '0000', '0000', '0000'); monsterinfos
INSERT INTO `monsterinfos` VALUES ('34619', 'KingTiger', '0001', '0386', '40000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '1000000', '0000', '0001', '0000', '0500', '099', '099', '099', '099', '099', '099', '099', '1002020', '1002020', '10361', '0000', '0100', '0000', '10000', '00', '0', '0', '0', '100', '0', '0'); INSERT INTO `monsterinfos` VALUES ('4201', 'KingOctopus', '0001', '0959', '50000000', '00', '5000000', '5000000', '5000000', '0019', '0086', '0000', '0000', '0000', '0000', '0000', '0010', '0000', '1000', '0500', '0200', '3', '1000000', '0000', '0001', '3451130116', '0500', '009', '099', '009', '099', '099', '099', '099', '1002020', '1002020', '7014', '0060', '0100', '0000', '10000', '00', '0', '0', '0', '100', '0', '0'); INSERT INTO `monsterinfos` VALUES ('4202', 'KingDragon', '0001', '0950', '50000000', '00', '5000000', '5000000', '5000000', '0019', '0086', '0000', '0000', '0000', '0000', '0005', '0010', '0000', '1000', '0500', '0200', '3', '1000000', '0000', '0001', '3451130116', '0500', '009', '099', '009', '099', '099', '099', '099', '1002020', '1001020', '7014', '0060', '0800', '0000', '10000', '00', '0', '0', '0', '100', '0', '0'); INSERT INTO `monsterinfos` VALUES ('4203', 'KingSnow', '0001', '0951', '50000000', '00', '5000000', '5000000', '5000000', '0019', '0086', '0000', '0000', '0000', '0000', '0005', '0010', '0000', '1000', '0500', '0138', '3', '1000000', '0000', '0000', '3451130116', '0500', '009', '099', '009', '099', '099', '099', '099', '1002020', '1001020', '0000', '0060', '0100', '0000', '10000', '00', '0', '0', '0', '100', '0', '0'); INSERT INTO `monsterinfos` VALUES ('4204', 'KingSpooks', '0001', '0952', '50000000', '00', '5000000', '5000000', '5000000', '0019', '0086', '0000', '0000', '0000', '0000', '0005', '0010', '0000', '1000', '0500', '0138', '3', '1000000', '0000', '0000', '3451130116', '0500', '009', '099', '009', '099', '099', '099', '099', '1002020', '1001020', '0000', '0060', '0100', '0000', '10000', '00', '0', '0', '0', '100', '0', '0'); INSERT INTO `monsterinfos` VALUES ('4205', 'KingTigers', '0001', '0385', '50000000', '00', '5000000', '5000000', '5000000', '0019', '0086', '0000', '0000', '0000', '0000', '0020', '0010', '0000', '1000', '0500', '0138', '3', '1000000', '0000', '0000', '3451130116', '0500', '009', '099', '009', '099', '099', '099', '099', '1002020', '1001020', '0000', '0060', '0100', '0000', '10000', '00', '0', '0', '0', '100', '0', '0'); INSERT INTO `monsterinfos` VALUES ('4206', 'KingFighters', '0001', '0208', '50000000', '00', '5000000', '5000000', '5000000', '0019', '0086', '0000', '0000', '0000', '0000', '0005', '0010', '0000', '1000', '0500', '0138', '3', '1000000', '0000', '0000', '3451130116', '0500', '009', '099', '009', '099', '099', '099', '099', '1002020', '1001020', '0000', '0060', '0100', '0000', '10000', '00', '0', '0', '0', '100', '0', '0'); INSERT INTO `monsterinfos` VALUES ('4207', 'KingDevils', '0001', '0397', '50000000', '00', '5000000', '5000000', '5000000', '0019', '0086', '0000', '0000', '0000', '0000', '0005', '0010', '0000', '1000', '0500', '0138', '3', '1000000', '0000', '0000', '3451130116', '0500', '009', '099', '009', '099', '099', '099', '099', '1002020', '1001020', '0000', '0060', '0100', '0000', '10000', '00', '0', '0', '0', '100', '0', '0'); INSERT INTO `npcs` VALUES ('99994', '0', '0', 'Water3', '0002', '11280', '-1', '1002', '0300', '0277', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);
هل أعجبك الموضوع؟! ↓

0 التعليقات