قديم 2020-03-28, 09:01 PM
المشاركة 2
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكله ف سورس ماتريكس
reborninfomations.cs
سيرش

كود:
public unsafe void Reborn(Game.Entity playerbyte RebornClassServerSockets.Packet stream

قبل قفلة القوس بتاعتها تحت
ضيف

كود:
  #region rem r i d e r
            
using (var rec = new ServerSockets.RecycledPacket())
            {
                var 
saw rec.GetStream();
                {
                    
#region test ruen remove

                    
foreach (var item in player.Owner.Entity.RuneItem.Values)
                    {
                        if (
item.Position >= 100 || item.Position <= 125)
                        {

                            
item.Position = (ushort)211;
                            
player.Owner.Entity.RuneItem[item.UID].Position = (ushort)211;
                            
ConquerItemTable.UpdatePosition(item);
                            
player.Owner.Send(item);

                            if (
player.Owner.MySpells.ClientSpells.ContainsKey((ushort)(uint)(RuneItems.RuneSkillID(item.ID) / 100)))
                                
player.Owner.MySpells.Remove((ushort)(ushort)(uint)(RuneItems.RuneSkillID(item.ID) / 100), null);
                            
ItemUsage usage = new ItemUsage(true) { ID ItemUsage.UnequipItem };
                            
//test
                            
usage.UID item.Position;
                            
player.Owner.Send(usage);

                        }

                    }
                    
#endregion
                    #region runes
                    
if (player.Owner.MySpells.ClientSpells.ContainsKey(14250))
                    {
                        
player.Owner.MySpells.Remove(14250saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(14440))
                    {
                        
player.Owner.MySpells.Remove(14440saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(14410))
                    {
                        
player.Owner.MySpells.Remove(14410saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(1250))
                    {
                        
player.Owner.MySpells.Remove(1250saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(14530))
                    {
                        
player.Owner.MySpells.Remove(14530saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(14260))
                    {
                        
player.Owner.MySpells.Remove(14260saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(15780))
                    {
                        
player.Owner.MySpells.Remove(15780saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(14380))
                    {
                        
player.Owner.MySpells.Remove(14380saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(11180))
                    {
                        
player.Owner.MySpells.Remove(11180saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(14220))
                    {
                        
player.Owner.MySpells.Remove(14220saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(14160))
                    {
                        
player.Owner.MySpells.Remove(14160saw);

                    }
                    if (
player.Owner.MySpells.ClientSpells.ContainsKey(14160))
                    {
                        
player.Owner.MySpells.Remove(14160saw);

                    }
                    
#endregion
                    #region tr
                    
if (player.Owner.Entity.Class > 15 || player.Owner.Entity.Class < 10)
                    {

                        if (
player.Owner.MySpells.ClientSpells.ContainsKey(11986))
                        {
                            
player.Owner.MySpells.Remove(11986saw);

                        }


                        
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(11990))
                            {
                                
player.Owner.MySpells.Remove(11990stream);

                            }
                        
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(13440))
                            {
                                
player.Owner.MySpells.Remove(13440stream);

                            }
                        
                        
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(11960))
                            {
                                
player.Owner.MySpells.Remove(11960stream);

                            }
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(1250))
                            {
                                
player.Owner.MySpells.Remove(1250stream);

                            }
                        

                    }
                    
#endregion
                    #region mo
                    
if (player.Owner.Entity.Class > 65 || player.Owner.Entity.Class < 60)
                    {
                       
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(12550))
                            {
                                
player.Owner.MySpells.Remove(12550stream);

                            }
                       
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(12560))
                            {
                                
player.Owner.MySpells.Remove(12560stream);

                            }
                        
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(12570))
                            {
                                
player.Owner.MySpells.Remove(12570stream);

                            }
                      
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(14160))
                            {
                                
player.Owner.MySpells.Remove(14160stream);

                            }
                        

                      

                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(10490))
                            {
                                
player.Owner.MySpells.Remove(10490stream);

                            }
                        


                       
                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(10425))
                            {
                                
player.Owner.MySpells.Remove(10425stream);

                            }
                        

                       

                            if (
player.Owner.MySpells.ClientSpells.ContainsKey(10425))
                               
player.Owner.MySpells.Remove(10425stream);



                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10420))
                                    
player.Owner.MySpells.Remove(10420stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10421))
                                    
player.Owner.MySpells.Remove(10421stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10422))
                                    
player.Owner.MySpells.Remove(10422stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10423))
                                    
player.Owner.MySpells.Remove(10423stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10424))
                                    
