منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://code.vpscairo.com/forumdisplay.php?f=12)
-   -   طلب بخصوص الارينا (https://code.vpscairo.com/showthread.php?t=1263)

Rider 2019-08-04 12:44 PM

رد: طلب بخصوص الارينا
 
Screen.cs
سيرش علي
كود PHP:

#region Entitys 

بدله ب ده
كود PHP:

#region Entitys
                
CleanUp(spawnWith);
                if (
Owner.Entity.MapID == 1002)
                {
                    foreach (var 
statue in Game.Statue.Statues.Values)
                    {
                        if (
statue Owner)
                        {
                            
Statue.TryAdd(statue.UIDstatue);
                        }
                        else if (
statue Owner)
                        {
                            
Game.Statue astatue;
                            
Statue.TryRemove(statue.UIDout astatue);
                        }
                    }
                }
                else
                {
                    if (
Statue.Count 0)
                        
Statue.Clear();
                }
                foreach (
GameState pClient in Kernel.GamePool.Values)
                {
                    if (
pClient == null) return;
                    if (
pClient.Entity == null) return;
                    if (
Owner == null) return;
                    if (
Owner.Entity == null) return;
                    if (
pClient.Entity.UID != Owner.Entity.UID)
                    {
                        if (
pClient.Map.ID == Owner.Map.ID)
                        {
                            
short dist Kernel.GetDistance(pClient.Entity.XpClient.Entity.YOwner.Entity.XOwner.Entity.Y);
                            if (
dist <= Constants.pScreenDistance && !Contains(pClient.Entity))
                            {
                                if (
pClient.Guild != null)
                                    
pClient.Guild.SendName(Owner);


                                if (
Owner.Guild != null)
                                    
Owner.Guild.SendName(pClient);
                                if (
pClient.Entity.InteractionInProgress && pClient.Entity.InteractionWith != Owner.Entity.UID && pClient.Entity.InteractionSet)
                                {
                                    if (
pClient.Entity.Body == 1003 || pClient.Entity.Body == 1004)
                                    {
                                        if (
pClient.Entity.InteractionX == pClient.Entity.&& pClient.Entity.== pClient.Entity.InteractionY)
                                        {
                                            
Network.GamePackets.Attack atak = new KhaledMohamed.Network.GamePackets.Attack(true);
                                            
atak.Attacker pClient.Entity.UID;
                                            
atak.Attacked pClient.Entity.InteractionWith;
                                            
atak.pClient.Entity.X;
                                            
atak.pClient.Entity.Y;
                                            
atak.AttackType 49;
                                            
atak.Damage pClient.Entity.InteractionType;
                                            
Owner.Send(atak);
                                        }
                                    }
                                    else
                                    {
                                        if (
KhaledMohamed.Kernel.GamePool.ContainsKey(pClient.Entity.InteractionWith))
                                        {
                                            
Client.GameState Cs KhaledMohamed.Kernel.GamePool[pClient.Entity.InteractionWith] as Client.GameState;
                                            if (
Cs.Entity.== pClient.Entity.InteractionX && pClient.Entity.== pClient.Entity.InteractionY)
                                            {
                                                
Network.GamePackets.Attack atak = new KhaledMohamed.Network.GamePackets.Attack(true);
                                                
atak.Attacker pClient.Entity.UID;
                                                
atak.Attacked pClient.Entity.InteractionWith;
                                                
atak.pClient.Entity.X;
                                                
atak.pClient.Entity.Y;
                                                
atak.AttackType 49;
                                                
atak.Damage pClient.Entity.InteractionType;
                                                
Owner.Send(atak);
                                            }
                                        }
                                    }
                                }
                                if (
pClient.Map.BaseID == 700)
                                {
                                    if (
Owner.InQualifier())
                                    {
                                        if (
pClient.InQualifier())
                                        {
                                            
Owner.Entity.SendSpawn(pClient);
                                            
pClient.Entity.SendSpawn(Owner);
                                            if (
pClient.Guild != null)
                                                
Owner.Entity.SendSpawn(pClientfalse);
                                            if (
Owner.Guild != null)
                                                
pClient.Entity.SendSpawn(Ownerfalse);
                                            if (
spawnWith != null)
                                                
pClient.Send(spawnWith);
                                        }
                                        else
                                        {
                                            
Owner.Entity.SendSpawn(pClient);

                                            if (
pClient.Guild != null)
                                                
Owner.Entity.SendSpawn(pClientfalse);
                                            
Add(pClient.Entity);
                                            if (
spawnWith != null)
                                                
pClient.Send(spawnWith);
                                        }
                                    }
                                    else
                                    {
                                        if (
pClient.InQualifier())
                                        {
                                            
pClient.Entity.SendSpawn(Owner);
                                            if (
Owner.Guild != null)
                                                
pClient.Entity.SendSpawn(Ownerfalse);
                                            
pClient.Screen.Add(Owner.Entity);
                                            if (
spawnWith != null)
                                                
Owner.Send(spawnWith);
                                        }
                                        else
                                        {
                                            
Owner.Entity.SendSpawn(pClient);
                                            
pClient.Entity.SendSpawn(Owner);

                                            if (
pClient.Guild != null)
                                                
Owner.Entity.SendSpawn(pClientfalse);
                                            if (
Owner.Guild != null)
                                                
pClient.Entity.SendSpawn(Ownerfalse);

                                            if (
spawnWith != null)
                                                
pClient.Send(spawnWith);
                                        }
                                    }
                                }
                                else
                                {
                                    
Owner.Entity.SendSpawn(pClient);
                                    
pClient.Entity.SendSpawn(Owner);

                                    if (
pClient.Guild != null)
                                        
Owner.Entity.SendSpawn(pClientfalse);
                                    if (
Owner.Guild != null)
                                        
pClient.Entity.SendSpawn(Ownerfalse);

                                    if (
spawnWith != null)
                                        
pClient.Send(spawnWith);
                                }

                                
#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 


osama 2019-08-04 05:43 PM

رد: طلب بخصوص الارينا
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Rider (المشاركة 9661)
Screen.cs
سيرش علي
كود PHP:

#region Entitys 

بدله ب ده
كود PHP:

#region Entitys
                
CleanUp(spawnWith);
                if (
Owner.Entity.MapID == 1002)
                {
                    foreach (var 
statue in Game.Statue.Statues.Values)
                    {
                        if (
statue Owner)
                        {
                            
Statue.TryAdd(statue.UIDstatue);
                        }
                        else if (
statue Owner)
                        {
                            
Game.Statue astatue;
                            
Statue.TryRemove(statue.UIDout astatue);
                        }
                    }
                }
                else
                {
                    if (
Statue.Count 0)
                        
Statue.Clear();
                }
                foreach (
GameState pClient in Kernel.GamePool.Values)
                {
                    if (
pClient == null) return;
                    if (
pClient.Entity == null) return;
                    if (
Owner == null) return;
                    if (
Owner.Entity == null) return;
                    if (
pClient.Entity.UID != Owner.Entity.UID)
                    {
                        if (
pClient.Map.ID == Owner.Map.ID)
                        {
                            
short dist Kernel.GetDistance(pClient.Entity.XpClient.Entity.YOwner.Entity.XOwner.Entity.Y);
                            if (
dist <= Constants.pScreenDistance && !Contains(pClient.Entity))
                            {
                                if (
pClient.Guild != null)
                                    
pClient.Guild.SendName(Owner);


                                if (
Owner.Guild != null)
                                    
Owner.Guild.SendName(pClient);
                                if (
pClient.Entity.InteractionInProgress && pClient.Entity.InteractionWith != Owner.Entity.UID && pClient.Entity.InteractionSet)
                                {
                                    if (
pClient.Entity.Body == 1003 || pClient.Entity.Body == 1004)
                                    {
                                        if (
pClient.Entity.InteractionX == pClient.Entity.&& pClient.Entity.== pClient.Entity.InteractionY)
                                        {
                                            
Network.GamePackets.Attack atak = new KhaledMohamed.Network.GamePackets.Attack(true);
                                            
atak.Attacker pClient.Entity.UID;
                                            
atak.Attacked pClient.Entity.InteractionWith;
                                            
atak.pClient.Entity.X;
                                            
atak.pClient.Entity.Y;
                                            
atak.AttackType 49;
                                            
atak.Damage pClient.Entity.InteractionType;
                                            
Owner.Send(atak);
                                        }
                                    }
                                    else
                                    {
                                        if (
KhaledMohamed.Kernel.GamePool.ContainsKey(pClient.Entity.InteractionWith))
                                        {
                                            
Client.GameState Cs KhaledMohamed.Kernel.GamePool[pClient.Entity.InteractionWith] as Client.GameState;
                                            if (
Cs.Entity.== pClient.Entity.InteractionX && pClient.Entity.== pClient.Entity.InteractionY)
                                            {
                                                
Network.GamePackets.Attack atak = new KhaledMohamed.Network.GamePackets.Attack(true);
                                                
atak.Attacker pClient.Entity.UID;
                                                
atak.Attacked pClient.Entity.InteractionWith;
                                                
atak.pClient.Entity.X;
                                                
atak.pClient.Entity.Y;
                                                
atak.AttackType 49;
                                                
atak.Damage pClient.Entity.InteractionType;
                                                
Owner.Send(atak);
                                            }
                                        }
                                    }
                                }
                                if (
pClient.Map.BaseID == 700)
                                {
                                    if (
Owner.InQualifier())
                                    {
                                        if (
pClient.InQualifier())
                                        {
                                            
Owner.Entity.SendSpawn(pClient);
                                            
pClient.Entity.SendSpawn(Owner);
                                            if (
pClient.Guild != null)
                                                
Owner.Entity.SendSpawn(pClientfalse);
                                            if (
Owner.Guild != null)
                                                
pClient.Entity.SendSpawn(Ownerfalse);
                                            if (
spawnWith != null)
                                                
pClient.Send(spawnWith);
                                        }
                                        else
                                        {
                                            
Owner.Entity.SendSpawn(pClient);

                                            if (
pClient.Guild != null)
                                                
Owner.Entity.SendSpawn(pClientfalse);
                                            
Add(pClient.Entity);
                                            if (
spawnWith != null)
                                                
pClient.Send(spawnWith);
                                        }
                                    }
                                    else
                                    {
                                        if (
pClient.InQualifier())
                                        {
                                            
pClient.Entity.SendSpawn(Owner);
                                            if (
Owner.Guild != null)
                                                
pClient.Entity.SendSpawn(Ownerfalse);
                                            
pClient.Screen.Add(Owner.Entity);
                                            if (
spawnWith != null)
                                                
Owner.Send(spawnWith);
                                        }
                                        else
                                        {
                                            
Owner.Entity.SendSpawn(pClient);
                                            
pClient.Entity.SendSpawn(Owner);

                                            if (
pClient.Guild != null)
                                                
Owner.Entity.SendSpawn(pClientfalse);
                                            if (
Owner.Guild != null)
                                                
pClient.Entity.SendSpawn(Ownerfalse);

                                            if (
spawnWith != null)
                                                
pClient.Send(spawnWith);
                                        }
                                    }
                                }
                                else
                                {
                                    
Owner.Entity.SendSpawn(pClient);
                                    
pClient.Entity.SendSpawn(Owner);

                                    if (
pClient.Guild != null)
                                        
Owner.Entity.SendSpawn(pClientfalse);
                                    if (
Owner.Guild != null)
                                        
pClient.Entity.SendSpawn(Ownerfalse);

                                    if (
spawnWith != null)
                                        
pClient.Send(spawnWith);
                                }

                                
#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 



جابلى ارور هنا
https://6.top4top.net/p_1311hz9sr1.png

https://1.top4top.net/p_1311wiu562.png

https://2.top4top.net/p_131123s843.png

Rider 2019-08-04 06:09 PM

رد: طلب بخصوص الارينا
 
امسح شريجون الي فيه شدو كلون و بت مؤقت و شوف اريننا هتظبط ولا لا

osama 2019-08-04 08:23 PM

رد: طلب بخصوص الارينا
 
اقتباس:

المشاركة الأصلية كتبت بواسطة rider (المشاركة 9720)
امسح شريجون الي فيه شدو كلون و بت مؤقت و شوف اريننا هتظبط ولا لا

ممكن اسم الباكت واو الحاجة الى هبحث عنها علشان انا مش فاهم كلاامك لو حاجة اسمها انجليزى يريت احسن
علشان انا مش فاهم معنى الكلمة دى اصلن شريجون

Rider 2019-08-05 04:09 AM

رد: طلب بخصوص الارينا
 
امسح ده
كود PHP:

#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 


osama 2019-08-07 04:54 AM

رد: طلب بخصوص الارينا
 
اقتباس:

المشاركة الأصلية كتبت بواسطة rider (المشاركة 9843)
امسح ده
كود PHP:

#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 



المشكلة اتحلت بس سعات لما اخش الارينا يقوم كسبان ونا خسران فى سعتها من غير ما نقتل ولا ننط من مكنا حتا وسعات تشتغل حلو اية الحل

Rider 2019-08-07 05:12 AM

رد: طلب بخصوص الارينا
 
ايه الي بيحصل عشان يكسب ع طول ركز و قولي في حاجه بتحصل يا بتنط اول ما بتدخل يا بتمشي اول ما بتدخل .... الخ
برجاء وضعها في بوست اخر لانه تم حل مشكلة انهم مش بيشوفوا بعض

osama 2019-08-07 05:31 AM

رد: طلب بخصوص الارينا
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Rider (المشاركة 10391)
ايه الي بيحصل عشان يكسب ع طول ركز و قولي في حاجه بتحصل يا بتنط اول ما بتدخل يا بتمشي اول ما بتدخل .... الخ
برجاء وضعها في بوست اخر لانه تم حل مشكلة انهم مش بيشوفوا بعض

بص انا دخلت الارينة اهوا لما بعمل كشف لى الااعب او سعات اضغط Esc من الكي بورد يطلع ويجبلى يا خسارة يا فوز

osama 2019-08-07 05:32 AM

رد: طلب بخصوص الارينا
 
بص هوا اضافة الارينا كاملة 0 الى النهاية حوار كبير ولا اية
لو مش حوار كبير يريت لو تنزلها فى فسم التطوير علشان المشكلة دى فى معظم السورسات الى هنا
علشان وجهتنى فى كزا سورس

osama 2019-08-07 05:33 AM

رد: طلب بخصوص الارينا
 
انا حليت شغال على سورس Mr.Desha الى انا منزلو فى قسم السورسات الى اسمة حلن PlayConquer


الساعة الآن 05:01 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب