عرض مشاركة واحدة
قديم 2019-11-08, 11:37 PM
المشاركة 9
zezonever
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: InnerPowerFull من ضفطه واحده يظهر عند الناس كلها
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع
طيب ابعتلي الانبسي الي انت شغال بيه دا دلوقتي
ال انا شغال بيه هو ال انا حاطه يا صحبي في المنتدي انما عاوز اضافه ال في الصور سهله خدها اهي



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


                                        
dialog.Text("im Selling InnerPower Items and InnePower System Full By BlackBlock-Co");
                                        
//  dialog.Option("Buy InnerPower items", 1);
                                        
dialog.Option("Buy Full InnerPower"2);
                                        
//dialog.Option("Buy Temporaly CUP", 253);
                                        
dialog.Option("I will come later. "255);
                                        
dialog.Send();

                                        break;
                                    }
                                
/* case 253:
                                     {
                                         client.Inventory.AddTime(2100125, 3);
                                         break;
                                     }
                                 case 1:
                                     {
                                         byte count = 0;
                                         foreach (var stage in Database.InnerPowerTable.Stages)
                                             count += (byte)stage.NeiGongAtributes.Length;
                                         if (client.Inventory.HaveSpace(count))
                                         {
                                             foreach (var stage in Database.InnerPowerTable.Stages)
                                             {
                                                 foreach (var gong in stage.NeiGongAtributes)
                                                     client.Inventory.Add(gong.ItemID, 0, 1);
                                             }
                                         }
                                         else
                                         {
                                             dialog.Text("Please do 8 spaces in your inventory");
                                             dialog.Option("Ok, will come later. ", 255);
                                             dialog.Send();

                                         }


                                         break;
                                     }*/
                                
case 2:
                                    {
                                  
                                        if (
client.Player.ConquerPoints >= 1000)
                                        {
                                            
client.Player.ConquerPoints -= 1000;
                                            
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.Send(stream.InnerPowerStageInfo(InnerPowerStage.ActionID.UpdateStage, client.Player.UID, DBStage));
                                          //  client.Send(stream.InnerPowerStageInfo(InnerPowerStage.ActionID.UpdateScore, client.Player.UID, DBStage));
                                          // client.Send(new //InnerPowerGui(client.Player.InnerPower.GetNeiGongs()).ToArray());
                                            
client.Player.InnerPower.UpdateStatus();

                                            
client.LoadItemStats();
                                            
InnerPower.InnerPowerRank.UpdateRank(client.Player.InnerPower);
                                           
// BlackBlock.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