منتدي اكواد

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

Avengers-Co 2019-08-22 05:33 PM

مشــكـلـة فـ الشخـصـية الجـديدة
 
السلام عليكم
عندي مشكلة في الشخصية الجديدة الضربة بتاعتها بتطلع ب 100 الف وشوية خاصتاً اسكلة الشاكوش CrackingShock

Rider 2019-08-22 05:56 PM

رد: مشكلة في الشخصية الجديدة
 
ممكن تعدل علي دمج بتاعها من خلال الاضافه في السورس
Bomb.cs
ابحث عن
كود PHP:

case (ushort)Enums.SpellID.CrackingShock

بدله ب ده
كود PHP:

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

Avengers-Co 2019-08-22 08:36 PM

رد: مشكلة في الشخصية الجديدة
 
اقتباس:

المشاركة الأصلية كتبت بواسطة rider (المشاركة 13005)
ممكن تعدل علي دمج بتاعها من خلال الاضافه في السورس
bomb.cs
ابحث عن
كود PHP:

case (ushort)enums.spellid.crackingshock

بدله ب ده
كود PHP:

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

تسلم ياريس


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

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