قديم 2019-07-25, 04:21 PM
المشاركة 2
محمد ياسر
.::صاحب المنتدي قرر الاستغناء عنه::.
  • غير متواجد
افتراضي رد: عندي 3مشاكل
يلغق لوضع اكثر من مشكله في الموضوع

قديم 2019-07-25, 05:30 PM
المشاركة 3
Rider
.:: عضو خبير ::.
  • غير متواجد
Thumbs down رد: عندي 3مشاكل
تم حل مشكلة بوينتات في موضوع سابق
https://code.vpscairo.com/showthread.php?t=1016
مشكلة ان الشخصيات بتضرب بسرعه
هنفتح handle.cs
هنبحث عن

كود:
  if (!pass && attack.AttackType != Attack.Magic)
                        { 

لو لقيت تحتها

كود:
int milliSeconds 1000 attacker.Agility decrease;
                            if (
milliSeconds || milliSeconds 5000)
                                
milliSeconds 0

امسح الكود كله الي انا موضحهولك تحت ده

كود:
if (!pass && attack.AttackType != Attack.Magic)
                        {
                            
int milliSeconds 1000 attacker.Agility decrease;
                            if (
milliSeconds || milliSeconds 5000)
                                
milliSeconds 0;
                            if (
Time32.Now attacker.AttackStamp.AddMilliseconds(milliSeconds))
                                return;

                            
attacker.AttackStamp Time32.Now;
                        } 

بعدها سيرش علي

كود:
  if (!pass && attack.AttackType == Attack.Magic

هتلاقي كود بالشكل ده


كود:
  if (!pass && attack.AttackType == Attack.Magic)
                        {
                            if (!(
doWep1Spell || doWep2Spell))
                            {
                                if (
SpellID == 11960 || SpellID == 1045 || SpellID == 1046 || SpellID == 11005 || SpellID == 11000 || SpellID == 1100// FB and SS
                                
{
                                    
//do checks
                                
}
                                else
                                {
                                    
int milliSeconds 1000 attacker.Agility decrease;
                                    if (
milliSeconds || milliSeconds 5000)
                                        
milliSeconds 0;
                                    if (
Time32.Now attacker.AttackStamp.AddMilliseconds(milliSeconds))
                                        return;
                                }

                                
attacker.AttackStamp Time32.Now;
                            }
                        } 

امسحه و حط ده مكانه


كود:
 if (!pass && attack.AttackType == Attack.Magic)
                        {
                            if (!(
doWep1Spell || doWep2Spell))
                            {
                                if (
SpellID == 11960 || SpellID == 1045 || SpellID == 1046 || SpellID == 11005 || SpellID == 11000 || SpellID == 1100// FB and SS
                                
{
                                    
//do checks
                                
}
                               

                                
attacker.AttackStamp Time32.Now;
                            }
                        } 

بس كده

اما بالنسبه لانه بيضرب من بعيد ف ده راجع للاسكله نفسها و ممكن تعدل عليها


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



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

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



الساعة الآن 01:53 AM

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