منتدي اكواد

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

omar2019 2019-09-15 06:37 AM

طلب بخصوص npc
 
محتاج ان بي سي يحول السي بي اي لي فلوس

محمد ياسر 2019-09-15 07:46 AM

رد: طلب بخصوص npc
 
في واحد في قسم التطوير

محمد ياسر 2019-09-15 07:47 AM

رد: طلب بخصوص npc
 
ده يحول الجولد لسي بي انت اعكسه
https://code.vpscairo.com/showthread...CA%CD%E6%ED%E1

omar2019 2019-09-15 10:49 AM

رد: طلب بخصوص npc
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Hazem (المشاركة 16548)
ده يحول الجولد لسي بي انت اعكسه

معلش اعكسه ازاي

Hassan Emprator 2019-09-15 11:22 AM

رد: طلب بخصوص npc
 
الانبي سي اهو يحبي انت عدل رقم السبس وشوفه عايزه يسحب كام سبس وي اديله الفلوس تمام
الانبي سي اهو

كود PHP:

#region Sell Cps BY:MR.AMR
                
case 54200:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hi Friend " client.Entity.Name " Iam Golding Seller and i Sell Cps For Gold BY:MR.AMR");
                                    
dialog.Option("12kk cPS -> 215 Gold"1);
                                    
dialog.Option("25kk Cpps -> 500 Gold"2);
                                    
dialog.Option("55kk cps -> 1075 Gold"3);
                                    
dialog.Option("270kk cps -> 5000 Gold"4);
                                    
dialog.Option("50kk cps -> 10000 Gold!"5);
                                    
dialog.Option("1Meliar cps-> 25000 Gold"6);
                                    
dialog.Option("I don't care."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
6:
                                {
                                    if (
client.Entity.ConquerPoints >= 1000000000)
                                    {
                                        
client.Entity.ConquerPoints -= 1000000000;
                                        
client.Entity.Money += 25000;
                                    }
                                    else
                                    {
                                        
dialog.Text("you have 1 Meliar Money");
                                        
dialog.Option("NO."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 
5:
                                {
                                    if (
client.Entity.ConquerPoints >= 500000000)
                                    {
                                        
client.Entity.ConquerPoints -= 500000000;
                                        
client.Entity.Money += 10000;
                                    }
                                    else
                                    {
                                        
dialog.Text("you have 500kk Money");
                                        
dialog.Option("NO."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 
4:
                                {
                                    if (
client.Entity.ConquerPoints >= 270000000)
                                    {
                                        
client.Entity.ConquerPoints -= 270000000;
                                        
client.Entity.Money += 5000;
                                    }
                                    else
                                    {
                                        
dialog.Text("you have 270kk Money");
                                        
dialog.Option("NO."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.ConquerPoints >= 12000000)
                                    {
                                        
client.Entity.ConquerPoints -= 12000000;
                                        
client.Entity.Money += 215;
                                    }
                                    else
                                    {
                                        
dialog.Text("you have 12kk Money");
                                        
dialog.Option("NO."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.Entity.ConquerPoints >= 25000000)
                                    {
                                        
client.Entity.ConquerPoints -= 25000000;
                                        
client.Entity.Money += 500;
                                    }
                                    else
                                    {
                                        
dialog.Text("you have 25kk Money");
                                        
dialog.Option("NO."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            case 
3:
                                {
                                    if (
client.Entity.ConquerPoints >= 55000000)
                                    {
                                        
client.Entity.ConquerPoints -= 55000000;
                                        
client.Entity.Money += 1075;
                                    }
                                    else
                                    {
                                        
dialog.Text("you have 55kk Money");
                                        
dialog.Option("NO."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

طيب حبيت ازاي اعدل عا ارقم الي هيخلي الانبي سي يسحب رقم السبس عشان يحولهولي جولد
دا اول كود

كود PHP:

 if (client.Entity.ConquerPoints >= 1000000000

دا تاني كود
كود PHP:

client.Entity.ConquerPoints -= 1000000000

لازما تعدل دولي هما الاتنين عشان الانبي سي يعرف هوا هيسحب كام طيب اعدل القيمه الي هيديلي الفلوس لما يسحب السبس

من هنا

كود PHP:

client.Entity.Money += 25000

نورتنا بالتوفيق


الساعة الآن 09:12 PM

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