player.Owner.MySpells.Remove(10424stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10405))
                                    
player.Owner.MySpells.Remove(10405stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10410))
                                    
player.Owner.MySpells.Remove(10410stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10415))
                                    
player.Owner.MySpells.Remove(10415stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10395))
                                    
player.Owner.MySpells.Remove(10395stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(10381))
                                    
player.Owner.MySpells.Remove(10381stream);

                            }
                    
#endregion
                            #region nin
                            
if (player.Owner.Entity.Class > 55 || player.Owner.Entity.Class < 50)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(6011))
                                    
player.Owner.MySpells.Remove(6011stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(6003))
                                    
player.Owner.MySpells.Remove(6003stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(6002))
                                    
player.Owner.MySpells.Remove(6002stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(6010))
                                    
player.Owner.MySpells.Remove(6010stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(6000))
                                    
player.Owner.MySpells.Remove(6000stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12070))
                                    
player.Owner.MySpells.Remove(12070stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12080))
                                    
player.Owner.MySpells.Remove(12080stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12090))
                                    
player.Owner.MySpells.Remove(12090stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(6004))
                                    
player.Owner.MySpells.Remove(6004stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11170))
                                    
player.Owner.MySpells.Remove(11170stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11180))
                                    
player.Owner.MySpells.Remove(11180stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12110))
                                    
player.Owner.MySpells.Remove(12110stream);
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14410))
                                    
player.Owner.MySpells.Remove(14410stream);


                            }
                            
#endregion
                            #region ar
                            
if (player.Owner.Entity.Class > 45 || player.Owner.Entity.Class < 40)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11670))
                                    
player.Owner.MySpells.Remove(11670stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14280))
                                    
player.Owner.MySpells.Remove(14280stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11660))
                                    
player.Owner.MySpells.Remove(11660stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11650))
                                    
player.Owner.MySpells.Remove(11650stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11620))
                                    
player.Owner.MySpells.Remove(11620stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11610))
                                    
player.Owner.MySpells.Remove(11610stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11600))
                                    
player.Owner.MySpells.Remove(11600stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11590))
                                    
player.Owner.MySpells.Remove(11590stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(8000))
                                    
player.Owner.MySpells.Remove(8000stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(8001))
                                    
player.Owner.MySpells.Remove(8001stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(8003))
                                    
player.Owner.MySpells.Remove(8003stream);
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14380))
                                    
player.Owner.MySpells.Remove(14380stream);



                            }
                            
#endregion
                            #region w
                            
if (player.Owner.Entity.Class > 25 || player.Owner.Entity.Class < 20)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12700))
                                    
player.Owner.MySpells.Remove(12700stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12690))
                                    
player.Owner.MySpells.Remove(12690stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12680))
                                    
player.Owner.MySpells.Remove(12680stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12670))
                                    
player.Owner.MySpells.Remove(12670stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12660))
                                    
player.Owner.MySpells.Remove(12660stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14270))
                                    
player.Owner.MySpells.Remove(14270stream);

                            }
                            
#endregion
                            #region wt
                            
if (player.Owner.Entity.Class > 135 || player.Owner.Entity.Class < 130)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1175))
                                    
player.Owner.MySpells.Remove(1175stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14320))
                                    
player.Owner.MySpells.Remove(14320stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14500))
                                    
player.Owner.MySpells.Remove(14500stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1170))
                                    
player.Owner.MySpells.Remove(1170stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12390))
                                    
player.Owner.MySpells.Remove(12390stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12370))
                                    
player.Owner.MySpells.Remove(12370stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(30000))
                                    
player.Owner.MySpells.Remove(30000stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1100))
                                    
player.Owner.MySpells.Remove(1100stream);

                            }
                            
#endregion
                            #region ft
                            
if (player.Owner.Entity.Class > 145 || player.Owner.Entity.Class < 140)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1002))
                                    
player.Owner.MySpells.Remove(1002stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1180))
                                    
player.Owner.MySpells.Remove(1180stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1165))
                                    
player.Owner.MySpells.Remove(1165stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1160))
                                    
player.Owner.MySpells.Remove(1160stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1150))
                                    
player.Owner.MySpells.Remove(1150stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(1120))
                                    
player.Owner.MySpells.Remove(1120stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12400))
                                    
player.Owner.MySpells.Remove(12400stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12380))
                                    
player.Owner.MySpells.Remove(12380stream);
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14220))
                                    
player.Owner.MySpells.Remove(14220stream);
                            }
                            
#endregion
                            #region pi
                            
if (player.Owner.Entity.Class > 75 || player.Owner.Entity.Class < 70)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11030))
                                    
