منتدي اكواد

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

Rider 2019-10-25 09:25 AM

حل مشكلة الانر بور برستر السيرفر بيترستر
 


packethandler.cs


welcomemessage

كود PHP:

 #region Inner
            
if (!InnerPower.InnerPowerPolle.TryGetValue(client.Player.UIDout client.Player.InnerPower))
            {
                
client.Player.InnerPower = new InnerPower(client.Player.Nameclient.Player.UID);
                
Database.InnerPowerTable.New(client);
            }
            
client.Player.InnerPower.UpdateStatus();
            
client.Player.InnerPower.AddPotency(nullclient0);
            
client.LoadItemStats();
            
#endregion 


program
Console.WriteLine("Initializing Database.");

كود PHP:

 InnerPowerTable.LoadDBInformation();
                
InnerPowerTable.Load(); 

كود PHP:

case ActionID.UpdateGong 

كود PHP:

case ActionID.UpdateGong:
                    {
                        
Database.InnerPowerTable.Stage DBStage null;
                        
Database.InnerPowerTable.Stage.NeiGong DBGong null;
                        if (
Database.InnerPowerTable.GetDBInfo(dwparamout DBStageout DBGong))
                        {
                            
InnerPower.Stage stage null;
                            
InnerPower.Stage.NeiGong gong null;
                            if (
client.Player.InnerPower.TryGetStageAndGong((byte)dwparamout stageout gong))
                            {
                                if (
stage.UnLocked && gong.Unlocked && gong.level DBGong.MaxLevel)
                                {
                                    
int potency_cost = (int)DBGong.ProgressNeiGongValue[Math.Min(gong.level, (int)(DBGong.ProgressNeiGongValue.Length 1))];
                                    if (
client.Player.InnerPower.Potency >= potency_cost)
                                    {
                                        
client.Player.InnerPower.AddPotency(streamclient, -potency_cost);

                                        
gong.level += 1;
                                      
                                        
gong.Score = (byte)Math.Ceiling(((float)((float)100 / (float)DBGong.MaxLevel) * (float)gong.level));
                                        
gong.Complete gong.level == DBGong.MaxLevel;

                                        
client.Send(stream.InnerPowerGui(client.Player.InnerPower.GetNeiGongs()));
                                        
client.Send(stream.InnerPowerStageInfo(InnerPowerStage.ActionID.UpdateStageclient.Player.UIDstage));
                                        
client.Send(stream.InnerPowerStageInfo(InnerPowerStage.ActionID.UpdateScoreclient.Player.UIDstage));
                                        
client.Player.InnerPower.UpdateStatus();
                                        
client.LoadItemStats();
                                        
InnerPower.InnerPowerRank.UpdateRank(client.Player.InnerPower);
                                    }
                                }
                            }
                        }
                        break;
                    } 


محمد ياسر 2019-10-25 09:25 AM

رد: حل مشكلة الانر بور برستر السيرفر بيترستر
 
عاش ياوحش

ALz3em 2019-10-25 10:17 AM

رد: حل مشكلة الانر بور برستر السيرفر بيترستر
 
عاش يابرنس

Rider 2019-10-26 01:13 AM

رد: حل مشكلة الانر بور برستر السيرفر بيترستر
 
<3


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

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