قديم 2019-08-22, 05:56 PM
المشاركة 2
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة في الشخصية الجديدة
ممكن تعدل علي دمج بتاعها من خلال الاضافه في السورس
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

قديم 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
تسلم ياريس


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع



الساعة الآن 05:03 PM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.