عرض مشاركة واحدة
قديم 2020-03-13, 03:12 PM
المشاركة 4
megokarika
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: طلب تعديل على الكود دا سورس رايزو

دا كود اسكلة ال fatalspin بتاعت النينجا تمام... دلوقتي الاسكله دي قويه فشخ فشخ عاوز اعرف بقى فين المكان اللي هعدل فيه هنا عشان اقللها شويه بعد اذنكوا


ونفس الحال عندي اسكلة الفيزيكال ل windwalker ضعيفه برضو مش عارف اعدل على ايه




كود:
 case (ushort)enums.spellid.fatalspin:
                        {

                            try
                            {
                                
user.sendscreen(stream.interactioncreate(&attack), true);
                                
msgspellanimation msgspell = new msgspellanimation(user.entity.uid0attack.xattack.yclientspell.idclientspell.levelclientspell.usespellsoul);
                                
algoritms.inlinealgorithm line = new algoritms.inlinealgorithm(user.entity.xattack.xuser.entity.yattack.yuser.mapdbspell.range0clientspell.id);

                                
byte linerange 2;
                                
uint experience 0;

                                foreach (
interfaces.imapobject target in user.screen.objects)
                                {
                                    
game.entity attacked target as game.entity;
                                    if (
target.mapobjtype == mapobjecttype.monster)
                                    {
                                        if (
kernel.getdistance(user.entity.xuser.entity.yattacked.xattacked.y) < dbspell.range)
                                        {
                                            if (
line.inline(attacked.xattacked.ylinerange))
                                            {
                                                if (
checkattack.canattackmonster.verified(userattackeddbspell))
                                                {
                                                    
msgspellanimation.spellobj animationobj;
                                                    
calculate.physical.onmonster(user.entityattackeddbspellout animationobj);
                                                    
animationobj.damage calculate.base.calculatesoul(animationobj.damageclientspell.usespellsoul);
                                                    
experience += receiveattack.monster.execute(streamanimationobjuserattacked);
                                                    
msgspell.targets.enqueue(animationobj);

                                                }
                                            }
                                        }
                                    }
                                }
                                foreach (
interfaces.imapobject targer in user.screen.objects)
                                {
                                    var 
attacked targer as game.entity;
                                    if (
targer.mapobjtype == mapobjecttype.entity && user.entity.uid != targer.uid)
                                    {
                                        if (
kernel.getdistance(user.entity.xuser.entity.ytarger.xtarger.y) < dbspell.range)
                                        {
                                            if (
line.inline(attacked.xattacked.ylinerange))
                                            {
                                                if (
checkattack.canattackplayer.verified(userattackeddbspell))
                                                {
                                                    
msgspellanimation.spellobj animationobj;
                                                    
calculate.physical.onplayer(user.entityattackeddbspellout animationobj);
                                                    
animationobj.damage calculate.base.calculatesoul(animationobj.damageclientspell.usespellsoul);
                                                    
receiveattack.player.execute(stream,animationobjuserattacked);
                                                    
msgspell.targets.enqueue(animationobj);
                                                }
                                            }
                                        }
                                    }
                                }
                                foreach (
interfaces.imapobject targer in user.screen.objects)
                                {
                                    var 
attacked targer as network.gamepackets.sobnpcspawn;
                                    if (
targer.mapobjtype == mapobjecttype.sobnpc)
                                    {
                                        if (
kernel.getdistance(user.entity.xuser.entity.ytarger.xtarger.y) < dbspell.range)
                                        {
                                            if (
line.inline(attacked.xattacked.ylinerange))
                                            {
                                                if (
checkattack.canattacknpc.verified(userattackeddbspell))
                                                {
                                                    
msgspellanimation.spellobj animationobj;
                                                    
calculate.physical.onnpcs(user.entityattackeddbspellout animationobj);
                                                    
animationobj.damage calculate.base.calculatesoul(animationobj.damageclientspell.usespellsoul);
                                                    
experience += receiveattack.npc.execute(streamanimationobjuserattacked);
                                                    
msgspell.targets.enqueue(animationobj);
                                                }
                                            }
                                        }
                                    }
                                }
                                
updates.increaseexperience.up(streamuserexperience);
                                
updates.updatespell.checkupdate(streamuserattackexperiencedbspells);
                                
msgspell.setstream(stream); msgspell.send(user);

                            }
                            catch (
exception e)
                            {
                                
console.writeline(e.tostring());
                            }

                            break;
                        } 
انا نفس المشكلة ممكن تديني الكود بعد التعديل ؟