قديم 2020-03-13, 05:13 AM
المشاركة 2
magdy
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: حل مشكلة perfection x2
متابع

قديم 2020-03-13, 02:21 PM
المشاركة 3
Users
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: حل مشكلة perfection x2
حاضر

قديم 2020-03-13, 11:25 PM
المشاركة 4
Tarek Roshdi
.:: عضو نشيط ::.
  • غير متواجد
exclamationpointss رد: حل مشكلة perfection x2
يحضرلك الخير ياغاااالي
بس عاوزين حل بعد حاااضر دي

قديم 2020-03-15, 12:25 PM
المشاركة 5
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: حل مشكلة perfection x2
وريني الكود الاسلسي و الكود بعد التعديل

قديم 2020-03-16, 12:30 AM
المشاركة 6
Tarek Roshdi
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: حل مشكلة perfection x2

كود:
            #region Perfection X2
            
byte Tiempo 0;
            new 
MsgRefineEffect().HandleLuckyStrike(attackerref Tiempo);
            if (
Kernel.Rate(Tiempo))
            {
                
Network.Writer.WriteUInt16((ushort)(<< 10), 36attack.ToArray());
                new 
MsgRefineEffect().SendEffect(attackerattackedGame.Enums.PerfectionEffect.LuckyStrike);
                
damage damage 2;
            } 

اضفتلة

كود:
            #region Perfection X2
            
if ((attacker.Perfection != null)(attacked.Perfection != null))
            {
                if ((
attacker.Perfection.Id) > (attacked.Perfection.Id))
                {
                    
byte Tiempo 0;
                    new 
MsgRefineEffect().HandleLuckyStrike(attackerref Tiempo);
                    if (
Kernel.Rate(Tiempo))
                    {
                        
Network.Writer.WriteUInt16((ushort)(<< 10), 36attack.ToArray());
                        new 
MsgRefineEffect().SendEffect(attackerattackedGame.Enums.PerfectionEffect.LuckyStrike);
                        
damage damage 2;
                    }
                }
            }
            
#endregion 


قديم 2020-03-16, 11:04 PM
المشاركة 7
Tarek Roshdi
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: حل مشكلة perfection x2
???

قديم 2020-03-17, 01:43 AM
المشاركة 8
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: حل مشكلة perfection x2
جرب تخليه بالشكل ده

كود:
 #region Perfection X2
            
if ((attacker.Perfection >0)
            {
                if ((
attacker.TotalPerfectionScore) > (attacked.TotalPerfectionScore))
                {
                    
byte Tiempo 0;
                    new 
MsgRefineEffect().HandleLuckyStrike(attackerref Tiempo);
                    if (
Kernel.Rate(Tiempo))
                    {
                        
Network.Writer.WriteUInt16((ushort)(<< 10), 36attack.ToArray());
                        new 
MsgRefineEffect().SendEffect(attackerattackedGame.Enums.PerfectionEffect.LuckyStrike);
                        
damage damage 2;
                    }
                }
            }
            
#endregion 

دي لو جت ايرور TotalPerfectionScore اكتب TotalPerfectionPoints علي حسب سورس بتاعك

قديم 2020-03-17, 02:01 AM
المشاركة 9
Tarek Roshdi
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: حل مشكلة perfection x2
جرب تخليه بالشكل ده

كود:
 #region Perfection X2
            
if ((attacker.Perfection >0)
            {
                if ((
attacker.TotalPerfectionScore) > (attacked.TotalPerfectionScore))
                {
                    
byte Tiempo 0;
                    new 
MsgRefineEffect().HandleLuckyStrike(attackerref Tiempo);
                    if (
Kernel.Rate(Tiempo))
                    {
                        
Network.Writer.WriteUInt16((ushort)(<< 10), 36attack.ToArray());
                        new 
MsgRefineEffect().SendEffect(attackerattackedGame.Enums.PerfectionEffect.LuckyStrike);
                        
damage damage 2;
                    }
                }
            }
            
#endregion 

دي لو جت ايرور TotalPerfectionScore اكتب TotalPerfectionPoints علي حسب سورس بتاعك

انا شغال ع سورس رايزو
TotalPerfectionPoints
TotalPerfectionScore
الاتنين فيهم ايرور
وللتوضيح اكتر التعديل دة عندي ف كلاس Handle

قديم 2020-03-17, 02:15 AM
المشاركة 10
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: حل مشكلة perfection x2
كود من سورس رايزو

كود:
 if(attacker.TotalPerfectionScore>attacked.TotalPerfectionScore



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



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

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



الساعة الآن 06:14 PM

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