منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://code.vpscairo.com/forumdisplay.php?f=12)
-   -   شغال بسورس 3d الى كان بيتبياع ب 1000 جنية (https://code.vpscairo.com/showthread.php?t=3930)

megokarika 2020-03-07 11:27 PM

شغال بسورس 3d الى كان بيتبياع ب 1000 جنية
 
شغال بسورس 3D الى كان بيتبياع ب 1000 جنية دا عنوان الموضوع بتاع السورس الى انا شغال بيه حاليه

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

whirlwindkick

ElSaher 2020-03-08 09:27 PM

رد: شغال بسورس 3d الى كان بيتبياع ب 1000 جنية
 
من Handle يا حوب

MRonlineGvrix 2020-03-09 11:54 AM

رد: شغال بسورس 3d الى كان بيتبياع ب 1000 جنية
 
بدلها با الي عندك

كود PHP:

[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]

megokarika 2020-03-09 12:54 PM

رد: شغال بسورس 3d الى كان بيتبياع ب 1000 جنية
 
اقتباس:

المشاركة الأصلية كتبت بواسطة mronlinegvrix (المشاركة 31601)
بدلها با الي عندك

كود PHP:

[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]


طبب كددا هوو اااللااتاك اى بقاا شديد وللاا تتعبان ووللاا اى ااا ااانننا مش فهم

محمد ياسر 2020-03-09 01:35 PM

رد: شغال بسورس 3d الى كان بيتبياع ب 1000 جنية
 
magictype.cs
سيرش
كود PHP:

spell.Damage int.Parse(line[10]); 

تحتها ضيف
كود PHP:

  if (spell.ID == (ushort)Game.Enums.SpellID.WhirlwindKick)
                            
spell.Damage spell.Damage *(100)/100

تغير رقم 100 الي بين قوسين دول وتعمله علي حسب ماتحتاج قوي او ضعيف هتزودها الاتاك هيزيد هتقللها الاتاك هيقل

Rider 2020-03-09 02:06 PM

رد: شغال بسورس 3d الى كان بيتبياع ب 1000 جنية
 
magictype.cs
سيرش
كود PHP:

spell.Damage int.Parse(line[10]); 

تحتها ضيف
كود PHP:

  if (spell.ID == (ushort)Game.Enums.SpellID.WhirlwindKick)
                            
spell.Damage spell.Damage *(100)/100

100 الي بين قوسين دول هتزودها الاتاك هيزيد هتقللها الاتاك هيقل


الساعة الآن 08:27 PM

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