منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   حل مشكلة الاسكلات بعد الميلاد الثاني (https://code.vpscairo.com/showthread.php?t=156)

محمد ياسر 2019-04-24 08:24 AM

حل مشكلة الاسكلات بعد الميلاد الثاني
 

ندخل في الموضوع علي طول
في مشكله لما تنزل ميلاد 2 تظهر مشكله في الاسكلات
الحل
GameClient Or GameState
ابحث عن
كود PHP:

  #region Spells 

لما توصلها , بدلها بدول ,
كود PHP:

#region Spells 
            
Interfaces.ISkill[] spells Spells.Values.ToArray(); 
            foreach (
Interfaces.ISkill spell in spells
            { 
                
spell.PreviousLevel spell.Level
                
spell.Level 0
                
spell.Experience 0
                
#region Pirate 
                
if (PreviousClass == 75
                { 
                    if (
Entity.Class != 71
                    { 
                        switch (
spell.ID
                        { 
                            
                            case 
11110
                            case 
11040
                            case 
11050
                            case 
11060
                            case 
11100
                            case 
11120
                            case 
11130
                            case 
11030
                            case 
11140
                                
RemoveSpell(spell); 
                                break; 
                        } 
                    } 
                } 
                
#endregion 
                #region Monk 
                
if (PreviousClass == 65
                { 
                    if (
Entity.Class != 61
                    { 
                        switch (
spell.ID
                        { 
                            case 
10490
                            case 
10400
                            case 
10395
                            case 
10430
                            case 
10410
                            case 
10415
                            case 
10381
                                
RemoveSpell(spell); 
                                break; 
                        } 
                    } 
                } 
                
#endregion 
                #region Warrior 
                
if (PreviousClass == 25
                { 
                    if (
Entity.Class != 21
                    { 
                        switch (
spell.ID
                        { 
                            case 
1025
                            case 
11160
                            case 
11200
                                if (
spell.ID == 1025
                                { 
                                    if (
Entity.Class != 132
                                        
RemoveSpell(spell); 
                                } 
                                else 
                                { 
                                    
RemoveSpell(spell); 
                                } 
  
                                break; 
                        } 
                    } 
                } 
                
#endregion 
                #region Ninja 
                
if (toClass != 51
                { 
                    switch (
spell.ID
                    { 
                        case 
6010
                        case 
6005
                        case 
6022
                        case 
6000
                        case 
6011
                        case 
6017
                        case 
12070://TwlightDance 
                        
case 11170
                        case 
12080
                        case 
12090
                        case 
11180
                        case 
11230
                            
RemoveSpell(spell); 
                            break; 
                    } 
                } 
                
#endregion 
                #region Trojan 
                
if (toClass != 11
                { 
                    switch (
spell.ID
                    { 
                        case 
1115
                        case 
1130
                        case 
11980
                        case 
11970
                        case 
11990
                        case 
11960
                        case 
1200
  
                            
RemoveSpell(spell); 
                            break; 
                    } 
                } 
                
#endregion 
                #region Archer 
                
if (toClass != 41
                { 
                    switch (
spell.ID
                    { 
                        case 
8001
                        
//RapidFire// 
                        
case 8000
                        case 
8003
                        
//Intensify// 
                        
case 9000
                        case 
8002
                        
//ArrowRain// 
                        
case 8030
                        
//ScatterFire// 
                        
case 8010
                        case 
8031
                        
//Fly// 
                        
case 8020
                        
//KineticSpark// 
                        
case 11590
                        
//DaggerStorm// 
                        
case 11600
                        
//BladeFlurry// 
                        
case 11610
                        
//PathOfShadow// 
                        
case 11620
                        case 
11650
                        case 
11660
                        case 
11670
                            
RemoveSpell(spell); 
                            break; 
                    } 
                } 
                
#endregion 
                #region WaterTaoist 
                
if (PreviousClass == 135
                { 
                    if (
toClass != 132
                    { 
                        switch (
spell.ID
                        { 
                            case 
1000
                            case 
1001
                            case 
1010
                            case 
1125
                            case 
1100
                            case 
12390
                            case 
8030
                            case 
10203
                            case 
3090
                            case 
1085
                                
RemoveSpell(spell); 
                                break; 
                            case 
1050
                            case 
1175
                            case 
1170
                                if (
toClass != 142
                                    
RemoveSpell(spell); 
                                break; 
                        } 
                    } 
                } 
                
#endregion 
                #region FireTaoist 
                
if (PreviousClass == 145
                { 
                    if (
toClass != 142
                    { 
                        switch (
spell.ID
                        { 
                            case 
1000
                            case 
1001
                            case 
1150
                            case 
12380
                            case 
1180
                            case 
1120
                            case 
1002
                            case 
1160
                            case 
1165
                                
RemoveSpell(spell); 
                                break; 
                        } 
                    } 
                } 
                
#endregion 
                #region LeeLong 
                
if (toClass != 81
                { 
                    switch (
spell.ID
                    { 
                        case 
12300
                        case 
12290
                        case 
12320
                        case 
12330
                        case 
12340
                        case 
12270
                        case 
12070
                        case 
12120
                        case 
12130
                        case 
12140
                        case 
12160
                        case 
12170
                        case 
12350
                        case 
12280
                        case 
12200
                            
RemoveSpell(spell); 
                            break; 
                    } 
                } 
                
#endregion 
                
if (Spells.ContainsKey(spell.ID)) 
                    if (
spell.ID != (ushort)Game.Enums.SkillIDs.Reflect
                        
spell.Send(this); 
            } 
            
#endregion 



الساعة الآن 07:48 AM

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