قديم 2019-10-29, 04:26 PM
المشاركة 2
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: الموضوع التاني اهوة xd
هنروح Entity.cs

هنرمي ده

كود:
public void RiderDropItem(Entity KillerName)
        {

            if (
Owner.Inventory.Count 0)
            {
                var array = 
Owner.Inventory.Objects.ToArray();
                
uint count = (uint)(array.Length 4);
                
byte startfrom = (byte)Kernel.Random.Next((int)count);
                for (
int c 0countc++)
                {
                    
int index startfrom;
                    if (array[
index] != null)
                    {
                        {
                            if (array[
index].Lock == 0)
                            {
                                if (!array[
index].Bound && !array[index].Inscribed && array[index].ID != 723753)
                                {
                                    if (!array[
index].Suspicious && array[index].ID != 723755 && array[index].ID != 723767 && array[index].ID != 723772)
                                    {
                                        if (
Kernel.Rate(140) && array[index].ID != 723774 && array[index].ID != 723776)
                                        {
                                            var 
Item = array[index];
                                            if (
Item.ID == 3005398 || Item.ID == 3007232 || Item.ID == 3005400 || Item.ID == 3005401 || Item.ID == 3007230 || Item.ID == 3007231 ||
                                                
Item.ID == 3007115 || Item.ID == 3007116 || Item.ID == 3007117 || Item.ID == 3005399 ||
                                                
Item.ID == 3005397 || Item.ID == 3007114 || Item.ID == 3007113 || Item.ID == 3005396 || Item.ID == 3005395 || Item.ID == 3005366 || Item.ID == 3005365 || Item.ID == 193305 || Item.ID == 193445
                                                
|| Item.ID == 193525 || Item.ID == 193515
                                                 
|| Item.ID == 3005945 || Item.ID == 193495
                                                 
|| Item.ID == 193505 || Item.ID == 720828) return;
                                            if (
Item.ID >= 3007561 && Item.ID <= 3007568) return;
                                            if (
Item.ID >= 729960 && Item.ID <= 729970) return;
                                            if (
Item.ID == 723467 || Item.ID == 729304 || Item.ID == 725065 || Item.ID == 725066 || Item.ID == 2100065 || Item.ID == 1003010 || Item.ID == 1004010 || Item.ID == 3006393 || Item.ID == 711504 || Item.ID == 1100003 || Item.ID == 1100006 || Item.ID == 1100009) return;
                                            
Item.Lock 0;
                                            var 
infos Database.ConquerItemInformation.BaseInformations[(uint)Item.ID];
                                            
ushort x XY;
                                            
Game.Map Map Kernel.Maps[MapID];
                                            if (
Map.SelectCoordonates(ref xref y))
                                            {
                                                
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
                                                
Owner.Inventory.Remove(ItemEnums.ItemUse.Remove);
                                                
floorItem.Item Item;
                                                
floorItem.ValueType Network.GamePackets.FloorItem.FloorValueType.Item;
                                                
floorItem.ItemID = (uint)Item.ID;
                                                
floorItem.MapID MapID;
                                                
floorItem.MapObjType Game.MapObjectType.Item;
                                                
floorItem.x;
                                                
floorItem.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);
                                                
Owner.SendScreenSpawn(floorItemtrue);

                                            }
                                        }
                                    }

                                }
                            }
                        }
                    }
                }
            }


ف نفس كلاس هنبحث عن

