Register for your free account! | Forgot your password?

You last visited: Today at 06:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] +11 my Ring

Discussion on [HELP] +11 my Ring within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
[HELP] +11 my Ring

Ok this is a small problem i tried to fix it but wont work. This npc wont +11 the Ring but it will +12 if its +11. So i checked it out and tried to fix it and didnt get it to be fixed but Here is the code.
HTML Code:
if (CurrentNPC == 10009)
                            {
                                if (Control == 1)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Costs 300000 Cps. After Plusing Please Take Off The Item And Put It Back On. Which item do you want to +10?"));
                                    SendPacket(General.MyPackets.NPCLink("+10 my helmet or earring.", 3));
                                    SendPacket(General.MyPackets.NPCLink("+10 my necklace.", 4));
                                    SendPacket(General.MyPackets.NPCLink("+10 my armor.", 5));
                                    SendPacket(General.MyPackets.NPCLink("+10 my weapon.", 6));
                                    SendPacket(General.MyPackets.NPCLink("+10 my ring, heavy ring.", 7));
                                    SendPacket(General.MyPackets.NPCLink("+10 my boots.", 8));
                                    SendPacket(General.MyPackets.NPCLink("+10 my shield.", 9));
                                    SendPacket(General.MyPackets.NPCLink("Goodbye.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control >= 3 && Control <= 9)
                                {
                                    if (MyChar.CPs >= 300000)
                                    {
                                        string TheEquip = "";

                                        if (Control == 3)
                                            TheEquip = MyChar.Equips[1];
                                        if (Control == 4)
                                            TheEquip = MyChar.Equips[2];
                                        if (Control == 5)
                                            TheEquip = MyChar.Equips[3];
                                        if (Control == 6)
                                            TheEquip = MyChar.Equips[4];
                                        if (Control == 7)
                                            TheEquip = MyChar.Equips[6];
                                        if (Control == 8)
                                            TheEquip = MyChar.Equips[8];
                                        if (Control == 9)
                                            TheEquip = MyChar.Equips[5];

                                        byte Pos = 0;

                                        if (Control == 3)
                                            Pos = 1;
                                        if (Control == 4)
                                            Pos = 2;
                                        if (Control == 5)
                                            Pos = 3;
                                        if (Control == 6)
                                            Pos = 4;
                                        if (Control == 7)
                                            Pos = 6;
                                        if (Control == 8)
                                            Pos = 8;
                                        if (Control == 9)
                                            Pos = 5;


                                        string[] Splitter = TheEquip.Split('-');
                                        uint ItemId = uint.Parse(Splitter[0]);
                                        uint NewPlus = 10;
                                        uint OldPlus = uint.Parse(Splitter[1]);
                                        uint ReqPlus = 9;

                                        if (OldPlus == ReqPlus)
                                        {
                                            MyChar.CPs -= 300000;
                                            MyChar.GetEquipStats(Pos, true);
                                            MyChar.Equips[Pos] = ItemId.ToString() + "-" + NewPlus + "-" + Splitter[2] + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
                                            MyChar.GetEquipStats(Pos, false);

                                            MyChar.SendEquips(false);
                                            SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                            SendPacket(General.MyPackets.AddItem((long)MyChar.Equips_UIDs[Pos], (int)ItemId, byte.Parse(Splitter[1]), byte.Parse(Splitter[2]), byte.Parse(Splitter[3]), byte.Parse(Splitter[4]), byte.Parse(Splitter[5]), Pos, 100, 100));
                                        }
                                        else
                                        {
                                            SendPacket(General.MyPackets.NPCSay("I'm Sorry Your Item Is Not +9"));
                                            SendPacket(General.MyPackets.NPCSetFace(30));
                                            SendPacket(General.MyPackets.NPCLink("Ok...", 255));
                                            SendPacket(General.MyPackets.NPCFinish());
                                        }
                                    }
                                }
                                if (Control == 11)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Costs 600000 Cps. After Plusing Please Take Off The Item And Put It Back On. Which item do you want to +11?"));
                                    SendPacket(General.MyPackets.NPCLink("+11 my helmet or earring.", 13));
                                    SendPacket(General.MyPackets.NPCLink("+11 my necklace.", 14));
                                    SendPacket(General.MyPackets.NPCLink("+11 my armor.", 15));
                                    SendPacket(General.MyPackets.NPCLink("+11 my weapon.", 16));
                                    SendPacket(General.MyPackets.NPCLink("+11 my ring, heavy ring.", 17));
                                    SendPacket(General.MyPackets.NPCLink("+11 my boots.", 18));
                                    SendPacket(General.MyPackets.NPCLink("+11 my shield.", 19));
                                    SendPacket(General.MyPackets.NPCLink("Goodbye.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 13 && Control <= 19)
                                {
                                    if (MyChar.CPs >= 600000)
                                    {
                                        string TheEquip = "";

                                        if (Control == 13)
                                            TheEquip = MyChar.Equips[1];
                                        if (Control == 14)
                                            TheEquip = MyChar.Equips[2];
                                        if (Control == 15)
                                            TheEquip = MyChar.Equips[3];
                                        if (Control == 16)
                                            TheEquip = MyChar.Equips[4];
                                        if (Control == 17)
                                            TheEquip = MyChar.Equips[6];
                                        if (Control == 18)
                                            TheEquip = MyChar.Equips[8];
                                        if (Control == 19)
                                            TheEquip = MyChar.Equips[5];

                                        byte Pos = 0;

                                        if (Control == 13)
                                            Pos = 1;
                                        if (Control == 14)
                                            Pos = 2;
                                        if (Control == 15)
                                            Pos = 3;
                                        if (Control == 16)
                                            Pos = 4;
                                        if (Control == 17)
                                            Pos = 6;
                                        if (Control == 18)
                                            Pos = 8;
                                        if (Control == 19)
                                            Pos = 5;


                                        string[] Splitter = TheEquip.Split('-');
                                        uint ItemId = uint.Parse(Splitter[0]);
                                        uint NewPlus = 11;
                                        uint OldPlus = uint.Parse(Splitter[1]);
                                        uint ReqPlus = 10;

                                        if (OldPlus == ReqPlus)
                                        {
                                            MyChar.CPs -= 600000;
                                            MyChar.GetEquipStats(Pos, true);
                                            MyChar.Equips[Pos] = ItemId.ToString() + "-" + NewPlus + "-" + Splitter[2] + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
                                            MyChar.GetEquipStats(Pos, false);

                                            MyChar.SendEquips(false);
                                            SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                            SendPacket(General.MyPackets.AddItem((long)MyChar.Equips_UIDs[Pos], (int)ItemId, byte.Parse(Splitter[1]), byte.Parse(Splitter[2]), byte.Parse(Splitter[3]), byte.Parse(Splitter[4]), byte.Parse(Splitter[5]), Pos, 100, 100));
                                        }
                                        else
                                        {
                                            SendPacket(General.MyPackets.NPCSay("I'm Sorry Your Item Is Not +10"));
                                            SendPacket(General.MyPackets.NPCSetFace(30));
                                            SendPacket(General.MyPackets.NPCLink("Ok...", 255));
                                            SendPacket(General.MyPackets.NPCFinish());
                                        }
                                    }
                                }
                                if (Control == 21)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Costs 900000 Cps. After Plusing Please Take Off The Item And Put It Back On. Which item do you want to +10?"));
                                    SendPacket(General.MyPackets.NPCLink("+12 my helmet or earring.", 23));
                                    SendPacket(General.MyPackets.NPCLink("+12 my necklace.", 24));
                                    SendPacket(General.MyPackets.NPCLink("+12 my armor.", 25));
                                    SendPacket(General.MyPackets.NPCLink("+12 my weapon.", 26));
                                    SendPacket(General.MyPackets.NPCLink("+12 my ring, heavy ring.", 27));
                                    SendPacket(General.MyPackets.NPCLink("+12 my boots.", 28));
                                    SendPacket(General.MyPackets.NPCLink("+12 my shield.", 29));
                                    SendPacket(General.MyPackets.NPCLink("Goodbye.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control >= 23 && Control <= 29)
                                {
                                    if (MyChar.CPs >= 900000)
                                    {
                                        string TheEquip = "";

                                        if (Control == 23)
                                            TheEquip = MyChar.Equips[1];
                                        if (Control == 24)
                                            TheEquip = MyChar.Equips[2];
                                        if (Control == 25)
                                            TheEquip = MyChar.Equips[3];
                                        if (Control == 26)
                                            TheEquip = MyChar.Equips[4];
                                        if (Control == 27)
                                            TheEquip = MyChar.Equips[6];
                                        if (Control == 28)
                                            TheEquip = MyChar.Equips[8];
                                        if (Control == 29)
                                            TheEquip = MyChar.Equips[5];

                                        byte Pos = 0;

                                        if (Control == 23)
                                            Pos = 1;
                                        if (Control == 24)
                                            Pos = 2;
                                        if (Control == 25)
                                            Pos = 3;
                                        if (Control == 26)
                                            Pos = 4;
                                        if (Control == 27)
                                            Pos = 6;
                                        if (Control == 28)
                                            Pos = 8;
                                        if (Control == 29)
                                            Pos = 5;


                                        string[] Splitter = TheEquip.Split('-');
                                        uint ItemId = uint.Parse(Splitter[0]);
                                        uint NewPlus = 12;
                                        uint OldPlus = uint.Parse(Splitter[1]);
                                        uint ReqPlus = 11;

                                        if (OldPlus == ReqPlus)
                                        {
                                            MyChar.CPs -= 900000;
                                            MyChar.GetEquipStats(Pos, true);
                                            MyChar.Equips[Pos] = ItemId.ToString() + "-" + NewPlus + "-" + Splitter[2] + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
                                            MyChar.GetEquipStats(Pos, false);

                                            MyChar.SendEquips(false);
                                            SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                            SendPacket(General.MyPackets.AddItem((long)MyChar.Equips_UIDs[Pos], (int)ItemId, byte.Parse(Splitter[1]), byte.Parse(Splitter[2]), byte.Parse(Splitter[3]), byte.Parse(Splitter[4]), byte.Parse(Splitter[5]), Pos, 100, 100));
                                        }
                                        else
                                        {
                                            SendPacket(General.MyPackets.NPCSay("I'm Sorry Your Item Is Not +11"));
                                            SendPacket(General.MyPackets.NPCSetFace(30));
                                            SendPacket(General.MyPackets.NPCLink("Ok...", 255));
                                            SendPacket(General.MyPackets.NPCFinish());
                                        }
                                    }
                                }

                            }
Pete1990 is offline  
Reply


Similar Threads Similar Threads
WTS lvl 72 Sorc [EVENGARDA] Blode ring, Biglos neck, Spiral ring
03/31/2010 - Archlord Trading - 14 Replies
Selling Lvl 72 Sorcerer : Uniq Accesory : Blode Ring (Ashtal stone) Biglos Neckles (Ashtal stone) + 2 more Biglos Spiral ring (Ashtal stone) Realm Armor : Headband of Garnier Bracelet of Garnier other equpment : Elite Wand +12 (5 Ice stones ) , Uniq Top skirt boots white good great gren stats and perfect yellow stats
WTS 4% cast ring lvl 40 for 2% crit ring or good offer server brumhart
01/25/2010 - Archlord Trading - 0 Replies
titel say all
WTT 4% cast ring+2% crit ring for 3% crit ring or good unique
01/09/2010 - Archlord Trading - 2 Replies
titel say all
WTT blode ring with stamina lvl 3 for shuta ring with ring spirit stone lvl 5 (9%res)
01/02/2010 - Archlord Trading - 0 Replies
server brumhart if u intrested let me know TY
WTS Barom Ring / Guardimesh Neck / Blode Ring / Pargon Ring
06/18/2009 - Archlord Trading - 9 Replies
Im thinking about selling my Barom/Blode/Pargon Ring and my Guardimesh Neck. Please leave your offers here or write me a PM. All on Evengarda



All times are GMT +2. The time now is 06:19.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.