مشاهدة النسخة كاملة : مشكله بسيطه ان شاء الله
abuhaneen
2019-11-11, 09:55 PM
انا عاوز اخلي الايتم يقع ف الارض بدل مهوا بيجي ف الايتم ودا سطر ال عندي
Kill.Owner.Inventory.add(item,0,1)
AbuMaryam
2019-11-11, 10:37 PM
هتبدلة ب السطر دة
attacker.Owner.SendScreenSpawn(flooritem, true);
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);
}
vBulletin® v3.8.8 Beta 1, Copyright ©2000-2024, TranZ by code