عرض مشاركة واحدة
قديم 2019-08-20, 12:55 AM
المشاركة #12  
Tefa
تاريخ الإنضمام : Jul 2019
رقم العضوية : 358
المشاركات: 2,515
  • غير متواجد
افتراضي رد: مشكلة بخصوص اسكلة الويند ولكر thundercloud
امسح حل الي فات و ابحث عن

كود:
#region ThrillingSpook 

تحتها هتلاقي


كود:
#region ThunderCloud 

اقفلها من سالب و حط دي مكنها

كود:
#region ThunderCloud
                        
if (attacker.Name == "Thundercloud")
                        {
                            if (
attacker.Owner.Player.PKMode != Game.Enums.PKMode.PK &&
                         
attacker.Owner.Player.PKMode != Game.Enums.PKMode.Team) return;
                            if (
Kernel.GamePool.ContainsKey(attacker.OwnerUID))
                            {
                                var 
owner = Kernel.GamePool[attacker.OwnerUID];
                                var 
spell = Database.SpellTable.GetSpell(12840, owner);
                                var 
spell2 = Database.SpellTable.GetSpell(12970, owner);
                                
byte percent = 0;
                                if (
spell2 != null)
                                {
                                    if (
spell2.Level == 0) percent = 130;
                                    if (
spell2.Level == 1) percent = 140;
                                    if (
spell2.Level == 2) percent = 150;
                                    if (
spell2.Level == 3) percent = 160;
                                    if (
spell2.Level == 4) percent = 170;
                                    if (
spell2.Level == 5) percent = 180;
                                    if (
spell2.Level == 6) percent = 200;
                                }
                                
attack = new MsgInteract(true);
                                
attack.Attacker = attacker.UID;
                                
attack.Attacked = attacked.UID;
                                
attack.InteractType = Network.GamePackets.MsgInteract.Kill;
                                
attack.X = attacked.X;
                                
attack.Y = attacked.Y;
                                
attack.Damage = 1;
                                
uint damage2 = (uint)(Calculate.Melee(owner.Player, attacked, ref attack) * spell.FirstDamage / 100);
                                if (
attacker.SpawnPacket[50] == 128)//ThunderBolt
                                    
damage2 = (uint)(damage2 * percent / 100);
                                
MsgMagicEffect suse2 = new MsgMagicEffect(true);
                                
suse2.Attacker = attacker.UID;
                                
suse2.Attacker1 = attacked.UID;
                                
suse2.SpellID = 13190;
                                
suse2.X = attacked.X;
                                
suse2.Y = attacked.Y;
                                
suse2.AddTarget(attacked.UID, damage2, attack);
                                
attacker.MonsterInfo.SendScreen(suse2);
                                if (
attacked.Hitpoints <= damage2)
                                {
                                    
attacked.Die(attacker);
                                    
attack.ResponseDamage = damage2;
                                    
attacker.MonsterInfo.SendScreen(attack);
                                }
                                else
                                {
                                    
attacked.Hitpoints -= damage2;
                                }
                                return;
                            }
                            else
                                return;
                        }
                        
#endregion