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 14:42

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

Advertisement



[Release]Change sex npc for hellmouthco source

Discussion on [Release]Change sex npc for hellmouthco source within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
[Release]Change *** npc for hellmouthco source

Hi im of now
here the Change sex npc

Code:
                    #region Change Sex
                    case 5991:
                        {
                            switch (LinkBack)
                            {
                                case 0:
                                    {
                                        Text(" Hi " + Client.Name + " I can change sex for 5k cps, you agree?", Client);
                                        Link("Yes Pliz.", 1, Client);
                                        Link("Nah Ty", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 1:
                                    if (Client.CP >= 5000)
                                    {
                                        if (Client.BaseMesh == 2001)
                                        {
                                            Client.CP -= 5000;
                                            Client.BaseMesh = 1003;
                                            return;
                                        }
                                        else
                                        {
                                            Client.CP -= 5000;
                                            Client.BaseMesh = 2001;
                                            return;
                                        }
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok Ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                            }
                            return;
                        }
                    #endregion
or this script for selesct the body

Code:
#region Sex change
                    case 5991:
                        {
                            switch (LinkBack)
                            {
                                case 0:
                                    {
                                        Text("Hi " + Client.Name + " I can change sex for 5k cps, you agree?", Client);
                                        Link("yes pliz.", 1, Client);
                                        Link("Nah Ty", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 1:
                                    {
                                        Text("At that size and type of sex you want to change", Client);
                                        Link("Little Women.", 2, Client);
                                        Link("Big Women.", 3, Client);
                                        Link("Little Man.", 4, Client);
                                        Link("Big man.", 5, Client);
                                        Link("Nah Ty", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 2:
                                    if (Client.CP >= 5000)
                                    {
                                        Client.CP -= 5000;
                                        Client.BaseMesh = 1001;
                                        return;
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 3:
                                    if (Client.CP >= 5000)
                                    {
                                        Client.CP -= 5000;
                                        Client.BaseMesh = 1002;
                                        return;
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 4:
                                    if (Client.CP >= 5000)
                                    {
                                        Client.CP -= 5000;
                                        Client.BaseMesh = 2003;
                                        return;
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 5:
                                    if (Client.CP >= 5000)
                                    {
                                        Client.CP -= 5000;
                                        Client.BaseMesh = 2004;
                                        return;
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                            }
                            return;
                        }
                    #endregion
and upload it to Navicat

Code:
INSERT INTO `npcs` VALUES ('5991', '5991', '50040', 'ChangeSex', '1002', '439', '368', '0', '2');


press Thanks if like you the npc

sorry for my bad English
thesamuraivega is offline  
Old 04/20/2011, 07:19   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Would be simpler to just do a basic gender switcher and size switcher.


EG:

if(mesh % 2 == 0)
mesh ++;
else
mesh--;

would be a simple size change

same idea for gender except you want to switch the x000 digit as well as the 000x digit.
pro4never is offline  
Thanks
1 User
Old 04/20/2011, 07:35   #3
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by pro4never View Post
Would be simpler to just do a basic gender switcher and size switcher.


EG:

if(mesh % 2 == 0)
mesh ++;
else
mesh--;

would be a simple size change

same idea for gender except you want to switch the x000 digit as well as the 000x digit.
maybe so?

Code:
                    #region Change Sex
                    case 5991:
                        {
                            switch (LinkBack)
                            {
                                case 0:
                                    {
                                        Text(" Hi " + Client.Name + " I can change sex for 5k cps, you agree?", Client);
                                        Link("Yes Pliz.", 1, Client);
                                        Link("Nah Ty", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 1:
                                    if (Client.CP >= 5000)
                                    {
                                        if (Client.BaseMesh == 2001)
                                        {
                                            Client.CP -= 5000;
                                            Client.BaseMesh = 1003;
                                            return;
                                        }
                                        else
                                        {
                                            Client.CP -= 5000;
                                            Client.BaseMesh = 2001;
                                            return;
                                        }
                                    }
                                    else
                                    {

                                        Text("You no have cps!.", Client);
                                        Link("Ok Ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }

                            }
                            return;
                        }
                    #endregion
thesamuraivega is offline  
Old 04/20/2011, 21:52   #4
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
ok Change *** #Fixed
thesamuraivega is offline  
Old 04/20/2011, 21:58   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
You need to account for both small and large meshes.

1001, 1002 male

2003 2004 female i THINK
pro4never is offline  
Old 04/21/2011, 00:14   #6
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by pro4never View Post
You need to account for both small and large meshes.

1001, 1002 male

2003 2004 female i THINK
Maybe so?

Code:
#region Sex change
                    case 5991:
                        {
                            switch (LinkBack)
                            {
                                case 0:
                                    {
                                        Text("Hi " + Client.Name + " I can change sex for 5k cps, you agree?", Client);
                                        Link("yes pliz.", 1, Client);
                                        Link("Nah Ty", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 1:
                                    {
                                        Text("At that size and type of sex you want to change", Client);
                                        Link("Little Women.", 2, Client);
                                        Link("Big Women.", 3, Client);
                                        Link("Little Man.", 4, Client);
                                        Link("Big man.", 5, Client);
                                        Link("Nah Ty", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 2:
                                    if (Client.CP >= 5000)
                                    {
                                        Client.CP -= 5000;
                                        Client.BaseMesh = 1001;
                                        return;
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 3:
                                    if (Client.CP >= 5000)
                                    {
                                        Client.CP -= 5000;
                                        Client.BaseMesh = 1002;
                                        return;
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 4:
                                    if (Client.CP >= 5000)
                                    {
                                        Client.CP -= 5000;
                                        Client.BaseMesh = 2003;
                                        return;
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                                case 5:
                                    if (Client.CP >= 5000)
                                    {
                                        Client.CP -= 5000;
                                        Client.BaseMesh = 2004;
                                        return;
                                    }
                                    else
                                    {
                                        Text("You no have cps!.", Client);
                                        Link("Ok ty.", 255, Client);
                                        Finish(Client);
                                        return;
                                    }
                            }
                            return;
                        }
                    #endregion
thesamuraivega is offline  
Old 04/22/2011, 17:21   #7
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
xD you learn as u go..
BioHazarxPaul is offline  
Old 04/22/2011, 18:10   #8
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by BioHazarxPaul View Post
xD you learn as u go..
at least attempt
thesamuraivega is offline  
Reply


Similar Threads Similar Threads
[OverDue Release] HellmouthCo Source: 5355+, Monk, etc
01/14/2012 - CO2 PServer Guides & Releases - 479 Replies
<<UPDATE>> I posted a faq thread for this which I will add to as I receive questions from people. http://www.elitepvpers.com/forum/co2-pserver-guide s-releases/1054934-faq-hellmouthsource.html#post94 91034 <<EDIT AGAIN> CLIENT LINK: http://www.megaupload.com/?d=PWYKHAOI No idea if that client is any good... Personally I'd just download one from http://co.91.com/downloads/client.shtml and patch it to 5355 but that's just me. Someone posted that megaupload link for when we were hosting...
[Release] HellmouthCo Source (old version)
01/10/2012 - CO2 PServer Guides & Releases - 45 Replies
Ok so this is far from the latest version of my old source. Please keep in mind that it IS based on the Sword/anime co sources so it does have problems with the socket and threading systems but other then that a shitload of stuff is fixed/added. Keep in mind that there is alot of half finished stuff in there. This was my local test version of the source that I would try hard coding features on before I ever uploaded them to my vps and fleshed them out. There will be problems and it's not...
How to make npc in HellmouthCo source?
03/11/2011 - CO2 Private Server - 1 Replies
Hello there, I have a question. How to add a npc in hellmouthco? I added it first to npcdialog and where do I need to add the rest? Kind regards, warzie005



All times are GMT +2. The time now is 14:42.


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.