منتدي اكواد

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

Tefa 2019-07-25 05:14 PM

رد: طلب
 
دي اسكل الايبك افكت لسورس
كود PHP:

 #region SeaBurial
                                
case 14680:
                                    {
                                        if (
CanUseSpell(spellattacker.Owner))
                                        {
                                            
PrepareSpell(spellattacker.Owner);
                                            
SpellUse suse = new SpellUse(true);
                                            
suse.Attacker attacker.UID;
                                            
suse.SpellID spell.ID;
                                            
suse.SpellLevel spell.Level;
                                            
ushort _X attacker.X_Y attacker.Y;
                                            
ushort _tX X_tY Y;
                                            
byte dist = (byte)spell.Distance;
                                            var Array = 
attacker.Owner.Screen.Objects;
                                            
InLineAlgorithm algo = new InLineAlgorithm(attacker.XXattacker.YYdist,
                                                
InLineAlgorithm.Algorithm.DDA);
                                            
attacker.X;
                                            
attacker.Y;
                                            
int i 0;
                                            for (
0algo.lcoords.Counti++)
                                            {
                                                if (
attacker.Owner.Map.Floor[
                                                    
algo.lcoords[i].Xalgo.lcoords[i].YMapObjectType.Entity]
                                                    && !
attacker.ThroughGate(algo.lcoords[i].Xalgo.lcoords[i].Y))
                                                {
                                                    
= (ushort)algo.lcoords[i].X;
                                                    
= (ushort)algo.lcoords[i].Y;
                                                }
                                                else
                                                {
                                                    break;
                                                }
                                            }
                                            
suse.X;
                                            
suse.Y;
                                            
#region floor





                                            
_String str = new _String(true);
                                            
str.UID attacker.UID;
                                            
str.TextsCount 1;
                                            
str.X;
                                            
str.Y;
                                            
str.PositionX attacker.X;
                                            
str.PositionY attacker.Y;
                                            
str.Type _String.MapEffect;
                                            
str.Texts.Add("hdhlyz-lsyujing");
                                            
attacker.Owner.SendScreen(str.ToArray(), true);







                                            
Data data = new Data(true);
                                            
data.UID attacker.UID;
                                            
data.X;
                                            
data.Y;
                                            
data.ID Data.FlashStep;
                                            
data.wParam1 attacker.X;
                                            
data.wParam2 attacker.Y;
                                            
attacker.Owner.SendScreen(datatrue);


                                            
#endregion






                                            
if (!attacker.Owner.Map.Floor[XYMapObjectType.Entitynull])
                                                return;
                                            
double disth 2.5;
                                            foreach (
Interfaces.IMapObject _obj in Array)
                                            {
                                                
bool hit false;
                                                for (
int j 0ij++)
                                                    if (
                                                        
Kernel.GetDDistance(_obj.X_obj.Y, (ushort)algo.lcoords[j].X,
                                                            (
ushort)algo.lcoords[j].Y) <= disth)
                                                        
hit true;
                                                if (
hit)
                                                {
                                                    if (
_obj.MapObjType == MapObjectType.Monster)
                                                    {
                                                        
attacked _obj as Entity;
                                                        if (
CanAttack(attackerattackedspell,
                                                            
attack.AttackType == Attack.Melee))
                                                        {
                                                            var 
damage Game.Attacking.Calculate.Melee(attackerattacked,
                                                                
ref attack);
                                                            
damage = (damage 2);
                                                            
damage = (damage 2);
                                                            
ReceiveAttack(attackerattackedattackref damagespell);


                                                            
suse.AddTarget(attacked.UIDdamageattack);
                                                        }
                                                    }
                                                    else if (
_obj.MapObjType == MapObjectType.Entity)
                                                    {
                                                        
attacked _obj as Entity;
                                                        if (
CanAttack(attackerattackedspell,
                                                            
attack.AttackType == Attack.Melee))
                                                        {
                                                            var 
damage Game.Attacking.Calculate.Melee(attackerattacked,
                                                                
ref attack);
                                                            
damage = (damage 2);
                                                            
damage = (damage 2);
                                                            
ReceiveAttack(attackerattackedattackref damagespell);


                                                            
suse.AddTarget(attacked.UIDdamageattack);
                                                        }
                                                    }
                                                    else if (
_obj.MapObjType == MapObjectType.SobNpc)
                                                    {
                                                        
attackedsob _obj as SobNpcSpawn;
                                                        if (
CanAttack(attackerattackedsobspell))
                                                        {
                                                            var 
damage Game.Attacking.Calculate.Melee(attacker,
                                                                
attackedsobref attack);
                                                            
//damage = (damage * spell.IncreaseDMG);
                                                            //damage = (damage / spell.DecreaseDMG);
                                                            
ReceiveAttack(attackerattackedsobattackdamagespell);


                                                            
suse.AddTarget(attackedsob.UIDdamageattack);
                                                        }
                                                    }
                                                }
                                            }


                                            
attacker.Owner.SendScreen(susetrue);
                                        }
                                        break;
                                    }






                                
