Arab.A7larab.NeT
إعلان هام :-

تعلن ادارة المنتدى عن مسابقة لاختيار مشرفين للاقسام و سيتم تحديد الفئزين عن طريق عدد الموضيع التى سيسهموها فى القسم المرغوب ان يصبح عليه العضو مشرف و اذا كان القسم الذى تريد ان تصبح عليه مشرف غير موجود فقم بارسال رسالة للادمن من اجل انشاء هذا القسم و اذا كنت ترغب بأن تشترك فى هذه المسابقة فقم بالتسجيل و اشترك معنا و شكرا على حسن استماعكم
Arab.A7larab.NeT
إعلان هام :-

تعلن ادارة المنتدى عن مسابقة لاختيار مشرفين للاقسام و سيتم تحديد الفئزين عن طريق عدد الموضيع التى سيسهموها فى القسم المرغوب ان يصبح عليه العضو مشرف و اذا كان القسم الذى تريد ان تصبح عليه مشرف غير موجود فقم بارسال رسالة للادمن من اجل انشاء هذا القسم و اذا كنت ترغب بأن تشترك فى هذه المسابقة فقم بالتسجيل و اشترك معنا و شكرا على حسن استماعكم
Arab.A7larab.NeT
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

Arab.A7larab.NeT


 
الرئيسيةArab.A7larabأحدث الصورالتسجيلدخول

 

  شرح اضافة +13 , +14 , +15 , في السورسات الجديدة

اذهب الى الأسفل 
كاتب الموضوعرسالة
Mohammed Dawood
Admin
Mohammed Dawood


عدد المساهمات : 98
النقاط : 4384
السٌّمعَة : 0
تاريخ التسجيل : 06/02/2013
العمر : 27
الموقع : Cairo

 شرح اضافة +13 , +14 , +15 , في السورسات الجديدة Empty
مُساهمةموضوع: شرح اضافة +13 , +14 , +15 , في السورسات الجديدة    شرح اضافة +13 , +14 , +15 , في السورسات الجديدة Emptyالجمعة يونيو 07, 2013 1:05 am

بسم الله الرحمن الرحيم
شرح اضافة +13 , +14 , +15 , في السورسات الجديدة وكامله

اولا الجزء الخاص بالسورس

هتفتح ملف NPC.cs لأضافة الان بي سي

كود PHP:

