عرض مشاركة واحدة
قديم 2019-08-22, 08:36 PM
المشاركة 3
Avengers-Co
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة في الشخصية الجديدة
ممكن تعدل علي دمج بتاعها من خلال الاضافه في السورس
bomb.cs
ابحث عن

كود:
case (ushort)enums.spellid.crackingshock

بدله ب ده

كود:
case (ushort)enums.spellid.crackingshock:
                        {
                            
msgspellanimation msgspell = new msgspellanimation(user.entity.uid
                                
0attack.xattack.yclientspell.id
                                
clientspell.levelclientspell.usespellsoul);
                            
uint experience 0;

                            foreach (
interfaces.imapobject target in user.screen.objects)
                            {
                                if (
target.mapobjtype == mapobjecttype.monster)
                                {
                                    
game.entity attacked target as game.entity;
                                    if (
calculate.base.getdistance(attack.xattack.yattacked.xattacked.y) < dbspell.range 3)
                                    {
                                        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);
                                            
user.messagebox("100");
                                            
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 (
calculate.base.getdistance(attack.xattack.yattacked.xattacked.y) < dbspell.range 3)
                                    {
                                        if (
checkattack.canattackplayer.verified(userattackeddbspell))
                                        {
                                            
msgspellanimation.spellobj animationobj;
                                            
calculate.physical.onplayer(user.entityattackeddbspellout animationobj);
                                            
animationobj.damage calculate.base.calculatesoul(animationobj.damageclientspell.usespellsoul);
                                            
animationobj.damage animationobj.damage 20 100;
                                            
receiveattack.player.execute(streamanimationobjuserattacked);

                                            
msgspell.targets.enqueue(animationobj);
                                        }
                                    }
                                }
                            }
                            foreach (
interfaces.imapobject targer in user.screen.objects)
                            {
                                if (
targer.mapobjtype == mapobjecttype.sobnpc)
                                {
                                    var 
attacked targer as network.gamepackets.sobnpcspawn;
                                    if (
calculate.base.getdistance(attack.xattack.yattacked.xattacked.y) < dbspell.range 3)
                                    {
                                        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);
                            break;
                        } 

رقم 20 كل ما تقلله ضربه هتقل كل ما تزوده الضربه هتزيد
او من خلال bin\debug\database\magictype.txt

رقم الاسكله 15729
رقم الي هتعدل عليه 30300
تسلم ياريس