منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://code.vpscairo.com/forumdisplay.php?f=12)
-   -   ممكن npc innerpower (https://code.vpscairo.com/showthread.php?t=4665)

abdocoder 2020-05-02 05:13 AM

ممكن npc innerpower
 
كنت محتاج انبسى يعمل الانير بور مرة واحدة زى انبسى الصب كلاسس كده مش لازم يعنى اشترى نقط وايتمز علشان اعمله
لو ف انبسى اضعط ضغطه واحدة يعملى الانير بور فل هيبقى عملتوا فيها جميل عمرى ما هنساه
وشكرا مقدما لكل اللى هيساعد

ElSaher 2020-05-02 05:29 AM

رد: ممكن npc innerpower
 
اها يصطي اتفضل اهو
كود PHP:

#region InnerPower By Mr.ElSaher
                    
case 785410:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {


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

                                        break;
                                    }
                                case 
1:
                                    {
                                  
                                        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.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 


ElSaher 2020-05-02 05:53 AM

رد: ممكن npc innerpower
 
جرب كدا لو مش نفع


كود PHP:

                    #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 


abdocoder 2020-05-02 04:05 PM

رد: ممكن npc innerpower
 
اقتباس:

المشاركة الأصلية كتبت بواسطة elsaher (المشاركة 40831)
جرب كدا لو مش نفع


كود PHP:

                    #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 


مع الاسف ال2 مش شغالين

Hassan Emprator 2020-05-02 10:44 PM

رد: ممكن npc innerpower
 
اقتباس:

المشاركة الأصلية كتبت بواسطة abdocoder (المشاركة 40929)
مع الاسف ال2 مش شغالين

ازاي مش شغالين اي بيحصلهم يعني ؟


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

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