الكود:
                #region +13 +14 +15
                case 420420:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialogs.Text("Hey there " + client.Entity.Name + " i can help you to upgrade ur gears to +13 , +14, +15. but you must have the required cps");
                                    dialogs.Option("Compose +13", 1);
                                    dialogs.Option("Compose +14", 2);
                                    dialogs.Option("Compose +15", 3);
                                    dialogs.Option("Just Passing By!.", 255);
                                    dialogs.Send();
                                    break;
                                }
                            case 1:
                                {
                                    dialogs.Text("Select which item's details you want to +13?, remember it will coast you " + 750000 + " Cps");
                                    dialogs.Option("Headgear.", 4);
                                    dialogs.Option("Necklace.", 5);
                                    dialogs.Option("Armor.", 6);
                                    dialogs.Option("Main Weapon.", 7);
                                    dialogs.Option("Left Weapon/Shield.", 8);
                                    dialogs.Option("Ring.", 9);
                                    dialogs.Option("Boots.", 10);
                                    dialogs.Option("I'll just leave", 255);
                                    break;
                                }
                            case 2:
                                {
                                    dialogs.Text("Select which item's details you want to +14?, remember it will coast you " + 1000000 + " Cps");
                                    dialogs.Option("Headgear.", 24);
                                    dialogs.Option("Necklace.", 25);
                                    dialogs.Option("Armor.", 26);
                                    dialogs.Option("Main Weapon.", 27);
                                    dialogs.Option("Left Weapon/Shield.", 28);
                                    dialogs.Option("Ring.", 29);
                                    dialogs.Option("Boots.", 30);
                                    dialogs.Option("I'll just leave", 255);
                                    break;
                                }
                            case 3:
                                {
                                    dialogs.Text("Select which item's details you want to +15?, remember it will coast you " + 12000000 + " Cps");
                                    dialogs.Option("Headgear.", 44);
                                    dialogs.Option("Necklace.", 45);
                                    dialogs.Option("Armor.", 46);
                                    dialogs.Option("Main Weapon.", 47);
                                    dialogs.Option("Left Weapon/Shield.", 48);
                                    dialogs.Option("Ring.", 49);
                                    dialogs.Option("Boots.", 50);
                                    dialogs.Option("I'll just leave", 255);
                                    break;
                                }
                            #region +13
                            #region boot
                            case 10:
                                {
                                    if (!client.Equipment.Free(8))
                                    {
                                        if (client.Equipment.TryGetItem(8).Plus == 12)
                                        {
                                            if (client.Entity.ConquerPoints >= 750000)
                                            {
                                                client.Entity.ConquerPoints -= 750000;
                                                client.Equipment.TryGetItem(8).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(8));
                                                client.Equipment.TryGetItem(8).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(8).Send(client);
                                                dialogs.Text("Congratulations, Your item is +13 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Boot isnt +12 yet i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any Boot cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Ring
                            case 9:
                                {
                                    if (!client.Equipment.Free(6))
                                    {
                                        if (client.Equipment.TryGetItem(6).Plus == 12)
                                        {
                                            if (client.Entity.ConquerPoints >= 750000)
                                            {
                                                client.Entity.ConquerPoints -= 750000;
                                                client.Equipment.TryGetItem(6).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(6));
                                                client.Equipment.TryGetItem(6).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(6).Send(client);
                                                dialogs.Text("Congratulations, Your item is +13 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Ring/Bracelet isnt +12 yet i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any Rings/Bracelet cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region LeftWeapons
                            case 8:
                                {
                                    if (!client.Equipment.Free(5))
                                    {
                                        if (client.Equipment.TryGetItem(5).Plus == 12)
                                        {
                                            if (client.Entity.ConquerPoints >= 750000)
                                            {
                                                client.Entity.ConquerPoints -= 750000;
                                                client.Equipment.TryGetItem(5).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(5));
                                                client.Equipment.TryGetItem(5).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(5).Send(client);
                                                dialogs.Text("Congratulations, Your item is +13 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your LeftWeapon isnt +12 yet i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any LeftWeapons cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region RightWeapon
                            case 7:
                                {
                                    if (!client.Equipment.Free(4))
                                    {
                                        if (client.Equipment.TryGetItem(4).Plus == 12)
                                        {
                                            if (client.Entity.ConquerPoints >= 750000)
                                            {
                                                client.Entity.ConquerPoints -= 750000;
                                                client.Equipment.TryGetItem(4).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(4));
                                                client.Equipment.TryGetItem(4).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(4).Send(client);
                                                dialogs.Text("Congratulations, Your item is +13 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your RightWeapon isnt +12 yet i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any RightWeapons cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Armor
                            case 6:
                                {
                                    if (!client.Equipment.Free(3))
                                    {
                                        if (client.Equipment.TryGetItem(3).Plus == 12)
                                        {
                                            if (client.Entity.ConquerPoints >= 750000)
                                            {
                                                client.Entity.ConquerPoints -= 750000;
                                                client.Equipment.TryGetItem(3).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(3));
                                                client.Equipment.TryGetItem(3).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(3).Send(client);
                                                dialogs.Text("Congratulations, Your item is +13 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Armor isnt +12 yet i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any Armor cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Necklace
                            case 5:
                                {
                                    if (!client.Equipment.Free(2))
                                    {
                                        if (client.Equipment.TryGetItem(2).Plus == 12)
                                        {
                                            if (client.Entity.ConquerPoints >= 750000)
                                            {
                                                client.Entity.ConquerPoints -= 750000;
                                                client.Equipment.TryGetItem(2).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(2));
                                                client.Equipment.TryGetItem(2).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(2).Send(client);
                                                dialogs.Text("Congratulations, Your item is +13 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Necklace isnt +12 yet i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any Necklace cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region HeadGear
                            case 4:
                                {
                                    if (!client.Equipment.Free(1))
                                    {
                                        if (client.Equipment.TryGetItem(1).Plus == 12)
                                        {
                                            if (client.Entity.ConquerPoints >= 750000)
                                            {
                                                client.Entity.ConquerPoints -= 750000;
                                                client.Equipment.TryGetItem(1).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(1));
                                                client.Equipment.TryGetItem(1).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(1).Send(client);
                                                dialogs.Text("Congratulations, Your item is +13 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Headgear isnt +12 yet i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any HeadGear cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #endregion
                            #region +14
                            #region boot
                            case 30:
                                {
                                    if (!client.Equipment.Free(8))
                                    {
                                        if (client.Equipment.TryGetItem(8).Plus == 13)
                                        {
                                            if (client.Entity.ConquerPoints >= 1000000)
                                            {
                                                client.Entity.ConquerPoints -= 1000000;
                                                client.Equipment.TryGetItem(8).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(8));
                                                client.Equipment.TryGetItem(8).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(8).Send(client);
                                                dialogs.Text("Congratulations, Your item is +14 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Boot isnt +13 i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any Boot cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Ring
                            case 29:
                                {
                                    if (!client.Equipment.Free(6))
                                    {
                                        if (client.Equipment.TryGetItem(6).Plus == 13)
                                        {
                                            if (client.Entity.ConquerPoints >= 1000000)
                                            {
                                                client.Entity.ConquerPoints -= 1000000;
                                                client.Equipment.TryGetItem(6).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(6));
                                                client.Equipment.TryGetItem(6).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(6).Send(client);
                                                dialogs.Text("Congratulations, Your item is +14 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Ring/Bracelet isnt +13 i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any Rings/Bracelet cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region LeftWeapons
                            case 28:
                                {
                                    if (!client.Equipment.Free(5))
                                    {
                                        if (client.Equipment.TryGetItem(5).Plus == 13)
                                        {
                                            if (client.Entity.ConquerPoints >= 1000000)
                                            {
                                                client.Entity.ConquerPoints -= 1000000;
                                                client.Equipment.TryGetItem(5).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(5));
                                                client.Equipment.TryGetItem(5).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(5).Send(client);
                                                dialogs.Text("Congratulations, Your item is +14 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your LeftWeapon isnt +13 i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any LeftWeapons cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region RightWeapon
                            case 27:
                                {
                                    if (!client.Equipment.Free(4))
                                    {
                                        if (client.Equipment.TryGetItem(4).Plus == 13)
                                        {
                                            if (client.Entity.ConquerPoints >= 1000000)
                                            {
                                                client.Entity.ConquerPoints -= 1000000;
                                                client.Equipment.TryGetItem(4).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(4));
                                                client.Equipment.TryGetItem(4).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(4).Send(client);
                                                dialogs.Text("Congratulations, Your item is +14 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your RightWeapon isnt +13 i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any RightWeapons cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Armor
                            case 26:
                                {
                                    if (!client.Equipment.Free(3))
                                    {
                                        if (client.Equipment.TryGetItem(3).Plus == 13)
                                        {
                                            if (client.Entity.ConquerPoints >= 1000000)
                                            {
                                                client.Entity.ConquerPoints -= 1000000;
                                                client.Equipment.TryGetItem(3).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(3));
                                                client.Equipment.TryGetItem(3).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(3).Send(client);
                                                dialogs.Text("Congratulations, Your item is +14 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Armor isnt +13 i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any Armor cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Necklace
                            case 25:
                                {
                                    if (!client.Equipment.Free(2))
                                    {
                                        if (client.Equipment.TryGetItem(2).Plus == 13)
                                        {
                                            if (client.Entity.ConquerPoints >= 1000000)
                                            {
                                                client.Entity.ConquerPoints -= 1000000;
                                                client.Equipment.TryGetItem(2).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(2));
                                                client.Equipment.TryGetItem(2).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(2).Send(client);
                                                dialogs.Text("Congratulations, Your item is +14 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Necklace isnt +13 i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any Necklace cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region HeadGear
                            case 24:
                                {
                                    if (!client.Equipment.Free(1))
                                    {
                                        if (client.Equipment.TryGetItem(1).Plus == 13)
                                        {
                                            if (client.Entity.ConquerPoints >= 1000000)
                                            {
                                                client.Entity.ConquerPoints -= 1000000;
                                                client.Equipment.TryGetItem(1).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(1));
                                                client.Equipment.TryGetItem(1).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(1).Send(client);
                                                dialogs.Text("Congratulations, Your item is +14 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("sorry your Headgear isnt +13 i cant help you");
                                            dialogs.Option("sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("sorry you dont wear any HeadGear cant help you");
                                        dialogs.Option("sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #endregion
                            #region +15
                            #region boot
                            case 50:
                                {
                                    if (!client.Equipment.Free(8))
                                    {
                                        if (client.Equipment.TryGetItem(8).Plus == 14)
                                        {
                                            if (client.Entity.ConquerPoints >= 12000000)
                                            {
                                                client.Entity.ConquerPoints -= 12000000;
                                                client.Equipment.TryGetItem(8).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(8));
                                                client.Equipment.TryGetItem(8).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(8).Send(client);
                                                dialogs.Text("Congratulations, Your item is +15 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("Sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("Sorry your Boot isnt +14, i cant help you");
                                            dialogs.Option("Sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("Sorry you dont wear any Boots, cant help you");
                                        dialogs.Option("Sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Ring
                            case 49:
                                {
                                    if (!client.Equipment.Free(6))
                                    {
                                        if (client.Equipment.TryGetItem(6).Plus == 14)
                                        {
                                            if (client.Entity.ConquerPoints >= 12000000)
                                            {
                                                client.Entity.ConquerPoints -= 12000000;
                                                client.Equipment.TryGetItem(6).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(6));
                                                client.Equipment.TryGetItem(6).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(6).Send(client);
                                                dialogs.Text("Congratulations, Your item is +15 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("Sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("Sorry your Ring/Bracelet isnt +14, i cant help you");
                                            dialogs.Option("Sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("Sorry you dont wear any Rings/Bracelets, cant help you");
                                        dialogs.Option("Sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region LeftWeapons
                            case 48:
                                {
                                    if (!client.Equipment.Free(5))
                                    {
                                        if (client.Equipment.TryGetItem(5).Plus == 14)
                                        {
                                            if (client.Entity.ConquerPoints >= 12000000)
                                            {
                                                client.Entity.ConquerPoints -= 12000000;
                                                client.Equipment.TryGetItem(5).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(5));
                                                client.Equipment.TryGetItem(5).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(5).Send(client);
                                                dialogs.Text("Congratulations, Your item is +15 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("Sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("Sorry your LeftWeapon isnt +14, i cant help you");
                                            dialogs.Option("Sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("Sorry you dont wear any LeftWeapons, cant help you");
                                        dialogs.Option("Sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region RightWeapon
                            case 47:
                                {
                                    if (!client.Equipment.Free(4))
                                    {
                                        if (client.Equipment.TryGetItem(4).Plus == 14)
                                        {
                                            if (client.Entity.ConquerPoints >= 12000000)
                                            {
                                                client.Entity.ConquerPoints -= 12000000;
                                                client.Equipment.TryGetItem(4).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(4));
                                                client.Equipment.TryGetItem(4).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(4).Send(client);
                                                dialogs.Text("Congratulations, Your item is +15 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("Sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("Sorry your RightWeapon isnt +14, i cant help you");
                                            dialogs.Option("Sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("Sorry you dont wear any RightWeapons, cant help you");
                                        dialogs.Option("Sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Armor
                            case 46:
                                {
                                    if (!client.Equipment.Free(3))
                                    {
                                        if (client.Equipment.TryGetItem(3).Plus == 14)
                                        {
                                            if (client.Entity.ConquerPoints >= 12000000)
                                            {
                                                client.Entity.ConquerPoints -= 12000000;
                                                client.Equipment.TryGetItem(3).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(3));
                                                client.Equipment.TryGetItem(3).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(3).Send(client);
                                                dialogs.Text("Congratulations, Your item is +15 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("Sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("Sorry your Armor isnt +14, i cant help you");
                                            dialogs.Option("Sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("Sorry you dont wear any Armors, cant help you");
                                        dialogs.Option("Sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region Necklace
                            case 45:
                                {
                                    if (!client.Equipment.Free(2))
                                    {
                                        if (client.Equipment.TryGetItem(2).Plus == 14)
                                        {
                                            if (client.Entity.ConquerPoints >= 12000000)
                                            {
                                                client.Entity.ConquerPoints -= 12000000;
                                                client.Equipment.TryGetItem(2).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(2));
                                                client.Equipment.TryGetItem(2).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(2).Send(client);
                                                dialogs.Text("Congratulations, Your item is +15 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("Sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("Sorry your Necklace isnt +14, i cant help you");
                                            dialogs.Option("Sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("Sorry you dont wear any Necklace, cant help you");
                                        dialogs.Option("Sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #region HeadGear
                            case 44:
                                {
                                    if (!client.Equipment.Free(1))
                                    {
                                        if (client.Equipment.TryGetItem(1).Plus == 14)
                                        {
                                            if (client.Entity.ConquerPoints >= 12000000)
                                            {
                                                client.Entity.ConquerPoints -= 12000000;
                                                client.Equipment.TryGetItem(1).Plus++;
                                                Database.ConquerItemTable.UpdatePlus(client.Equipment.TryGetItem(1));
                                                client.Equipment.TryGetItem(1).Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update;
                                                client.Equipment.TryGetItem(1).Send(client);
                                                dialogs.Text("Congratulations, Your item is +15 now!");
                                                dialogs.Option("Thanks.", 255);
                                            }
                                            else
                                            {
                                                dialogs.Text("Sorry you dont have the Required amount of cps , i cant help you");
                                                dialogs.Option("Sorry.", 255);
                                            }
                                        }
                                        else
                                        {
                                            dialogs.Text("Sorry your Headgear isnt +14, i cant help you");
                                            dialogs.Option("Sorry.", 255);
                                        }
                                    }
                                    else
                                    {
                                        dialogs.Text("Sorry you dont wear any HeadGears, cant help you");
                                        dialogs.Option("Sorry.", 255);
                                    }
                                    break;
                                }
                            #endregion
                            #endregion

                        }
                        break;
                    }
                #endregion 
 

استكمل باقى الموضوع من الرد
الرجوع الى أعلى الصفحة اذهب الى الأسفل
http://arab.a7larab.net
Mohammed Dawood
Admin
Mohammed Dawood


عدد المساهمات : 98
النقاط : 4384
السٌّمعَة : 0
تاريخ التسجيل : 06/02/2013
العمر : 27
الموقع : Cairo

 شرح اضافة +13 , +14 , +15 , في السورسات الجديدة Empty
مُساهمةموضوع: استكمال الموضوع    شرح اضافة +13 , +14 , +15 , في السورسات الجديدة Emptyالجمعة يونيو 07, 2013 1:06 am

بعد كده تروح على المسار الأتي في سورس

source....bin......Debug....database

افتخ ملف
ItemsPlus


ونضيف دول فيه تحت فى الاخر

كود PHP:

الكود:
 150260 13 0 1750 1750 0 0 0 0 0
150260 14 0 2000 2000 0 0 0 0 0
150260 15 0 2250 2250 0 0 0 0 0
152270 13 0 0 0 0 1789 0 0 0
152270 14 0 0 0 0 2289 0 0 0
152270 15 0 0 0 0 2789 0 0 0
160240 13 0 0 0 0 0 0 0 25
160240 14 0 0 0 0 0 0 0 25
160240 15 0 0 0 0 0 0 0 25
120260 13 3000 0 0 2539 0 0 0 0
120260 14 3500 0 0 2939 0 0 0 0
120260 15 4000 0 0 3339 0 0 0 0
121260 13 2500 0 0 1270 0 1132 0 0
121260 14 2900 0 0 1470 0 1432 0 0
121260 15 3300 0 0 1670 0 1732 0 0
130300 13 0 0 0 3936 0 1856 0 0
130300 14 0 0 0 4536 0 2356 0 0
130300 15 0 0 0 5136 0 2856 0 0
131300 13 0 0 0 4336 0 1856 0 0
131300 14 0 0 0 5036 0 2356 0 0
131300 15 0 0 0 5736 0 2856 0 0
133300 13 0 0 0 4187 0 1856 0 0
133300 14 0 0 0 4836 0 2356 0 0
133300 15 0 0 0 5536 0 2856 0 0
134300 13 0 0 0 4110 0 1856 0 0
134300 14 0 0 0 4810 0 2356 0 0
134300 15 0 0 0 5510 0 2856 0 0
135300 13 0 0 0 3601 0 1856 0 0
135300 14 0 0 0 4201 0 2356 0 0
135300 15 0 0 0 4801 0 2856 0 0
136300 13 0 0 0 4336 0 1856 0 0
136300 14 0 0 0 5036 0 2356 0 0
136300 15 0 0 0 5736 0 2856 0 0
123300 13 0 0 0 3329 0 1008 0 0
123300 14 0 0 0 3829 0 1208 0 0
123300 15 0 0 0 4329 0 1408 0 0
114300 13 0 0 0 2748 0 935 0 0
114300 14 0 0 0 3148 0 1135 0 0
114300 15 0 0 0 3548 0 1335 0 0
112300 13 0 0 0 3329 0 1008 0 0
112300 14 0 0 0 3829 0 1208 0 0
112300 15 0 0 0 4329 0 1408 0 0
117300 13 0 0 0 0 0 925 0 0
117300 14 0 0 0 0 0 1125 0 0
117300 15 0 0 0 0 0 1325 0 0
143300 13 0 0 0 4110 0 935 0 0
143300 14 0 0 0 4810 0 1135 0 0
143300 15 0 0 0 5510 0 1335 0 0
144300 13 0 0 0 4110 0 1008 0 0
144300 14 0 0 0 4810 0 1208 0 0
144300 15 0 0 0 5510 0 1408 0 0
145300 13 0 0 0 4110 0 1008 0 0
145300 14 0 0 0 4810 0 1208 0 0
145300 15 0 0 0 5510 0 1408 0 0
421430 13 0 0 0 0 2683 0 0 0
421430 14 0 0 0 0 3283 0 0 0
421430 15 0 0 0 0 3883 0 0 0
500420 13 0 1059 1059 0 0 0 0 0
500420 14 0 1259 1259 0 0 0 0 0
500420 15 0 1459 1459 0 0 0 0 0
300000 13 2600 420 420 0 420 0 4500 105
300000 14 2700 440 440 0 440 0 5000 110
300000 15 2800 460 460 0 460 0 5500 115
444430 13 0 3613 3613 0 0 0 23 0
444430 14 0 4113 4113 0 0 0 23 0
444430 15 0 4613 4613 0 0 0 23 0
555430 13 0 3765 3765 0 0 0 23 0
555430 14 0 4265 4265 0 0 0 23 0
555430 15 0 4765 4765 0 0 0 23 0
900300 13 0 0 0 3363 0 0 0 0
900300 14 0 0 0 3963 0 0 0 0
900300 15 0 0 0 4563 0 0 0 0
611430 13 0 3613 3613 0 0 0 23 0
611430 14 0 4113 4113 0 0 0 23 0
611430 15 0 4613 4613 0 0 0 23 0
612430 13 0 3923 3423 0 0 0 23 0
612430 14 0 4423 3423 0 0 0 23 0
612430 15 0 4923 3423 0 0 0 23 0
610430 13 0 3613 3613 0 0 0 23 0
610430 14 0 4113 4113 0 0 0 23 0
610430 15 0 4613 4613 0 0 0 23 0
601430 13 0 3768 3768 0 0 0 23 0
601430 14 0 4268 4268 0 0 0 23 0
601430 15 0 4768 4768 0 0 0 23 0
511430 13 3954 5269 5269 0 0 0 23 0
511430 14 4554 5969 5969 0 0 0 23 0
511430 15 5154 6669 6669 0 0 0 23 0 
 

ثانيا الجزء الخاص بالنفى كاتهنضيف دا

كود PHP:

الكود:
 INSERT INTO `npcs` VALUES ('420420', '0', '0', '+13+15', '0002', '1943', '-1', '1002', '0439', '0388', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);
 
الرجوع الى أعلى الصفحة اذهب الى الأسفل
http://arab.a7larab.net
 
شرح اضافة +13 , +14 , +15 , في السورسات الجديدة
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
Arab.A7larab.NeT :: الالعاب :: قسم كونكر-
انتقل الى: