Register for your free account! | Forgot your password?

You last visited: Today at 07:53

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

Advertisement



[RELEASE] 5165 Job/Size Changing NPC

Discussion on [RELEASE] 5165 Job/Size Changing NPC within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 19
Received Thanks: 8
Red face [RELEASE] 5165 Job/Size Changing NPC

So this is my 1st post - Let's begin - Go in NPCDialog.cs
Add the following code:
Code:
#region Job / Size Change
                            case 3381:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("What Do You Want Newb?"));
                                        GC.AddSend(Packets.NPCLink("Change My Job For 100k CPs.", 1));
                                        GC.AddSend(Packets.NPCLink("Change My Body Size For 1 DB", 9));
                                        GC.AddSend(Packets.NPCLink("Nothing Boss.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }

                                    else if (Control == 1)
                                    {

                                        GC.AddSend(Packets.NPCSay("Alright, Choose What You Wanna Be."));
                                        GC.AddSend(Packets.NPCLink("Trojan", 3));
                                        GC.AddSend(Packets.NPCLink("Warrior", 4));
                                        GC.AddSend(Packets.NPCLink("Archer", 5));
                                        GC.AddSend(Packets.NPCLink("WaterTaoist", 6));
                                        GC.AddSend(Packets.NPCLink("FireTaoist", 7));
                                        GC.AddSend(Packets.NPCLink("Ninja", 8));

                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    else if (Control == 9)
                                    {

                                        if (GC.MyChar.InventoryContains(1088000, 1))
                                        {
                                            for (byte i = 0; i < 1; i++)
                                                GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
                                            {
                                                if (GC.MyChar.Body == 1004)
                                                    GC.MyChar.Body -= 1;
                                                else if (GC.MyChar.Body == 1003)
                                                    GC.MyChar.Body += 1;
                                                if (GC.MyChar.Body == 2002)
                                                    GC.MyChar.Body -= 1;
                                                else if (GC.MyChar.Body == 2001)
                                                    GC.MyChar.Body += 1;

                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Sorry, you do not have a DragonBall."));
                                            GC.AddSend(Packets.NPCLink("OK, I gotta buy one now >_>.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 3)
                                    {

                                        if (GC.MyChar.CPs >= 100000)
                                        {
                                            GC.AddSend(Packets.NPCSay("Here."));
                                            GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have 100k CPs. Fuck Off!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        GC.MyChar.Job = 15;
                                        GC.MyChar.CPs -= 100000;
                                    }
                                    else if (Control == 4)
                                    {

                                        if (GC.MyChar.CPs >= 100000)
                                        {

                                            GC.AddSend(Packets.NPCSay("Here."));
                                            GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have 100k CPs. Fuck Off!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        GC.MyChar.Job = 25;
                                        GC.MyChar.CPs -= 100000;
                                    }
                                    else if (Control == 5)
                                    {

                                        if (GC.MyChar.CPs >= 100000)
                                        {

                                            GC.AddSend(Packets.NPCSay("Here."));
                                            GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have 100k CPs. Fuck Off!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        GC.MyChar.Job = 45;
                                        GC.MyChar.CPs -= 100000;
                                    }
                                    else if (Control == 6)
                                    {

                                        if (GC.MyChar.CPs >= 100000)
                                        {

                                            GC.AddSend(Packets.NPCSay("Here."));
                                            GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have 100k CPs. Fuck Off!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        GC.MyChar.Job = 135;
                                        GC.MyChar.CPs -= 100000;
                                    }
                                    else if (Control == 7)
                                    {

                                        if (GC.MyChar.CPs >= 100000)
                                        {

                                            GC.AddSend(Packets.NPCSay("Here."));
                                            GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have 100k CPs. Fuck Off!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        GC.MyChar.Job = 145;
                                        GC.MyChar.CPs -= 100000;
                                    }
                                    else if (Control == 8)
                                    {

                                        if (GC.MyChar.CPs >= 100000)
                                        {

                                            GC.AddSend(Packets.NPCSay("Here."));
                                            GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have 100k CPs. Fuck Off!"));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }

                                        GC.MyChar.Job = 55;
                                        GC.MyChar.CPs -= 100000;
                                    }

                                    break;
                                }
                            #endregion
That should work.
+K if i helped ya!
*NOTE: Changing Job - 100k CPs (You can edit the values)
Changing Size - 1 DB
EDIT: Ty a lot gulpi_de_gulat (yhudong)
silwhat is offline  
Thanks
3 Users
Old 12/12/2009, 21:30   #2
 
rawwwr(:'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 36
Received Thanks: 15
cool (:
rawwwr(: is offline  
Old 12/12/2009, 21:31   #3
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
You should use the [CODE] Option on the beging on that code and [/ CODE] At the Ending Cause like that the thread dont have to be so Long.
-Shunsui- is offline  
Old 12/12/2009, 21:34   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 19
Received Thanks: 8
ty shun - gonna edit it now >.>
silwhat is offline  
Old 12/12/2009, 23:11   #5
 
gulpi_de_gulat's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 40
why ppl releasing the code and they do it, but actually they only copy and paste my work in realease 4botters, its me yhudong
gulpi_de_gulat is offline  
Old 12/13/2009, 23:52   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 15
Received Thanks: 1
cool tnx
pripas is offline  
Old 12/14/2009, 00:01   #7
 
onlyme64's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 268
Received Thanks: 25
Quote:
Originally Posted by gulpi_de_gulat View Post
why ppl releasing the code and they do it, but actually they only copy and paste my work in realease 4botters, its me yhudong
Sorry boss.
onlyme64 is offline  
Old 12/14/2009, 09:48   #8
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
TQ's Version of SurgeonMiracle, just open the spoiler.
ImmuneOne is offline  
Old 12/14/2009, 12:14   #9
 
masternek's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 94
Received Thanks: 29
thanks
masternek is offline  
Reply


Similar Threads Similar Threads
problem changing npc client 5165
10/01/2010 - CO2 Private Server - 5 Replies
i have aproblem while changing npc or npc dialog or welcome message after i change the code by c# and i relog i dont find any thing changed please i need help with this problem
[Need Help]Changing patch(eg 5165 to 5017 or 4351)
05/14/2010 - CO2 Private Server - 5 Replies
ive been wanting to know how its done for quiet some time now... i just started getting a lot more into coding and kinda wanted to know how to convert some of the newer projects back to the good old days is it a few packet changes?a different encryption? could somebody try to help me with my little predicament?(im aware of the converting to 5165 guide)
[Help]How as changing the level of the mobs and hp. (source 5165)
03/15/2010 - CO2 Private Server - 1 Replies
I start with the server, but I do not see any database where you can modify the sql, I see that is more C #, I will change the name but not its level and hp in this source.:confused: Usually, you run into problems with the NPC, which was gradually resolving those and now I learn to create. But so far that's my only question, if someone could help me I would appreciate that. Thanks, Good Day.;)
Changing the Size to make
01/17/2007 - Conquer Online 2 - 19 Replies
Ok so im guessing that with the new patches and all they changed certain things in the ini. Example: Lab Archer Bot Makes slingers small and people small 1px to be exact. the old monster and size.dat dont work anymore and if someone could be of some assistance and explain why to the community and or how to change it. I would greatly appreciate it :D
Changing size and property of monster
10/15/2006 - Conquer Online 2 - 2 Replies
hi i'm trying to change the size and property of BlueBirds (Lab3 monsters) I want them to look in size and not flying just like a Bladeling would (lab2 monster) armor.ini changes only change arrangements of the monster and color and texture. But do not make it bigger. Anyone know how i can do it? text2schild.php?smilienummer=1&text=ty!' border='0' alt='ty!' />



All times are GMT +1. The time now is 07:55.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.