#endregion 

و دي عاديه
لو مظبط الباتش نفس الاسكله
كود PHP:

 #region SeaBurial
                                
case 14680:
                                    {

                                        
PrepareSpell(spellattacker.Owner);
                                        
attacker.AttackPacket null;
                                        
//   attacker.Stamina -= 10;
                                        
attacker.Stamina -= spell.UseStamina;
                                        
SpellUse suse = new SpellUse(true);
                                        
suse.Attacker attacker.UID;
                                        
suse.SpellID spell.ID;
                                        
suse.SpellLevel spell.Level;
                                        
suse.X;
                                        
suse.Y;
                                        if (
attackedsob == null)
                                        {
                                            if (
CanAttack(attackerattackedspellfalse))
                                            {
                                                
attack.Effect1 Attack.AttackEffects1.None;
                                                var 
damage Game.Attacking.Calculate.Melee(attackerattackedspellref attackclient_Spell.LevelHu2);
                                                
damage = (damage 11) / 100;
                                                
suse.Effect1 attack.Effect1;
                                                
ReceiveAttack(attackerattackedattackref damagespell);
                                                
suse.AddTarget(attackeddamageattack);
                                                
attacker.Owner.SendScreen(susetrue);
                                            }
                                        }
                                        else
                                        {
                                            if (
CanAttack(attackerattackedsobspell))
                                            {
                                                
attack.Effect1 Attack.AttackEffects1.None;
                                                var 
damage Game.Attacking.Calculate.Ranged(attackerattackedsobref attack);
                                                
damage = (damage 99) / 8;
                                                
suse.Effect1 attack.Effect1;
                                            }
                                            if (
CanAttack(attackerattackedsobspell))
                                            {
                                                
attack.Effect1 Attack.AttackEffects1.None;
                                                
uint damage Game.Attacking.Calculate.Ranged(attackerattackedsobref attack);
                                                
damage = (damage 99) / 8;
                                                
suse.Effect1 attack.Effect1;

                                                
ReceiveAttack(attackerattackedsobattackdamagespell);
                                                
suse.AddTarget(attackedsobdamageattack);
                                                
attacker.Owner.SendScreen(susetrue);
                                            }
                                        }
                                        break;
                                    }
                                
#endregion 


osama 2019-07-25 05:40 PM

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

Tefa 2019-07-25 05:50 PM

رد: طلب
 
:mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: الي فوق اسكل الايبك افكت و الي تحت اسكل الايبك لو انته ضايفه للباتش

osama 2019-07-26 01:37 AM

رد: طلب
 
اقتباس:

المشاركة الأصلية كتبت بواسطة rider (المشاركة 7055)
:mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: الي فوق اسكل الايبك افكت و الي تحت اسكل الايبك لو انته ضايفه للباتش

معلشى انا الى مختش بالى


الساعة الآن 02:22 AM

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