عرض مشاركة واحدة
قديم 2020-03-09, 11:54 AM
المشاركة 3
MRonlineGvrix
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: شغال بسورس 3d الى كان بيتبياع ب 1000 جنية
بدلها با الي عندك


كود:
[PHP]                                #region WhirlwindKick
                                
case 10415:
                                    {
                                        if (
Time32.Now attacker.SpellStamp.AddMilliseconds(500))
                                        {
                                            
attacker.AttackPacket null; return;
                                        }
                                        if (
Kernel.GetDistance(attacker.Xattacker.YXY) <= 400)
                                        {
                                            if (
CanUseSpell(spellattacker.Owner))
                                            {
                                                
PrepareSpell(spellattacker.Owner);

                                                
SpellUse suse = new SpellUse(true);
                                                
suse.Attacker attacker.UID;
                                                
suse.SpellID spell.ID;
                                                
suse.SpellLevel 0;
                                                
suse.= (ushort)Kernel.Random.Next(310);
                                                
suse.0;
                                                
//suse.SpellLevelHu = client_Spell.LevelHu2;
                                                
if (Kernel.GetDistance(attacker.Xattacker.YXY) <= 500)
                                                {
                                                    for (
int c 0attacker.Owner.Screen.Objects.Lengthc++)
                                                    {
                                                        
//For a multi threaded application, while we go through the collection
                                                        //the collection might change. We will make sure that we wont go off  
                                                        //the limits with a check.
                                                        
if (>= attacker.Owner.Screen.Objects.Length)
                                                            break;
                                                        
Interfaces.IMapObject _obj attacker.Owner.Screen.Objects[c];
                                                        if (
_obj == null)
                                                            continue;
                                                        if (
_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Entity)
                                                        {
                                                            
attacked _obj as Entity;
                                                            if (
Kernel.GetDistance(attacker.Xattacker.Yattacked.Xattacked.Y) <= spell.Range)
                                                            {
                                                                if (
CanAttack(attackerattackedspellattack.AttackType == Attack.Ranged))
                                                                {
                                                                    var 
damage Game.Attacking.Calculate.Melee(attackerattackedref attack);
                                                                    
damage = (uint)(damage 0.570);
                                                                    
suse.Effect1 attack.Effect1;
                                                                    
ReceiveAttack(attackerattackedattackref damagespell);
                                                                    
attacked.Stunned true;
                                                                    
attacked.StunStamp Time32.Now;
                                                                    
suse.AddTarget(attackeddamageattack);

                                                                }
                                                            }
                                                        }
                                                    }
                                                    
attacker.AttackPacket null;
                                                }
                                                else
                                                {
                                                    
attacker.AttackPacket null; return;
                                                }
                                                
attacker.Owner.SendScreen(susetrue);
                                                
attacker.SpellStamp Time32.Now;
                                                
suse.Targets = new SafeDictionary<uintSpellUse.DamageClass>();
                                                
attacker.AttackPacket null; return;
                                            }
                                            
attacker.AttackPacket null;
                                        }
                                        
attacker.AttackPacket null; return;
                                    }
                                
#endregion
                                #endregion 

[/PHP]