احصائياتى

الردود
2

المشاهدات
899
 
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989

    غير متواجد

المشاركات
2,604

+التقييم
0.98

تاريخ التسجيل
Jul 2019

الاقامة

نظام التشغيل

رقم العضوية
358
2019-08-25, 04:55 PM
المشاركة 1
2019-08-25, 04:55 PM
المشاركة 1
Smiley3 تمت الإجابة دورة الكودر الصغير المحترف مهم
دورة الكودر الصغير المحترف مهم
باذن الله هيتشرح
------------------------------
تشغيل سورس
حل ايرورات قاعده
شرح شويه عن ان بي سي هات

حد عايز شرح حاجه تاني ؟؟



التعديل الأخير تم بواسطة Rider ; 2019-08-25 الساعة 09:31 PM
أفضل جواب - كتبه osama

كود:
#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.Red, Message.Center));
                
client.Entity.OnlinePointStamp = Time32.Now;
            }
            
#endregion 

ودا الانبى سى


كود:
#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(2100075, 0, 1);
                                            
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 

اى خدمة
قديم 2019-08-25, 10:24 PM
المشاركة 2
bebo100
.:: عضو نشيط ::.
الإجابات المقدمة: 10
  • غير متواجد
افتراضي رد: دورة الكودر الصغير المحترف مهم
تمام جدا يا حبى

قديم 2019-08-26, 12:34 AM
المشاركة 3
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: دورة الكودر الصغير المحترف مهم
اي حاجه زياده عن المكتوب حاببها في الشرح ؟


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: دورة الكودر الصغير المحترف مهم
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
الكودر المحترف الدرس الثانى (النافى كات) Mr~Rayzo تطوير سيرفرات كونكر 5 2021-01-23 07:57 PM
دوره الكودر المحترف (الدرس الاول -عمل السيرفر + البرامج) Mr~Rayzo تطوير سيرفرات كونكر 4 2021-01-23 07:43 PM
دوره الكودر المحترف الدرس الثالث التعديل على الدروب والكينج Mr~Rayzo تطوير سيرفرات كونكر 8 2021-01-23 07:33 PM
دورة الكودر الصغير(حلقه 1) المتغيرات Rider تطوير سيرفرات كونكر 17 2019-09-14 09:26 PM
دورة الكودر الصغير(حلقه الاخيره) الاحتراف Rider تطوير سيرفرات كونكر 8 2019-09-05 07:19 PM


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