عرض مشاركة واحدة
قديم 2019-08-05, 04:09 AM
المشاركة 15
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: طلب بخصوص الارينا
امسح ده

كود:
#region Other Pet & Clones 
                                
if (pClient.Entity.MyClones.Count 0
                                { 
                                    foreach (var clone 
in pClient.Entity.MyClones.Values
                                    { 
                                        if (clone == 
null) continue; 
                                        if (
Kernel.GetDistance(clone.X, clone.YOwner.Entity.XOwner.Entity.Y) <= 18 && !Contains(clone.UID)) 
                                        { 
                                            if (!clone.
Dead
                                                clone.
SendSpawn(Owner); 
                                        } 
                                    } 
                                } 
                                if (
pClient.Pet.Pets.Count 0
                                { 
                                    foreach (var 
pet in pClient.Pet.Pets.Values
                                    { 
                                        if (
pet == null) continue; 
                                        if (
pet.Entity == null) continue; 
                                        if (
Kernel.GetDistance(pet.Entity.Xpet.Entity.YOwner.Entity.XOwner.Entity.Y) <= 18 && !Contains(pet.Entity.UID)) 
                                        { 
                                            if (!
pet.Entity.Dead
                                                
pet.Entity.SendSpawn(Owner); 
                                        } 
                                    } 
                                } 
                                
#endregion 
                            

                        } 
                    } 
                } 
                
#region My Pet & Clones 
                
if (Owner.Entity.MyClones.Count 0
                { 
                    foreach (var clone 
in Owner.Entity.MyClones.Values
                    { 
                        if (clone == 
null) continue; 
                        if (
Kernel.GetDistance(clone.X, clone.YOwner.Entity.XOwner.Entity.Y) <= 18 && !Contains(clone.UID)) 
                        { 
                            if (!clone.
Dead
                                clone.
SendSpawn(Owner); 
                        } 
                    } 
                } 
                if (
Owner.Pet.Pets.Count 0
                { 
                    foreach (var 
pet in Owner.Pet.Pets.Values
                    { 
                        if (
pet == null) continue; 
                        if (
pet.Entity == null) continue; 
                        if (
Kernel.GetDistance(pet.Entity.Xpet.Entity.YOwner.Entity.XOwner.Entity.Y) <= 18/* && !Contains(pet.Entity.UID)*/
                        { 
                            if (!
pet.Entity.Dead
                                
Owner.Send(pet.Entity.SpawnPacket); 
                            
//  pet.Entity.SendSpawn(Owner, false); 
                        

                    } 
                } 
                
#endregion 
                #endregion