|
var infos = Database.ConquerItemInformation.BaseInformations[item];
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, 8);
floorItem.Item.ID = item;
floorItem.Item.MobDropped = true;
// floorItem.Item.MaximDurability = infos.Durability;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.Item.StackSize = 1;
floorItem.Item.MaxStackSize = infos.StackSize;
floorItem.ItemID = item;
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.Owner = killer.Owner;
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);
}
var infos = Database.ConquerItemInformation.BaseInformations[item];
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, 8);
floorItem.Item.ID = item;
floorItem.Item.MobDropped = true;
// floorItem.Item.MaximDurability = infos.Durability;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.Item.StackSize = 1;
floorItem.Item.MaxStackSize = infos.StackSize;
floorItem.ItemID = item;
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.Owner = killer.Owner;
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);
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكله بسيطه ارجو الحل | محمد مسعد | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2021-09-03 12:59 PM |
حل مشكله لوجه الله | egy-conquer | مشكلات السيرفيرات كونكر الشخصيه | 0 | 2021-08-16 01:15 AM |
مشكله بسيطه اجدعان | mohamedmedo | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-03-24 09:52 PM |
مشكله بسيطه بخصوص البوكر | bosha1 | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-02-17 04:45 PM |
بعد اذنك الرجاله مشكله بسيطه | Eslamahmed | مشكلات السيرفيرات كونكر الشخصيه | 16 | 2019-08-05 04:16 AM |