منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   NPC Inner power (https://code.vpscairo.com/showthread.php?t=319)

محمد ياسر 2019-05-13 02:52 AM

NPC Inner power
 

npc بيديك كل الانر بور وانت تعملهم بدل ماتشتري وحده وحده
كود PHP:

#region NPC Inner
                    
case 100100:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {


                                        
dialog.Text("im Selling InnerPower Items and InnePower System Full [Only VIP5+]");
                                        
//  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;
                                            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 DBStage null;
                                                    
Database.InnerPowerTable.Stage.NeiGong DBGong null;
                                                    if (
Database.InnerPowerTable.GetDBInfo(m_gong.IDout DBStageout DBGong))
                                                        
m_gong.level DBGong.MaxLevel;
                                                }
                                                
//client.Send(new //InnerPowerStagesHandler//(InnerPowerStagesHandler.ActionID.UpdateStage, client.Player.UID, m_stage).ToArray());
                                                //client.Send(new //InnerPowerStagesHandler(//InnerPowerStagesHandler.ActionID.UpdateScore, client.Player.UID, m_stage).ToArray());
                                            
}

                                            
//client.Send(new //InnerPowerGui(client.Player.InnerPower.GetNeiGongs()).ToArray());
                                            
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 



الساعة الآن 08:59 PM

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