عرض مشاركة واحدة
قديم 2020-03-30, 05:09 PM
المشاركة 3
Abod ayman
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة نسخ النينج (shadowclone)ا.. حل بعد اذنكم
جرب تمسح الاسكلات من عندك وتحوط دي


كود:
                                #region ShadowClone
                                
case 12090:
                                    {
                                        if (
attacker.Owner.Map.ID == 6565 || attacker.Owner.Map.ID == 5555 || attacker.Owner.Map.ID == 2014)
                                        {
                                            
Kernel.SendWorldMessage(new Message("Mr: " attacker.Name " You Can`t Use ThisSpell Here !!!"System.Drawing.Color.RedMessage.Talk), Program.Values);
                                            return;
                                        }
                                        if (
attacker.Owner.Map.ID == 6565 || attacker.Owner.Map.ID == 5555 || attacker.Owner.Map.ID == 2014)
                                        {
                                            
Kernel.SendWorldMessage(new Message("Mr: " attacker.Name " You Can`t Use ThisSpell Here !!!"System.Drawing.Color.RedMessage.Talk), Program.Values);
                                            return;
                                        }
                                        
attacker.AttackPacket null;
                                        if (
attacker.MyClones.Count 0)
                                        {
                                            var 
clones attacker.MyClones.Values.ToArray();
                                            for (
int i 0clones.Lengthi++)
                                            {
                                                var 
item clones[i];
                                                if (
item == null)
                                                    continue;
                                                
Data data = new Data(true);
                                                
data.UID item.UID;
                                                
data.ID Network.GamePackets.Data.RemoveEntity;
                                                
attacker.Owner.SendScreen(data);
                                                
//  attacker.MyClones[item.UID] = null;
                                            
}
                                            
attacker.MyClones.Clear();
                                        }
                                        else
                                        {
                                            if (
CanUseSpell(spellattacker.Owner))
                                            {
                                                
PrepareSpell(spellattacker.Owner);
                                                
SpellUse spellUse = new SpellUse(true);
                                                
spellUse.Attacker attacker.UID;
                                                
spellUse.SpellID spell.ID;
                                                
spellUse.SpellLevel spell.Level;
                                                
spellUse.X;
                                                
spellUse.Y;
                                                
attacker.AddClone(3);
                                                if (
spell.Level >= 0)
                                                    
attacker.AddClone(0);
                                                foreach (var 
item in attacker.MyClones.Values)
                                                    
spellUse.AddTarget(item0attack);

                                                
attacker.Owner.SendScreen(spellUsetrue);
                                            }

                                        }
                                        break;
                                    }
                                
#endregion 

ياريت تكون اتحلت
ولما يجيلك ايرور في Entity كتير
هتعمل كدا هتحدد وتعمل كدا
القديم .Player.
الجديد .Entity.

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