|
المشاركات 258 |
+التقييم 0.13 |
تاريخ التسجيل May 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 228 |
public void DropItem(Entity Owner, params uint[] param)
{
for (int x = 0; x < param.Length; x++)
{
var infos = ConquerItemInformation.BaseInformations[param[x]];
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
FloorItem floorItem = new FloorItem(true);
floorItem.Item = new ConquerItem(true);
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = infos.ID;
floorItem.Item.Plus = 0;
floorItem.Item.StackSize = 1;
floorItem.Item.MaxStackSize = infos.StackSize;
floorItem.Item.MaximDurability = infos.Durability;
floorItem.Item.Durability = infos.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = FloorItem.FloorValueType.Item;
floorItem.ItemID = infos.ID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Owner = Owner.Owner;
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);
}
}
}
public void DropItem(Entity Owner, params uint[] param)
{
for (int x = 0; x < param.Length; x++)
{
var infos = ConquerItemInformation.BaseInformations[param[x]];
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
FloorItem floorItem = new FloorItem(true);
floorItem.Item = new ConquerItem(true);
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = infos.ID;
floorItem.Item.Plus = 0;
floorItem.Item.StackSize = 1;
floorItem.Item.MaxStackSize = infos.StackSize;
floorItem.Item.MaximDurability = infos.Durability;
floorItem.Item.Durability = infos.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = FloorItem.FloorValueType.Item;
floorItem.ItemID = infos.ID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Owner = Owner.Owner;
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);
}
}
}
public static void Refinary(
if (attacker.EntityFlag == EntityFlag.Entity)
{
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلتين مهمين | salahsayed | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-10-30 05:03 PM |
مشكلتين مهمين | salahsayed | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-10-30 03:36 PM |
عندى مشكلتين | bebo100 | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-08-25 02:22 PM |
مشكلتين | bebo100 | مشكلات السيرفيرات كونكر الشخصيه | 19 | 2019-07-27 06:58 AM |
مشكلتين مش لقلها حل | abuhaneen | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-07-11 10:30 PM |