|
المشاركات 264 |
+التقييم 0.15 |
تاريخ التسجيل Nov 2019 |
الاقامة في ارض الله |
نظام التشغيل ادد معرفة |
رقم العضوية 2636 |
#region ConquerQuest
if (Name == "ConquerQuest")
{
//killer.Owner.Inventory.Add(3302815, 0, 1);
//killer.ConquerPoints += 10000;
//killer.Owner.Send(new Network.GamePackets.MsgTalk("Drop 10,000 Cps.", System.Drawing.Color.Yellow, 2005));
#region Item ID
uint ItemID = 0;
byte type1 = 15;
for (int i = 0; i < 1; i++)
{
type1 = (byte)Kernel.Random.Next(1, 15);
switch (type1)
{
case 1:
ItemID = 711214;
break;
case 2:
ItemID = 711215;
break;
case 3:
ItemID = 711216;
break;
case 4:
ItemID = 711217;
break;
case 5:
ItemID = 711218;
break;
case 6:
ItemID = 711219;
break;
case 7:
ItemID = 711220;
break;
case 8:
ItemID = 700103;
break;
case 9:
ItemID = 700123;
break;
case 10:
ItemID = 730008;
break;
case 11:
ItemID = 730007;
break;
case 12:
ItemID = 730006;
break;
case 13:
ItemID = 730005;
break;
case 14:
ItemID = 723744;
break;
case 15:
ItemID = 723700;
break;
}
if (ItemID != 0)
{
#endregion
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem floorItem = new Network.GamePackets.MsgMapItem(true);
floorItem.Item = new Network.GamePackets.MsgItemInfo(true);
floorItem.Item.Color = (COServer.Game.Enums.Color)Kernel.Random.Next(1, 4);
floorItem.Item.ID = ItemID;
floorItem.Item.MaximDurability = floorItem.Item.Durability = 65535;
floorItem.Item.UID = Server.NextItemID; ;
floorItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
floorItem.ItemID = ItemID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.MsgMapItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
}
#endregion
#region ConquerQuest
if (Name == "ConquerQuest")
{
//killer.Owner.Inventory.Add(3302815, 0, 1);
//killer.ConquerPoints += 10000;
//killer.Owner.Send(new Network.GamePackets.MsgTalk("Drop 10,000 Cps.", System.Drawing.Color.Yellow, 2005));
#region Item ID
uint ItemID = 0;
byte type1 = 15;
for (int i = 0; i < 1; i++)
{
type1 = (byte)Kernel.Random.Next(1, 15);
switch (type1)
{
case 1:
ItemID = 711214;
break;
case 2:
ItemID = 711215;
break;
case 3:
ItemID = 711216;
break;
case 4:
ItemID = 711217;
break;
case 5:
ItemID = 711218;
break;
case 6:
ItemID = 711219;
break;
case 7:
ItemID = 711220;
break;
case 8:
ItemID = 700103;
break;
case 9:
ItemID = 700123;
break;
case 10:
ItemID = 730008;
break;
case 11:
ItemID = 730007;
break;
case 12:
ItemID = 730006;
break;
case 13:
ItemID = 730005;
break;
case 14:
ItemID = 723744;
break;
case 15:
ItemID = 723700;
break;
}
if (ItemID != 0)
{
#endregion
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem floorItem = new Network.GamePackets.MsgMapItem(true);
floorItem.Item = new Network.GamePackets.MsgItemInfo(true);
floorItem.Item.Color = (COServer.Game.Enums.Color)Kernel.Random.Next(1, 4);
floorItem.Item.ID = ItemID;
floorItem.Item.MaximDurability = floorItem.Item.Durability = 65535;
floorItem.Item.UID = Server.NextItemID; ;
floorItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
floorItem.ItemID = ItemID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.MsgMapItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 3 ( الأعضاء 0 والزوار 3) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
سورس اكس كونكر 2 دى | Mr. Co | سورسات كونكر | 192 | اليوم 11:05 AM |
سورس اخر اصدار من كونكر العادية هدية من احمد فرانكو قنبلة في عالم كونكر | ahmedfathy | سورسات كونكر | 82 | 2024-08-03 09:19 AM |
الحماية من هكر كونكر | body2020 | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-05-03 12:51 AM |
مطلوب كوستة تجمع كلمة كونكر | Mawdo3jded | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-02-18 08:07 PM |
بخصوص الوحوش قليله فى السورس birdman | MRonlineGvrix | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-08-29 06:14 AM |