• مرحبا بك زائر , نحن نعمل الان على تطويرات عامة فى المنتدى

سيستم OnlinePoints Work 100%

Sôkr

Moderator
طاقم الإدارة


ad
خي الكلام ماقل ودل <3

افتح كلاس NPC.CS
ضيف ده
C#:
#region OnlinePoints
                            case 3569:
                                {
                                    switch (npcRequest.OptionID)
                                    {
                                        case 0:
                                            {
                                                dialog.Text("Hello Dear Player ( " + client.Entity.Name + " ) , Your OnlinePoints Is [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ] , You Can Exchange Your Points For Some Of Good Gifts From Our Server , Just Choose Any Way You Want To Exchanged With It !?");
                                                dialog.Option("CPs .", 1);
                                                dialog.Option("MysteryFruit", 55);
                                                dialog.Option("InnerPower Potency .", 15);
                                                dialog.Option("VIP Levels .", 31);
                                                dialog.Option("- Explain [OnlinePoints] -", 253);
                                                dialog.Option("Thank You .", 255);
                                                dialog.Send();
                                                break;
                                            }
                                        #region -- CPs --
                                        case 1:
                                            {
                                                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("" + string.Format("{0:n0}", CPs3) + " CPs (" + string.Format("{0:n0}", CPsTB3) + " TP) .", 4);
                                                dialog.Option("" + string.Format("{0:n0}", CPs4) + " CPs (" + string.Format("{0:n0}", CPsTB4) + " TP) .", 5);
                                                dialog.Option("" + string.Format("{0:n0}", CPs5) + " CPs (" + string.Format("{0:n0}", CPsTB5) + " TP) .", 6);
                                                dialog.Option("" + string.Format("{0:n0}", CPs6) + " CPs (" + string.Format("{0:n0}", CPsTB6) + " TP) .", 7);
                                                dialog.Option("Back .", 0);
                                                dialog.Option("Thank You .", 255);
                                                dialog.Send();
                                                break;
                                            }
                                        case 2:
                                            {
                                                if (client.Entity.OnlinePoints >= CPsTB1)
                                                {
                                                    client.Entity.OnlinePoints -= CPsTB1;
                                                    client.Entity.ConquerPoints += CPs1;
                                                    client.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) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 1);
                                                    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.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}", CPsTB2) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 4:
                                            {
                                                if (client.Entity.OnlinePoints >= CPsTB3)
                                                {
                                                    client.Entity.OnlinePoints -= CPsTB3;
                                                    client.Entity.ConquerPoints += CPs3;
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", CPsTB3) + " OnlinePoints) For (" + string.Format("{0:n0}", CPs3) + " CPs) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", CPsTB3) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 5:
                                            {
                                                if (client.Entity.OnlinePoints >= CPsTB4)
                                                {
                                                    client.Entity.OnlinePoints -= CPsTB4;
                                                    client.Entity.ConquerPoints += CPs4;
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", CPsTB4) + " OnlinePoints) For (" + string.Format("{0:n0}", CPs4) + " CPs) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", CPsTB4) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 6:
                                            {
                                                if (client.Entity.OnlinePoints >= CPsTB5)
                                                {
                                                    client.Entity.OnlinePoints -= CPsTB5;
                                                    client.Entity.ConquerPoints += CPs5;
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", CPsTB5) + " OnlinePoints) For (" + string.Format("{0:n0}", CPs5) + " CPs) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", CPsTB5) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 7:
                                            {
                                                if (client.Entity.OnlinePoints >= CPsTB6)
                                                {
                                                    client.Entity.OnlinePoints -= CPsTB6;
                                                    client.Entity.ConquerPoints += CPs6;
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", CPsTB6) + " OnlinePoints) For (" + string.Format("{0:n0}", CPs6) + " 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) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        #endregion
                                        #region -- MysteryFruit --
                                        case 55:
                                            {
                                                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}", ConqP1) + " MysteryFruit (" + string.Format("{0:n0}", MysteryFruit1) + " TP) .", 70);
                                                dialog.Option("" + string.Format("{0:n0}", ConqP2) + " MysteryFruit (" + string.Format("{0:n0}", MysteryFruit2) + " TP) .", 71);
                                                dialog.Option("" + string.Format("{0:n0}", ConqP3) + " MysteryFruit (" + string.Format("{0:n0}", MysteryFruit3) + " TP) .", 72);
                                                dialog.Option("" + string.Format("{0:n0}", ConqP4) + " MysteryFruit (" + string.Format("{0:n0}", MysteryFruit4) + " TP) .", 73);
                                                dialog.Option("" + string.Format("{0:n0}", ConqP5) + " MysteryFruit (" + string.Format("{0:n0}", MysteryFruit5) + " TP) .", 74);
                                                dialog.Option("" + string.Format("{0:n0}", ConqP6) + " MysteryFruit (" + string.Format("{0:n0}", MysteryFruit6) + " TP) .", 75);
                                                dialog.Option("Back .", 0);
                                                dialog.Option("Thank You .", 255);
                                                dialog.Send();
                                                break;
                                            }
                                        case 70:
                                            {
                                                if (client.Entity.OnlinePoints >= MysteryFruit1)
                                                {
                                                    client.Entity.OnlinePoints -= MysteryFruit1;
                                                    client.Inventory.Add(ItemID, 0, 1);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", MysteryFruit1) + " OnlinePoints) For [" + string.Format("{0:n0}", ConqP1) + "]MysteryFruit) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", MysteryFruit1) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoints ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 71:
                                            {
                                                if (client.Entity.OnlinePoints >= MysteryFruit2)
                                                {
                                                    client.Entity.OnlinePoints -= MysteryFruit2;
                                                    client.Inventory.Add(ItemID, 0, 2);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", MysteryFruit2) + " OnlinePoints) For [" + string.Format("{0:n0}", ConqP2) + "]MysteryFruit) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", MysteryFruit2) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoints ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 72:
                                            {
                                                if (client.Entity.OnlinePoints >= MysteryFruit3)
                                                {
                                                    client.Entity.OnlinePoints -= MysteryFruit3;
                                                    client.Inventory.Add(ItemID, 0, 3);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", MysteryFruit3) + " OnlinePoints) For [" + string.Format("{0:n0}", ConqP3) + "]MysteryFruit) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", MysteryFruit3) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoints ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 73:
                                            {
                                                if (client.Entity.OnlinePoints >= MysteryFruit4)
                                                {
                                                    client.Entity.OnlinePoints -= MysteryFruit4;
                                                    client.Inventory.Add(ItemID, 0, 4);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", MysteryFruit4) + " OnlinePoints) For [" + string.Format("{0:n0}", ConqP4) + "]MysteryFruit)) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", MysteryFruit4) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoints ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 74:
                                            {
                                                if (client.Entity.OnlinePoints >= MysteryFruit5)
                                                {
                                                    client.Entity.OnlinePoints -= MysteryFruit5;
                                                    client.Inventory.Add(ItemID, 0, 5);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", MysteryFruit5) + " OnlinePoints) For [" + string.Format("{0:n0}", ConqP5) + "]MysteryFruit) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", MysteryFruit5) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoints ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 75:
                                            {
                                                if (client.Entity.OnlinePoints >= MysteryFruit6)
                                                {
                                                    client.Entity.OnlinePoints -= MysteryFruit6;
                                                    client.Inventory.Add(ItemID, 0, 6);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", MysteryFruit6) + " OnlinePoints) For [" + string.Format("{0:n0}", ConqP6) + "]MysteryFruit) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", MysteryFruit6) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoints ] -");
                                                    dialog.Option("Back .", 1);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        #endregion
                                        #region -- InnerPower Potency --
                                        case 15:
                                            {
                                                dialog.Text("You Choosed Your Way , You Want To Exchange OnlinePoints For InnerPower Potency .. You Have [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoints ] .");
                                                dialog.Option("" + string.Format("{0:n0}", Inner1) + " Potency (" + string.Format("{0:n0}", InnerTB1) + " TP) .", 16);
                                                dialog.Option("" + string.Format("{0:n0}", Inner2) + " Potency (" + string.Format("{0:n0}", InnerTB2) + " TP) .", 17);
                                                dialog.Option("" + string.Format("{0:n0}", Inner3) + " Potency (" + string.Format("{0:n0}", InnerTB3) + " TP) .", 18);
                                                dialog.Option("" + string.Format("{0:n0}", Inner4) + " Potency (" + string.Format("{0:n0}", InnerTB4) + " TP) .", 19);
                                                dialog.Option("" + string.Format("{0:n0}", Inner5) + " Potency (" + string.Format("{0:n0}", InnerTB5) + " TP) .", 20);
                                                dialog.Option("" + string.Format("{0:n0}", Inner6) + " Potency (" + string.Format("{0:n0}", InnerTB6) + " TP) .", 21);
                                                dialog.Option("Back .", 0);
                                                dialog.Option("Thank You .", 255);
                                                dialog.Send();
                                                break;
                                            }
                                        case 16:
                                            {
                                                if (client.Entity.OnlinePoints >= InnerTB1)
                                                {
                                                    client.Entity.OnlinePoints -= InnerTB1;
                                                    client.Entity.InnerPower.Potency += Inner1;
                                                    client.Entity.Update((byte)Update.InnerPowerPotency, (uint)client.Entity.InnerPower.Potency, false);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", InnerTB1) + " OnlinePoints) For (" + string.Format("{0:n0}", Inner1) + " InnerPower Potency) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", InnerTB1) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 15);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 17:
                                            {
                                                if (client.Entity.OnlinePoints >= InnerTB2)
                                                {
                                                    client.Entity.OnlinePoints -= InnerTB2;
                                                    client.Entity.InnerPower.Potency += Inner2;
                                                    client.Entity.Update((byte)Update.InnerPowerPotency, (uint)client.Entity.InnerPower.Potency, false);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", InnerTB2) + " OnlinePoints) For (" + string.Format("{0:n0}", Inner2) + " InnerPower Potency) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", InnerTB2) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 15);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 18:
                                            {
                                                if (client.Entity.OnlinePoints >= InnerTB3)
                                                {
                                                    client.Entity.OnlinePoints -= InnerTB3;
                                                    client.Entity.InnerPower.Potency += Inner3;
                                                    client.Entity.Update((byte)Update.InnerPowerPotency, (uint)client.Entity.InnerPower.Potency, false);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", InnerTB3) + " OnlinePoints) For (" + string.Format("{0:n0}", Inner3) + " InnerPower Potency) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", InnerTB3) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 15);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 19:
                                            {
                                                if (client.Entity.OnlinePoints >= InnerTB4)
                                                {
                                                    client.Entity.OnlinePoints -= InnerTB4;
                                                    client.Entity.InnerPower.Potency += Inner4;
                                                    client.Entity.Update((byte)Update.InnerPowerPotency, (uint)client.Entity.InnerPower.Potency, false);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", InnerTB4) + " OnlinePoints) For (" + string.Format("{0:n0}", Inner4) + " InnerPower Potency) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", InnerTB4) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 15);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 20:
                                            {
                                                if (client.Entity.OnlinePoints >= InnerTB5)
                                                {
                                                    client.Entity.OnlinePoints -= InnerTB5;
                                                    client.Entity.InnerPower.Potency += Inner5;
                                                    client.Entity.Update((byte)Update.InnerPowerPotency, (uint)client.Entity.InnerPower.Potency, false);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", InnerTB5) + " OnlinePoints) For (" + string.Format("{0:n0}", Inner5) + " InnerPower Potency) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", InnerTB5) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 15);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        case 21:
                                            {
                                                if (client.Entity.OnlinePoints >= InnerTB6)
                                                {
                                                    client.Entity.OnlinePoints -= InnerTB6;
                                                    client.Entity.InnerPower.Potency += Inner6;
                                                    client.Entity.Update((byte)Update.InnerPowerPotency, (uint)client.Entity.InnerPower.Potency, false);
                                                    client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", InnerTB6) + " OnlinePoints) For (" + string.Format("{0:n0}", Inner6) + " InnerPower Potency) .");
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", InnerTB6) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " ThronesPoint ] -");
                                                    dialog.Option("Back .", 15);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                }
                                                break;
                                            }
                                        #endregion
                                        #region -- VIP Levels --
                                        case 31:
                                            {
                                                if (client.Entity.VIPLevel <= 6)
                                                {
                                                    dialog.Text("You Choosed Your Way , You Want To Exchange OnlinePoint For VIP Levels .. Your VIP Level Is [ " + client.Entity.VIPLevel + " ] .. You Have [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoint ] .");
                                                    if (client.Entity.VIPLevel == 0)
                                                        dialog.Option("VIP 1 (" + string.Format("{0:n0}", VIP1TP) + " TP)", 32);
                                                    else if (client.Entity.VIPLevel == 1)
                                                        dialog.Option("VIP 2 (" + string.Format("{0:n0}", VIP2TP) + " TP)", 32);
                                                    else if (client.Entity.VIPLevel == 2)
                                                        dialog.Option("VIP 3 (" + string.Format("{0:n0}", VIP3TP) + " TP)", 32);
                                                    else if (client.Entity.VIPLevel == 3)
                                                        dialog.Option("VIP 4 (" + string.Format("{0:n0}", VIP4TP) + " TP)", 32);
                                                    else if (client.Entity.VIPLevel == 4)
                                                        dialog.Option("VIP 5 (" + string.Format("{0:n0}", VIP5TP) + " TP)", 32);
                                                    else if (client.Entity.VIPLevel == 5)
                                                        dialog.Option("VIP 6 (" + string.Format("{0:n0}", VIP6TP) + " TP)", 32);
                                                    dialog.Option("Back .", 0);
                                                    dialog.Option("Thank You .", 255);
                                                    dialog.Send();
                                                    break;
                                                }
                                                else
                                                {
                                                    dialog.Text("- (Sorry): You Have Reached High VIP Level -");
                                                    dialog.Option("Back .", 254);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                    break;
                                                }
                                            }
                                        case 32:
                                            {
                                                if (client.Entity.VIPLevel >= 6)
                                                {
                                                    dialog.Text("- (Sorry): You Have Reached High VIP Level -");
                                                    dialog.Option("Back .", 254);
                                                    dialog.Option("Wait a Minute .", 255);
                                                    dialog.Send();
                                                    break;
                                                }
                                                else
                                                {
                                                    if (client.Entity.VIPLevel == 0)
                                                    {
                                                        if (client.Entity.OnlinePoints >= VIP1TP)
                                                        {
                                                            client.Entity.OnlinePoints -= VIP1TP;
                                                            client.Entity.VIPLevel = 1;
                                                            client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", VIP1TP) + " OnlinePoint) For (VIP Level 1) .");
                                                            break;
                                                        }
                                                        else
                                                        {
                                                            dialog.Text("- (Sorry): You Don't Have Enough OnlinePoint To Exchanged , You Need (" + string.Format("{0:n0}", VIP1TP) + " OnlinePoint) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoint ] -");
                                                            dialog.Option("Back .", 31);
                                                            dialog.Option("Wait a Minute .", 255);
                                                            dialog.Send();
                                                            break;
                                                        }
                                                    }
                                                    else if (client.Entity.VIPLevel == 1)
                                                    {
                                                        if (client.Entity.OnlinePoints >= VIP2TP)
                                                        {
                                                            client.Entity.OnlinePoints -= VIP2TP;
                                                            client.Entity.VIPLevel = 2;
                                                            client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", VIP2TP) + " OnlinePoint) For (VIP Level 2) .");
                                                            break;
                                                        }
                                                        else
                                                        {
                                                            dialog.Text("- (Sorry): You Don't Have Enough OnlinePoint To Exchanged , You Need (" + string.Format("{0:n0}", VIP2TP) + " OnlinePoint) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoint ] -");
                                                            dialog.Option("Back .", 31);
                                                            dialog.Option("Wait a Minute .", 255);
                                                            dialog.Send();
                                                            break;
                                                        }
                                                    }
                                                    else if (client.Entity.VIPLevel == 2)
                                                    {
                                                        if (client.Entity.OnlinePoints >= VIP3TP)
                                                        {
                                                            client.Entity.OnlinePoints -= VIP2TP;
                                                            client.Entity.VIPLevel = 3;
                                                            client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", VIP2TP) + " OnlinePoint) For (VIP Level 3) .");
                                                            break;
                                                        }
                                                        else
                                                        {
                                                            dialog.Text("- (Sorry): You Don't Have Enough OnlinePoint To Exchanged , You Need (" + string.Format("{0:n0}", VIP2TP) + " OnlinePoint) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoint ] -");
                                                            dialog.Option("Back .", 31);
                                                            dialog.Option("Wait a Minute .", 255);
                                                            dialog.Send();
                                                            break;
                                                        }
                                                    }
                                                    else if (client.Entity.VIPLevel == 3)
                                                    {
                                                        if (client.Entity.OnlinePoints >= VIP4TP)
                                                        {
                                                            client.Entity.OnlinePoints -= VIP4TP;
                                                            client.Entity.VIPLevel = 4;
                                                            client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", VIP4TP) + " OnlinePoint) For (VIP Level 4) .");
                                                            break;
                                                        }
                                                        else
                                                        {
                                                            dialog.Text("- (Sorry): You Don't Have Enough OnlinePoint To Exchanged , You Need (" + string.Format("{0:n0}", VIP4TP) + " OnlinePoint) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoint ] -");
                                                            dialog.Option("Back .", 31);
                                                            dialog.Option("Wait a Minute .", 255);
                                                            dialog.Send();
                                                            break;
                                                        }
                                                    }
                                                    else if (client.Entity.VIPLevel == 4)
                                                    {
                                                        if (client.Entity.OnlinePoints >= VIP5TP)
                                                        {
                                                            client.Entity.OnlinePoints -= VIP5TP;
                                                            client.Entity.VIPLevel = 5;
                                                            client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", VIP5TP) + " OnlinePoint) For (VIP Level 5) .");
                                                            break;
                                                        }
                                                        else
                                                        {
                                                            dialog.Text("- (Sorry): You Don't Have Enough OnlinePoint To Exchanged , You Need (" + string.Format("{0:n0}", VIP5TP) + " OnlinePoint) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoint ] -");
                                                            dialog.Option("Back .", 31);
                                                            dialog.Option("Wait a Minute .", 255);
                                                            dialog.Send();
                                                            break;
                                                        }
                                                    }
                                                    else if (client.Entity.VIPLevel == 5)
                                                    {
                                                        if (client.Entity.OnlinePoints >= VIP6TP)
                                                        {
                                                            client.Entity.OnlinePoints -= VIP6TP;
                                                            client.Entity.VIPLevel = 6;
                                                            client.MessageBox("You Have Exchanged (" + string.Format("{0:n0}", VIP6TP) + " OnlinePoint) For (VIP Level 6) .");
                                                            break;
                                                        }
                                                        else
                                                        {
                                                            dialog.Text("- (Sorry): You Don't Have Enough OnlinePoint To Exchanged , You Need (" + string.Format("{0:n0}", VIP6TP) + " OnlinePoint) And You Have Only [ " + string.Format("{0:n0}", client.Entity.OnlinePoints) + " OnlinePoint ] -");
                                                            dialog.Option("Back .", 31);
                                                            dialog.Option("Wait a Minute .", 255);
                                                            dialog.Send();
                                                            break;
                                                        }
                                                    }
                                                    else
                                                    {
                                                        dialog.Text("- (Sorry): You Have Reached High VIP Level -");
                                                        dialog.Option("Back .", 31);
                                                        dialog.Option("Wait a Minute .", 255);
                                                        dialog.Send();
                                                        break;
                                                    }
                                                }
                                            }
                                        #endregion
                                        #region -- Explain ThronesPoint --
                                        case 253:
                                            {
                                                client.Send(new Message("http://google.com/", Message.Website));
                                                break;
                                            }
                                        #endregion
                                    }
                                    break;
                                }
                            #endregion
