الموضوع: ممكن npc innerpower
عرض مشاركة واحدة
قديم 2020-05-02, 05:53 AM
المشاركة 3
ElSaher
.:: مشرف قسم المشاكل ::.
  • غير متواجد
افتراضي رد: ممكن npc innerpower
جرب كدا لو مش نفع



كود:
                    #region InnerPower Full
                    
case 785410:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {


                                        
dialog.Text("im Selling InnerPower Items and InnePower System Full By XFire");
                                        
dialog.Option("Buy Full InnerPower"1);
                                        
dialog.Option("I will come later. "255);
                                        
dialog.Send();

                                        break;
                                    }
                                case 
1:
                                    {

                                        if (
client.Player.ConquerPoints >= 1)
                                        {
                                            
client.Player.ConquerPoints -= 1;
                                            
Database.InnerPowerTable.Stage DBStage null;
                                            foreach (var 
m_stage in client.Player.InnerPower.Stages)
                                            {
                                                foreach (var 
m_gong in m_stage.NeiGongs)
                                                {
                                                    
m_stage.UnLocked m_gong.Unlocked true;
                                                    
m_gong.Score 100;

                                                    
Database.InnerPowerTable.Stage.NeiGong DBGong null;
                                                    if (
Database.InnerPowerTable.GetDBInfo(m_gong.IDout DBStageout DBGong))
                                                        
m_gong.level DBGong.MaxLevel;
                                                }

                                            }
                                            
client.Player.InnerPower.UpdateStatus();
                                            
client.LoadItemStats();
                                            
//InnerPower.InnerPowerRank.UpdateRank(client.Player.InnerPower);
                                        
}
                                        else
                                        {
                                            
dialog.Text("You do not have 1000 ConquerPoints with you.");
                                            
dialog.Option("Ok, will come later. "255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }

                            }
                            break;
                        }
                    
#endregion