الموضوع: ممكن حل
عرض مشاركة واحدة
قديم 2019-12-11, 02:16 AM
المشاركة 5
Alaa Ghanem
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: ممكن حل
بص ركز هتيجي في الان بي سي الي هوا شبه ده

كود بلغة HTML:
#region online points
                    case 121212:
                        {
                            switch (npcRequest.OptionID)
                            {
                                case 0:
                                    {
                                        dialog.Text("IaM Online Points Master You Are Get 1 Points For online to 1 Mint Rappelz-Conquer +20 01062817160 !");
                                        dialog.Option("Check My Piontes.", 1);
                                        dialog.Option("20.000 Online Points = [VIP.7].", 3);
                                        dialog.Option("100.000 Online Points = [VIP.8].", 11);
                                        dialog.Option("200 Online Points = 100m Cps.", 5);
                                        dialog.Option("500 Online Points = Garment-Mount.", 9);
                                        dialog.Option("Meh!", 255);
                                        dialog.Send();
                                        break;
                                    }
هتيجي تحت ديه مثلا
كود بلغة HTML:
dialog.Option("500 Online Points = Garment-Mount.", 9);
هتضيف دي



كود:
dialog.Option("500 Online Points = GoldPrize."15); 

تمام لحد كدا ؟!
انزل تحت اي case بقا
وضيف دي


كود بلغة HTML:
case 15:
                                    {
                                        uint cost = 500;
                                        if (client.Player.OnlinePoints >= cost)
                                        {
                                            client.Player.OnlinePoints -= cost;
                                            Random R = new Random();
                                            int Nr = R.Next(1, 9);
                                            if (Nr == 1) client.Inventory.Add(188755, 0, 1);
                                            dialog.Text("Congratulations. You Get GoldPrize for " + cost + "  Points.");
                                            dialog.Option("Thank you.", 255);
                                        }
                                        else
                                        {
                                            dialog.Text("You Don't Have " + cost + "Points Come When You Have it ");
                                            dialog.Option("Sorry ", 255); dialog.Send();
                                        }

                                        break;
                                    }
                            }
شايف بقا دي

كود بلغة HTML:
if (Nr == 1) client.Inventory.Add(188755, 0, 1);
هتغير الاي دي الي موجود فيها بالاي دي بتاع اي ايتم انت عاوز تحطها
الاي دي ده هوا الي هتغيرو

كود بلغة HTML:
188755
ملحوظة : الاي دي بتاع كل الايتم موجود في ملف ItemType

ملحوظة كمان :
الرقم الي هوا 500 ده سعر الكاس بالاونلاين بوينت


كود:
uint cost 500

لو حليت مشكلتك اعمل (تمت الإجابه)