|
MonsterTable.cs
void Drop(Game.Entity killer)
#region CPs Drop
#region Drop
if (killer != null && killer.EntityFlag == Game.EntityFlag.Player)
{
byte times = (byte)Kernel.Random.Next(1, 2);
byte ref_times = (byte)Kernel.Random.Next(1, 60);
for (byte i = 0; i < times; i++)
{
uint Uid = 0;
byte type = (byte)Kernel.Random.Next(1, 60);
switch (type)
{
case 1: Uid = 721016; break;
case 2: Uid = 721019; 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 = (Game.Enums.Color)Kernel.Random.Next(4, 60);
floorItem.Item.ID = Uid;
floorItem.Item.MaximDurability = floorItem.Item.Durability = 65535;
floorItem.Item.UID = Network.GamePackets.ConquerItem.ItemUID.Next;
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
#endregion
case 2: Uid = 721019; break;
case 3: Uid = 721019; break;
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
اضافة الموتوسكل داخل اللعبه | محمد ياسر | تطوير سيرفرات كونكر | 74 | 2024-11-20 12:07 AM |
سستم شحن كروت الشحن داخل الجيم | محمد ياسر | تطوير سيرفرات كونكر | 26 | 2023-07-09 03:28 PM |
تعديل علي توبات و ان بي سي هات | Tefa | تطوير سيرفرات كونكر | 2 | 2019-09-26 07:11 AM |
npcs تسجيل حساب داخل اللعبه | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-04-27 10:56 PM |
متجر شحن داخل اللعبه | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-04-20 11:13 AM |