Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 00:22

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

Advertisement



[Release] Fixed Armor Dye (For Ninjas) [5165]

Discussion on [Release] Fixed Armor Dye (For Ninjas) [5165] within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 91
Received Thanks: 28
[Release] Fixed Armor Dye (For Ninjas) [5165]

This is tested and it fixes the error where a Ninja picks colors to die his/her armor that aren't correct. (aka, the ninja chooses Orange and it dyes his/her armor black). This does not effect any other class or headgear/shields. =]

Code:
#region Fang's Armor/Headgear/Shield Tinter
                            case 10064:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Great! A customer, so do you want to dye your equipment?"));
                                        GC.AddSend(Packets.NPCLink("Dye my armor, please.", 1));
                                        GC.AddSend(Packets.NPCLink("Dye my headgear, please.", 2));
                                        if (GC.MyChar.Equips.LeftHand.ID != 0 && Game.ItemIDManipulation.Part(GC.MyChar.Equips.LeftHand.ID, 0, 3) == 900)
                                            GC.AddSend(Packets.NPCLink("Dye my shield, please.", 3));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.Job >= 50 && GC.MyChar.Job <= 55)
                                        {
                                            GC.AddSend(Packets.NPCSay("Choose the color."));
                                            GC.AddSend(Packets.NPCLink("Black", (byte)(Control * 10 + 3)));
                                            GC.AddSend(Packets.NPCLink("Red", (byte)(Control * 10 + 4)));
                                            GC.AddSend(Packets.NPCLink("Light Green", (byte)(Control * 10 + 5)));
                                            GC.AddSend(Packets.NPCLink("Blue", (byte)(Control * 10 + 6)));
                                            GC.AddSend(Packets.NPCLink("Green", (byte)(Control * 10 + 7)));
                                            GC.AddSend(Packets.NPCLink("Orange", (byte)(Control * 10 + 8)));
                                            GC.AddSend(Packets.NPCLink("Purple", (byte)(Control * 10 + 9)));
                                            GC.AddSend(Packets.NPCLink("I've changed my mind.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Choose the color."));
                                            GC.AddSend(Packets.NPCLink("Orange", (byte)(Control * 10 + 3)));
                                            GC.AddSend(Packets.NPCLink("Light Blue", (byte)(Control * 10 + 4)));
                                            GC.AddSend(Packets.NPCLink("Red", (byte)(Control * 10 + 5)));
                                            GC.AddSend(Packets.NPCLink("Blue", (byte)(Control * 10 + 6)));
                                            GC.AddSend(Packets.NPCLink("Yellow", (byte)(Control * 10 + 7)));
                                            GC.AddSend(Packets.NPCLink("Purple", (byte)(Control * 10 + 8)));
                                            GC.AddSend(Packets.NPCLink("White", (byte)(Control * 10 + 9)));
                                            GC.AddSend(Packets.NPCLink("I've changed my mind.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 2 || Control == 3)
                                    {
                                        
                                            GC.AddSend(Packets.NPCSay("Choose the color."));
                                            GC.AddSend(Packets.NPCLink("Orange", (byte)(Control * 10 + 3)));
                                            GC.AddSend(Packets.NPCLink("Light Blue", (byte)(Control * 10 + 4)));
                                            GC.AddSend(Packets.NPCLink("Red", (byte)(Control * 10 + 5)));
                                            GC.AddSend(Packets.NPCLink("Blue", (byte)(Control * 10 + 6)));
                                            GC.AddSend(Packets.NPCLink("Yellow", (byte)(Control * 10 + 7)));
                                            GC.AddSend(Packets.NPCLink("Purple", (byte)(Control * 10 + 8)));
                                            GC.AddSend(Packets.NPCLink("White", (byte)(Control * 10 + 9)));
                                            GC.AddSend(Packets.NPCLink("I've changed my mind.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        
                                    }
                                    else
                                    {
                                        if (Control >= 13 && Control <= 19 && GC.MyChar.Equips.Armor.ID == 0)
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have an armor equipped. What am I gonna dye, your body?"));
                                            GC.AddSend(Packets.NPCLink("Noo, don't do that!", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                            return;
                                        }
                                        else if (Control >= 13 && Control <= 19)
                                        {
                                            GC.MyChar.Equips.Armor.Color = (Game.Item.ArmorColor)(Control - 10);
                                            GC.AddSend(Packets.AddItem(GC.MyChar.Equips.Armor, 3));
                                        }
                                        else if (Control >= 23 && Control <= 29 && GC.MyChar.Equips.HeadGear.ID == 0)
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have any headgear equipped. I'm no hair dyer, so put something on your head."));
                                            GC.AddSend(Packets.NPCLink("Oops, sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                            return;
                                        }
                                        else if (Control >= 23 && Control <= 29)
                                        {
                                            GC.MyChar.Equips.HeadGear.Color = (Game.Item.ArmorColor)(Control - 20);
                                            GC.AddSend(Packets.AddItem(GC.MyChar.Equips.HeadGear, 1));
                                        }
                                        else if (Control >= 33 && Control <= 39 && (GC.MyChar.Equips.LeftHand.ID == 0 || Game.ItemIDManipulation.Part(GC.MyChar.Equips.LeftHand.ID, 0, 3) != 900))
                                        {
                                            GC.AddSend(Packets.NPCSay("Where did you put your shield to?"));
                                            GC.AddSend(Packets.NPCLink("Oops. Sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                            return;
                                        }
                                        else if (Control >= 33 && Control <= 39)
                                        {
                                            GC.MyChar.Equips.LeftHand.Color = (Game.Item.ArmorColor)(Control - 30);
                                            GC.AddSend(Packets.AddItem(GC.MyChar.Equips.LeftHand, 5));
                                        }
                                    }
                                    break;
                                }
                            case 10063:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Are you not satisfied with your current armor, headgear or shield color? Then come into our shop and we will dye your armor for one meteor!"));
                                        GC.AddSend(Packets.NPCLink("Ok, here's a meteor!", 1));
                                        GC.AddSend(Packets.NPCLink("No, thanks.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(1088001, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088001));
                                            GC.MyChar.Teleport(1008, 22, 26);
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Sorry, you do not have a meteor on you."));
                                            GC.AddSend(Packets.NPCLink("Weird, I was sure I had brought one with me.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
Make sure that you replace case numbers instead of adding two cases. It will not work xP (I tried x_x"). Enjoy =P
darkdestiny54 is offline  
Thanks
3 Users
Old 02/16/2010, 15:19   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Thanks!
I will use this.
Decker_ is offline  
Old 02/16/2010, 15:44   #3
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
) you will use all code's from epvp because you can't code !
QuickCo is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[RELEASE] Fixed 5165 Source
07/28/2010 - CO2 PServer Guides & Releases - 27 Replies
Hello. I found this source on another forum so I don't know if it has been released here or not. Credits go to TheHunter Fixed: Download:
[Release] Proficiency God 5165! Fixed-Must See!
07/18/2010 - CO2 PServer Guides & Releases - 10 Replies
Okay so I got bored and I started to fiddle around with my server till I found my old 5095 source that contained the original proficiency god(well close to it or almost like it lol...) so I decided to get walmartboi to help me and he did and he helped me with the base and even more of the code...he deserves at lease 80% of credits so thank him! I converted everything else, he helped me convert the NPC actions of the NPC. I am sharing it now with you guys since I know you will like this! and...
[Release]My fixed 5165
06/12/2010 - CO2 PServer Guides & Releases - 22 Replies
Many add ons and bug fixes which include.... Dis City map with mobs this can be accessed from the TCTeleporter also added Lab 1 -4 this can be accessed from the normal npc that would send you there. Npcs I added: Talisman Seller npc (Sells GoldCups, Pent. Amulets etc) Halo npcs Mount Officer (skills) and Steed + npcs Bless npc
[RELEASE] 5165 attack bug fixed. and Vote npc!
04/01/2010 - CO2 PServer Guides & Releases - 27 Replies
Ok so Snow and Para (coders and owners of Conquer 3.0) are releasing a few codes to solve the bugs on all 5165 sources. The main and major bug everyone has problems with is WeaponMaster (item upgrading) seems to give every brilliant attack unless they relog. So we have coded it so it disconnects you. But you have otpion to continue upgrading so you dont have to keep dcin every single upgrade. Here it is. #region WeaponMaster case...



All times are GMT +2. The time now is 00:22.


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.