ابحث عن
public static void GetDialog
ضيف تحتها الكود ده
C#:
 #region -- CPs --
            ////////////////////////////////////////
            uint CPsTB1 = 30;
            uint CPs1 = 625000;
            ////////////////////////////////////////
            uint CPsTB2 = 60;
            uint CPs2 = 1250000;
            ////////////////////////////////////////
            uint CPsTB3 = 120;
            uint CPs3 = 2500000;
            ////////////////////////////////////////
            uint CPsTB4 = 240;
            uint CPs4 = 5000000;
            ////////////////////////////////////////
            uint CPsTB5 = 480;
            uint CPs5 = 7500000;
            ////////////////////////////////////////
            uint CPsTB6 = 960;
            uint CPs6 = 10000000;
            ////////////////////////////////////////
            #endregion
            #region -- InnerPower Potency --
            ////////////////////////////////////////
            uint InnerTB1 = 10;
            int Inner1 = 100;
            ////////////////////////////////////////
            uint InnerTB2 = 25;
            int Inner2 = 250;
            ////////////////////////////////////////
            uint InnerTB3 = 50;
            int Inner3 = 500;
            ////////////////////////////////////////
            uint InnerTB4 = 100;
            int Inner4 = 1000;
            ////////////////////////////////////////
            uint InnerTB5 = 500;
            int Inner5 = 5000;
            ////////////////////////////////////////
            uint InnerTB6 = 1000;
            int Inner6 = 10000;
            ////////////////////////////////////////
            #endregion
            #region -- VIP Level --
            ///////////////////////////////////////
            uint VIP1TP = 50;
            ///////////////////////////////////////
            uint VIP2TP = 100;
            ///////////////////////////////////////
            uint VIP3TP = 150;
            ///////////////////////////////////////
            uint VIP4TP = 200;
            ///////////////////////////////////////
            uint VIP5TP = 250;
            ///////////////////////////////////////
            uint VIP6TP = 500;
            ///////////////////////////////////////
            #endregion
            #region -- VIP Level --
            ///////////////////////////////////////
            uint MysteryFruit1 = 10;
            uint ConqP1 = 1;
            uint ItemID = 3001044;
            ///////////////////////////////////////
            uint MysteryFruit2 = 20;
            uint ConqP2 = 2;
            ///////////////////////////////////////
            uint MysteryFruit3 = 30;
            uint ConqP3 = 3;
            ///////////////////////////////////////
            uint MysteryFruit4 = 40;
            uint ConqP4 = 4;
            ///////////////////////////////////////
            uint MysteryFruit5 = 50;
            uint ConqP5 = 5;
            ///////////////////////////////////////
            uint MysteryFruit6 = 60;
            uint ConqP6 = 6;
            ///////////////////////////////////////
            #endregion
خش علي Entity
ضيف ده
C#:
public uint OnlinePoints;
خش علي EntityTable.cs
ابحث عن
client.MoneySave = r.ReadUInt32("MoneySave");

ضيف تحتها
C#:
client.Entity.OnlinePoints = r.ReadUInt32("OnlinePoints");
ابحث عن
.Set("Money", e.Money)

ضيف تحتها
C#:
.Set("OnlinePoints", e.OnlinePoints)
بعد كده خش علي World.cs
ابحث عن
private void CharactersCallback
ضيف فيها التشيك ده

C#:
#region - OnlinePoints -
            if (Time32.Now > client.OnlinePointStamp.AddSeconds(30))
            {
                client.Entity.OnlinePoints += 1;
                client.OnlinePointStamp = Time32.Now;
            }
            #endregion
نخش علي SQL
1111.PNG
كده يبقي تمام لو حد احتاج اي حاجه تاني يبقي يكلمني <3 :D
 
أعلى

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

Our materials are provided for FREE and the only revenue is advertising.

Thank you for understanding!