كود:
public void Die(Entity killer

هننزل لحد

كود:
 Over

فوقها هنضيف

كود:
  if (Kernel.Rate(50))
                                {
                                    
RiderDropItem(Killer);
                                } 


قديم 2019-10-29, 11:04 PM
المشاركة 3
uncelsam
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: الموضوع التاني اهوة xd
هنروح entity.cs

هنرمي ده

كود:
public void riderdropitem(entity killername)
        {

            if (
owner.inventory.count 0)
            {
                var array = 
owner.inventory.objects.toarray();
                
uint count = (uint)(array.length 4);
                
byte startfrom = (byte)kernel.random.next((int)count);
                for (
int c 0countc++)
                {
                    
int index startfrom;
                    if (array[
index] != null)
                    {
                        {
                            if (array[
index].lock == 0)
                            {
                                if (!array[
index].bound && !array[index].inscribed && array[index].id != 723753)
                                {
                                    if (!array[
index].suspicious && array[index].id != 723755 && array[index].id != 723767 && array[index].id != 723772)
                                    {
                                        if (
kernel.rate(140) && array[index].id != 723774 && array[index].id != 723776)
                                        {
                                            var 
item = array[index];
                                            if (
item.id == 3005398 || item.id == 3007232 || item.id == 3005400 || item.id == 3005401 || item.id == 3007230 || item.id == 3007231 ||
                                                
item.id == 3007115 || item.id == 3007116 || item.id == 3007117 || item.id == 3005399 ||
                                                
item.id == 3005397 || item.id == 3007114 || item.id == 3007113 || item.id == 3005396 || item.id == 3005395 || item.id == 3005366 || item.id == 3005365 || item.id == 193305 || item.id == 193445
                                                
|| item.id == 193525 || item.id == 193515
                                                 
|| item.id == 3005945 || item.id == 193495
                                                 
|| item.id == 193505 || item.id == 720828) return;
                                            if (
item.id >= 3007561 && item.id <= 3007568) return;
                                            if (
item.id >= 729960 && item.id <= 729970) return;
                                            if (
item.id == 723467 || item.id == 729304 || item.id == 725065 || item.id == 725066 || item.id == 2100065 || item.id == 1003010 || item.id == 1004010 || item.id == 3006393 || item.id == 711504 || item.id == 1100003 || item.id == 1100006 || item.id == 1100009) return;
                                            
item.lock 0;
                                            var 
infos database.conqueriteminformation.baseinformations[(uint)item.id];
                                            
ushort x xy;
                                            
game.map map kernel.maps[mapid];
                                            if (
map.selectcoordonates(ref xref y))
                                            {
                                                
network.gamepackets.flooritem flooritem = new network.gamepackets.flooritem(true);
                                                
owner.inventory.remove(itemenums.itemuse.remove);
                                                
flooritem.item item;
                                                
flooritem.valuetype network.gamepackets.flooritem.floorvaluetype.item;
                                                
flooritem.itemid = (uint)item.id;
                                                
flooritem.mapid mapid;
                                                
flooritem.mapobjtype game.mapobjecttype.item;
                                                
flooritem.x;
                                                
flooritem.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);
                                                
owner.sendscreenspawn(flooritemtrue);

                                            }
                                        }
                                    }

                                }
                            }
                        }
                    }
                }
            }


ف نفس كلاس هنبحث عن

كود:
public void die(entity killer

هننزل لحد

كود:
 over

فوقها هنضيف

كود:
  if (kernel.rate(50))
                                {
                                    
riderdropitem(killer);
                                } 
شكرا يا يمعلم نردهالك في الافراح انشاء الله :d

قديم 2019-10-30, 01:16 AM
المشاركة 4
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: الموضوع التاني اهوة xd
حبيبي <3


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: الموضوع التاني اهوة xd
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
صفحه يوجي الاصدار الثاني Yu-Gi-Oh.v2 ابو حمزه9 صفحات التسجيل كونكر اونلاين 69 2024-11-04 03:03 PM
صفحة axe الاصدار الثاني محمد ياسر صفحات التسجيل كونكر اونلاين 63 2024-11-04 02:55 PM
الاصدار الثاني من سكربت شحن كونكر محمد ياسر صفحات التسجيل كونكر اونلاين 20 2024-10-26 09:37 PM
صفحة منتدي اكواد الاصدار الثاني محمد ياسر صفحات التسجيل كونكر اونلاين 70 2024-04-27 02:25 PM
حل مشكلة الاسكلات بعد الميلاد الثاني محمد ياسر تطوير سيرفرات كونكر 0 2019-04-24 08:24 AM


الساعة الآن 08:47 AM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.