player.Owner.MySpells.Remove(11030stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(11110))
                                    
player.Owner.MySpells.Remove(11110stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14710))
                                    
player.Owner.MySpells.Remove(14710stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14680))
                                    
player.Owner.MySpells.Remove(14680stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14720))
                                    
player.Owner.MySpells.Remove(14720stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14270))
                                    
player.Owner.MySpells.Remove(14270stream);
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14250))
                                    
player.Owner.MySpells.Remove(14250stream);
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14440))
                                    
player.Owner.MySpells.Remove(14440stream);

                            }
                            
#endregion
                            #region DW
                            
if (player.Owner.Entity.Class > 85 || player.Owner.Entity.Class < 80)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12300))
                                    
player.Owner.MySpells.Remove(12300stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(14470))
                                    
player.Owner.MySpells.Remove(14470stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12120))
                                    
player.Owner.MySpells.Remove(12120stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12130))
                                    
player.Owner.MySpells.Remove(12130stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12140))
                                    
player.Owner.MySpells.Remove(12140stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12160))
                                    
player.Owner.MySpells.Remove(12160stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12170))
                                    
player.Owner.MySpells.Remove(12170stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12200))
                                    
player.Owner.MySpells.Remove(12200stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12240))
                                    
player.Owner.MySpells.Remove(12240stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12350))
                                    
player.Owner.MySpells.Remove(12350stream);


                            }
                            
#endregion
                            #region ww
                            
if (player.Owner.Entity.Class > 165 || player.Owner.Entity.Class < 160)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12980))
                                    
player.Owner.MySpells.Remove(12980stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12940))
                                    
player.Owner.MySpells.Remove(12940stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12950))
                                    
player.Owner.MySpells.Remove(12950stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12930))
                                    
player.Owner.MySpells.Remove(12930stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12990))
                                    
player.Owner.MySpells.Remove(12990stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12960))
                                    
player.Owner.MySpells.Remove(12960stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(13000))
                                    
player.Owner.MySpells.Remove(13000stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(13030))
                                    
player.Owner.MySpells.Remove(13030stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(13020))
                                    
player.Owner.MySpells.Remove(13020stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12890))
                                    
player.Owner.MySpells.Remove(12890stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(13090))
                                    
player.Owner.MySpells.Remove(13090stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12850))
                                    
player.Owner.MySpells.Remove(12850stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12840))
                                    
player.Owner.MySpells.Remove(12840stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12970))
                                    
player.Owner.MySpells.Remove(12970stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(13080))
                                    
player.Owner.MySpells.Remove(13080stream);


                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12860))
                                    
player.Owner.MySpells.Remove(12860stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(12870))
                                    
player.Owner.MySpells.Remove(12870stream);

                            }
                            
#endregion
                            #region pi
                            
if (player.Owner.Entity.Class > 95 || player.Owner.Entity.Class < 90)
                            {
                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(15790))
                                    
player.Owner.MySpells.Remove(15790stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(15750))
                                    
player.Owner.MySpells.Remove(15750stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(15780))
                                    
player.Owner.MySpells.Remove(15780stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(15720))
                                    
player.Owner.MySpells.Remove(15720stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(15710))
                                    
player.Owner.MySpells.Remove(15710stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(15800))
                                    
player.Owner.MySpells.Remove(15800stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(15810))
                                    
player.Owner.MySpells.Remove(15810stream);

                                if (
player.Owner.MySpells.ClientSpells.ContainsKey(15770))
                                    
player.Owner.MySpells.Remove(15770stream);

                            }
                        
                    
                            
#endregion
                
}
            }
            
#endregion 



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



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

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

المواضيع المتشابهه للموضوع: مشكله ف سورس ماتريكس
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
عندي مش كله في سورس ماتريكس toteo3344 مشكلات السيرفيرات كونكر الشخصيه 1 2020-05-14 09:25 PM
مشكله ف سورس ماتريكس mohamedomar مشكلات السيرفيرات كونكر الشخصيه 4 2020-04-12 10:37 PM
مشكله ف سورس ماتريكس mohamedomar تطوير سيرفرات كونكر 1 2020-04-05 03:40 PM
مشكله الوحوش في سورس ماتريكس AliNasser مشكلات السيرفيرات كونكر الشخصيه 5 2020-02-16 10:13 AM
سورس ماتريكس قبل البروتو 3 دي Adel Abd El Hay مشكلات السيرفيرات كونكر الشخصيه 1 2019-11-29 10:14 AM


الساعة الآن 02:39 AM

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