Team-TQ

مرجبا بك فى منتدى
TeamTQ
نتمنى انت تكون فى تمام الصحة والعافيه


انضم إلى المنتدى ، فالأمر سريع وسهل

Team-TQ

مرجبا بك فى منتدى
TeamTQ
نتمنى انت تكون فى تمام الصحة والعافيه

Team-TQ

هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.
Team-TQ

مساعده الاعضاء وشوروحات السيرفرات


    Epic Taoist Screen.cs Code By ElMistro

    Mr.MOSTAFA
    Mr.MOSTAFA
    مؤسس المنتدى
    مؤسس المنتدى


    الدولة : مصر
    عدد المساهمات : 40
    نقاط : 6444
    التقيم : 11
    تاريخ التسجيل : 02/05/2013
    العمر : 25
    الموقع : teamtq.yoo7.com

    Epic Taoist Screen.cs Code By ElMistro Empty Epic Taoist Screen.cs Code By ElMistro

    مُساهمة من طرف Mr.MOSTAFA الجمعة 22 مايو 2015, 8:41 pm



    ابحث عن ده

    الكود:

    private static void itemsCallback(GameClient client, int time)

    وانزل لحد

    الكود:

                            if (item.Type == FloorItem.Effect)
                            {

    وبعدين حط تحتيها ده

    الكود:

                                if (item.ItemID == FloorItem.FlameLotus || item.ItemID == FloorItem.AuroraLotus)
                                {
                                    if (item.OnFloor.AddSeconds(8).Next(time: time))
                                    {
                                        IEnumerable<Client.GameClient> array = null;
                                        Database.SpellInformation Spell = null;
                                        if (item.ItemID == FloorItem.FlameLotus)
                                        {
                                            Spell = Database.SpellTable.GetSpell(12380, 6);
                                            if (item.Owner.Team != null)
                                            {
                                                array = Kernel.GamePool.Values.Where
                                                (x =>
                                                Kernel.GetDistance(x.Entity.X, x.Entity.Y, item.X, item.Y) <= Spell.Range &&
                                                x.Entity.Dead == true &&
                                                item.Owner.Team.IsTeammate(x.Entity.UID)
                                                );
                                            }
                                            else if (item.Owner.Guild != null)
                                            {
                                                array = Kernel.GamePool.Values.Where
                                                (x =>
                                                Kernel.GetDistance(x.Entity.X, x.Entity.Y, item.X, item.Y) <= Spell.Range &&
                                                x.Entity.Dead == true && x.Entity.GuildID == item.Owner.Entity.GuildID
                                                );
                                            }
                                            else if (item.Owner.Entity.GetClan != null)
                                            {
                                                array = Kernel.GamePool.Values.Where
                                                (x =>
                                                Kernel.GetDistance(x.Entity.X, x.Entity.Y, item.X, item.Y) <= Spell.Range &&
                                                x.Entity.Dead == true && x.Entity.ClanId == item.Owner.Entity.ClanId
                                                );
                                            }
                                            else
                                            {
                                                array = Kernel.GamePool.Values.Where
                                                (x =>
                                                Kernel.GetDistance(x.Entity.X, x.Entity.Y, item.X, item.Y) <= Spell.Range &&
                                                x.Entity.Dead == true
                                                );
                                            }
                                        }
                                        if (item.ItemID == FloorItem.AuroraLotus)
                                        {
                                            Spell = Database.SpellTable.GetSpell(12370, 6);
                                            if (item.Owner.Team != null)
                                            {
                                                array = Kernel.GamePool.Values.Where
                                                (x =>
                                                Kernel.GetDistance(x.Entity.X, x.Entity.Y, item.X, item.Y) <= Spell.Range &&
                                                x.Entity.Dead == true &&
                                                item.Owner.Team.IsTeammate(x.Entity.UID)
                                                );
                                            }
                                            else if (item.Owner.Guild != null)
                                            {
                                                array = Kernel.GamePool.Values.Where
                                                (x =>
                                                Kernel.GetDistance(x.Entity.X, x.Entity.Y, item.X, item.Y) <= Spell.Range &&
                                                x.Entity.Dead == true && x.Entity.GuildID == item.Owner.Entity.GuildID
                                                );
                                            }
                                            else if (item.Owner.Entity.GetClan != null)
                                            {
                                                array = Kernel.GamePool.Values.Where
                                                (x =>
                                                Kernel.GetDistance(x.Entity.X, x.Entity.Y, item.X, item.Y) <= Spell.Range &&
                                                x.Entity.Dead == true && x.Entity.ClanId == item.Owner.Entity.ClanId
                                                );
                                            }
                                            else
                                            {
                                                array = Kernel.GamePool.Values.Where
                                                (x =>
                                                Kernel.GetDistance(x.Entity.X, x.Entity.Y, item.X, item.Y) <= Spell.Range &&
                                                x.Entity.Dead == true
                                                );
                                            }
                                        }
                                        foreach (GameClient pClient in array)
                                        {
                                            if (pClient == null) return;
                                            if (pClient.Entity == null) return;
                                            if (pClient.Entity.UID != item.Owner.Entity.UID)
                                            {
                                                if (Spell.ID == 12370)
                                                {
                                                    SpellUse suse = new SpellUse(true);
                                                    suse.Attacker = item.Owner.Entity.UID;
                                                    suse.SpellID = 1100;
                                                    suse.SpellLevel = 0;
                                                    suse.X = pClient.Entity.X;
                                                    suse.Y = pClient.Entity.Y;
                                                    suse.AddTarget(client.Entity.UID, 0, null);
                                                    pClient.Entity.Action =
                                                    Game.Enums.ConquerAction.None;
                                                    pClient.ReviveStamp = Time32.Now;
                                                    pClient.Attackable = false;
                                                    pClient.Entity.TransformationID = 0;
                                                    pClient.Entity.RemoveFlag((ulong)Update.Flags.Dead);
                                                    pClient.Entity.RemoveFlag((ulong)Update.Flags.Ghost);
                                                    pClient.Entity.Hitpoints = pClient.Entity.MaxHitpoints;
                                                    pClient.Entity.Ressurect();
                                                    pClient.SendScreen(suse, true);
                                                }
                                            }
                                        }
                                        item.Type = Network.GamePackets.FloorItem.RemoveEffect;
                                        client.Map.RemoveFloorItem(item);
                                        client.RemoveScreenSpawn(item, true);
                                    }
                                }
                                else

    وبعدين ابحث عن دى

    الكود:

    #region Items + map effects

    وانزل لحد

    الكود:

                        if (item.Type == FloorItem.Effect)
                        {

    وضيف دول تحتيهم

    الكود:

                            if (item.ItemID == FloorItem.FlameLotus || item.ItemID == FloorItem.AuroraLotus)
                            {
                                if (item.OnFloor.AddSeconds(8).Next(time: Time32.Now.AllMilliseconds()))
                                {
                                    item.Type = Network.GamePackets.FloorItem.RemoveEffect;
                                    foreach (Interfaces.IMapObject _obj in Objects)
                                        if (_obj != null)
                                            if (_obj.MapObjType == MapObjectType.Player)
                                                (_obj as Entity).Owner.Send(item);
                                    Map.RemoveFloorItem(item);
                                }
                                else
                                    item.SendSpawn(Owner, false);
                            }
                            else

    كده تمام
    شكرا للمايسترو وياريت حد ينزل شرح ازاى يخلى الاسكلات تشتغل

      مواضيع مماثلة

      -

      أنشرنا على المواقع الإجتماعية :
      FacebookTwitterEmailWindows LiveTechnoratiDeliciousDiggStumbleponMyspaceLikedin

      فيس بوكى

      مركز رفع للمنتدى


      القران الكريم

      الزائرون

      معلومات العضو والمنتدى

      معلومات عنك انت متسجل الدخول بأسم {زائر}. آخر زيارة لك الخميس 01 يناير 1970. لديك0مشاركة.
      معلومات عن المنتدى اسم المنتدى :Team-TQ. عمر المنتدى بالأيام :4024 يوم. عدد المواضيع في المنتدى :38 موضوع. عدد الأعضاء : 77 عضو. آخر عضو مسجل : m0127154278 فمرحباُ به.
      الوقت/التاريخ الآن هو الأربعاء 08 مايو 2024, 5:39 am