منتدي اكواد

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

ElSaher 2019-08-25 01:07 PM

طلب Online-Points
 
طلب اضافت

Online-Points

عايز اخلي Online-Points

يديك كل 1دقيقه 2نقطة

وعايز اخلي يبقي 500مليون سبس
بي 300نقطة

250مليون سبس
بي 150نقطه
وعايزو يدي الكاس بي
2000نقطة

osama 2019-08-25 01:57 PM

رد: طلب Online-Points
 
كود PHP:

#region - OnlinePoints -
            
if (Time32.Now client.Entity.OnlinePointStamp.AddMinutes(1))
            {
                
client.Entity.OnlinePoints += 2;
                
client.Send(new Message("You have got 2 OnlinePoints For Online The Game 1 Min You Have " client.Entity.OnlinePoints " OnlinePoints Now"Color.RedMessage.Center));
                
client.Entity.OnlinePointStamp Time32.Now;
            }
            
#endregion 

ودا الانبى سى

كود PHP:

#region System Online Points By-Captin-Osama
                
case 14224:
                        {
                            
#region -- CPs --
                            ////////////////////////////////////////
                            
uint CPsTB1 150;
                            
uint CPs1 250000000;
                            
////////////////////////////////////////
                            
uint CPsTB2 300;
                            
uint CPs2 500000000;
                            
#endregion
                            #region -- GoldPrize --
                            
uint GoldPrize 2000;
                            
#endregion
                            
switch (npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("All (Heroes) can talk to me to learn about my offers, this offers for OnlinePoints only.");
                                        
dialog.Text("Your  OnlinePoints Count is : " client.Entity.OnlinePoints " .");
                                        
dialog.Option("You|Need|Cps|for|OnlinePoints[150 And 300 Points]"10);
                                        
dialog.Option("GoldPrize [2000Points]"20);
                                        
dialog.Option("Just passing by."255);
                                        
dialog.Send();
                                        break;
                                    }
                                
#region -- CPs --
                                
case 10:
                                    {
                                        
dialog.Text("You Choosed Your Way , You Want To Exchange OnlinePoints For CPs .. You Have [ " string.Format("{0:n0}"client.Entity.OnlinePoints) + " OnlinePoints ] .");
                                        
dialog.Option("" string.Format("{0:n0}"CPs1) + " CPs (" string.Format("{0:n0}"CPsTB1) + " TP) ."2);
                                        
dialog.Option("" string.Format("{0:n0}"CPs2) + " CPs (" string.Format("{0:n0}"CPsTB2) + " TP) ."3);
                                        
dialog.Option("Back ."165);
                                        
dialog.Option("Thank You ."255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
2:
                                    {
                                        if (
client.Entity.OnlinePoints >= CPsTB1)
                                        {
                                            
client.Entity.OnlinePoints -= CPsTB1;
                                            
client.Entity.ConquerPoints += CPs1;
                                            
client.Send(new NpcReply(NpcReply.MessageBox"You Have Exchanged (" string.Format("{0:n0}"CPsTB1) + " OnlinePoints) For (" string.Format("{0:n0}"CPs1) + " CPs) ."));
                                        }
                                        else
                                        {
                                            
dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" string.Format("{0:n0}"CPsTB1) + " OnlinePoints) And You Have Only [ " string.Format("{0:n0}"client.Entity.OnlinePoints) + " OnlinePoint ] -");
                                            
dialog.Option("Back ."165);
                                            
dialog.Option("Wait a Minute ."255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
3:
                                    {
                                        if (
client.Entity.OnlinePoints >= CPsTB2)
                                        {
                                            
client.Entity.OnlinePoints -= CPsTB2;
                                            
client.Entity.ConquerPoints += CPs2;
                                            
client.Send(new NpcReply(NpcReply.MessageBox"You Have Exchanged (" string.Format("{0:n0}"CPsTB2) + " OnlinePoints) For (" string.Format("{0:n0}"CPs2) + " CPs) ."));
                                        }
                                        else
                                        {
                                            
dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" string.Format("{0:n0}"CPsTB6) + " OnlinePoints) And You Have Only [ " string.Format("{0:n0}"client.Entity.OnlinePoints) + " OnlinePoint ] -");
                                            
dialog.Option("Back ."1);
                                            
dialog.Option("Wait a Minute ."255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                
#endregion
                                #region GoldPrize
                                
case 20:
                                    {

                                        if (
client.Entity.OnlinePoints >= GoldPrize)
                                        {
                                            
client.Entity.OnlinePoints -= GoldPrize;

                                            
client.Inventory.Add(210007501);
                                            
dialog.Text("Congratulations. You Get  P7WeaponSoulPack for " GoldPrize "  Points.");
                                            
client.Send(new NpcReply(NpcReply.MessageBox"Congratulations. You Get P7WeaponSoulPack for " GoldPrize "  Points."));
                                            
dialog.Option("Thank you."255);
                                        }
                                        else
                                        {
                                            
dialog.Text("You Don't Have " GoldPrize "Points Come When You Have it ");
                                            
dialog.Option("Sorry "255); dialog.Send();
                                        }

                                        break;
                                    }
                                
#endregion
                               
}
                            break;
                        }
                
#endregion 

اى خدمة

osama 2019-08-25 01:58 PM

رد: طلب Online-Points
 
بس خلى بالك لو مشتغلش يبقا انتا مضفتش نظام الاون لااين كامل فى بقيت البكتات لو ضيفها هيشتغل معاك علطول

ElSaher 2019-08-25 02:20 PM

رد: طلب Online-Points
 
طيب اول حاجا دي احوطها فين

osama 2019-08-25 02:33 PM

رد: طلب Online-Points
 
فى ال وارلد World.cs

ElSaher 2019-08-25 02:42 PM

رد: طلب Online-Points
 
في اي مكان يعني

ElSaher 2019-08-25 02:54 PM

رد: طلب Online-Points
 
الحقني يا اوساما
انا مسحت localhost
من القدعة
مش كان اصضي

ارجعها ازاي تاني

osama 2019-08-25 03:11 PM

رد: طلب Online-Points
 
اقتباس:

المشاركة الأصلية كتبت بواسطة mohamed x black (المشاركة 13524)
الحقني يا اوساما
انا مسحت localhost
من القدعة
مش كان اصضي

ارجعها ازاي تاني

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

ElSaher 2019-08-25 03:19 PM

رد: طلب Online-Points
 
عارف بس مش كونت واخد بالي انا عملتها ابل ما انتا تقولي dx>

osama 2019-08-25 03:23 PM

رد: طلب Online-Points
 
اقتباس:

المشاركة الأصلية كتبت بواسطة mohamed x black (المشاركة 13533)
عارف بس مش كونت واخد بالي انا عملتها ابل ما انتا تقولي dx>

خلااص اعمل افضل جواب من فوق الرسالة بى الحل الى انكتب فى الموضوع علشان الموضوع ينقفل


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

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