|
|
#region DB CPS
uint ran13 = (uint)Kernel.Random.Next(1, 50);
if (ran13 > 15)
{
if (this.Name == "Pheasant")
{
if (killer.Name.Contains("Guard"))
return;
uint Uid = 0;
Random R = new Random();
//int Nr = R.Next(1, 1);
switch (((byte)Kernel.Random.Next(1, 50)))
{
case 1:
Uid = 720996;//SmallCPBox
break;
case 2:
Uid = 1088000;
break;
case 3:
Uid = 720998;//LargCPBox
break;
case 4:
Uid = 1088000;
break;
case 5:
Uid = 720996;//SmallCPBox
break;
case 6:
Uid = 1088001;
break;
}
if (Uid != 0)
{
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (DeadPool.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = Uid;
floorItem.Item.MaximDurability = floorItem.Item.Durability = 65535;
floorItem.Item.UID = Program.NextItemID; ;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = Uid;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
}
#endregion
#region code
case 6751:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("you need monster ? ");
dialog.Option("yes.", 1);
dialog.Option("No, thanks.", 255);
dialog.Send();
break;
}
case 1:
{
Database.MonsterInformation monster = new Conquer_Online_Server.Database.MonsterInformation();
monster.Boss = true;
monster.Hitpoints = 50000000;
monster.Level = 255;
monster.Mesh = 978;
monster.Name = "FuriousFlameDevastator";
monster.MaxAttack = 10500;
monster.AttackRange = 14;
monster.AttackType = 1;
monster.AttackSpeed = 1000;
monster.ViewRange = 15;
monster.MoveSpeed = 500;
monster.RunSpeed = 500;
monster.MinAttack = 59000;
Game.Entity entity = new Game.Entity(Game.EntityFlag.Monster, false);
entity.MapObjType = Game.MapObjectType.Monster;
entity.MonsterInfo = monster;
entity.MonsterInfo.Owner = entity;
entity.Name = "FuriousFlameDevastator";
entity.MinAttack = monster.MinAttack;
entity.MaxAttack = entity.MagicAttack = monster.MaxAttack;
entity.Hitpoints = entity.MaxHitpoints = monster.Hitpoints;
entity.Body = monster.Mesh;
entity.Level = monster.Level;
entity.Defence = 5000;
entity.X = client.Entity.X;
entity.Y = client.Entity.Y;
entity.UID = 417111;
entity.MapID = client.Entity.MapID;
entity.SendUpdates = true;
client.Map.RemoveEntity(entity);
client.Map.AddEntity(entity);
break;
break;
}
}
break;
}
#endregion
|
الذين يشاهدون محتوى الموضوع الآن : 11 ( الأعضاء 0 والزوار 11) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
اضافه ال house | محمد ياسر | تطوير سيرفرات كونكر | 23 | 2024-10-18 02:16 PM |
اضافه رون | medo2020 | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-04-30 06:04 PM |
اضافه الرنز | medo2020 | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2020-04-29 07:51 AM |
اضافه حرب GuildPoleWar | Hassan Emprator | تطوير سيرفرات كونكر | 2 | 2019-08-28 12:46 AM |
اضافه | Hassan Emprator | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-07-30 05:08 PM |