Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 08:25

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

Advertisement



My Piglet don't work... I have the skill but when i use, i'm not transform!

Discussion on My Piglet don't work... I have the skill but when i use, i'm not transform! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 10/04/2010, 23:00   #16
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by _Vodka View Post
Much better one:
Define this in character.cs:
Code:
        public bool IsBigBoy;
        public bool IsBigGirl;
        public bool IsSmallBoy;
        public bool IsSmallGirl;
Now open GameWorker.cs and find:
Code:
Program.WriteLine(GC.MyChar.Name + " has logged on.");
above that put:
Code:
                                    if (GC.MyChar.Body == 1004)
                                        GC.MyChar.IsBigBoy = true;
                                    if (GC.MyChar.Body == 2002)
                                        GC.MyChar.IsBigGirl = true;
                                    if (GC.MyChar.Body == 1003)
                                        GC.MyChar.IsSmallBoy = true;
                                    if (GC.MyChar.Body == 2001)
                                        GC.MyChar.IsSmallGirl = true;
Now the command:
Code:
                        if (Cmd[0] == "/gm")
                        {
                            switch (Cmd[1])
                            {
                                case "on":
                                    {
                                        GC.MyChar.Body = 223;
                                        break;
                                    }
                                case "off":
                                    {
                                        if (GC.MyChar.IsBigBoy == true)
                                            GC.MyChar.Body = 1004;
                                        if (GC.MyChar.IsSmallBoy == true)
                                            GC.MyChar.Body = 1003;
                                        if (GC.MyChar.IsBigGirl == true)
                                            GC.MyChar.Body = 2002;
                                        if (GC.MyChar.IsSmallGirl == true)
                                            GC.MyChar.Body = 2001;
                                        break;
                                    }
                            }
                        }
Now open GameClient.cs and find:
Code:
public void LogOff(bool Remove)
after the try
put:
Code:
                                        if (GC.MyChar.IsBigBoy == true)
                                            GC.MyChar.Body = 1004;
                                        if (GC.MyChar.IsSmallBoy == true)
                                            GC.MyChar.Body = 1003;
                                        if (GC.MyChar.IsBigGirl == true)
                                            GC.MyChar.Body = 2002;
                                        if (GC.MyChar.IsSmallGirl == true)
                                            GC.MyChar.Body = 2001;
                                        else
                                            GC.MyChar.Body = 1003;//If not boy or girl, u will be boy

Seems a waste of code to me :S

in client do something like

public bool Transformed = false;
public uint Mesh = w/e is loaded from database.
public uint Transformation = 0;

Then in your spawn packet do something like.

If(GC.MyChar.Transformed)
write your mesh as being transformation
else
write your mesh as mesh


Then in command you can do something to set transformed = true; and transformation = w/e you want.

Hell, write a structure for transformation containing activation time, stats, activated, mesh and timeout. Then you have all the information you could ever want for activating/deactivating it at will.

Note: Reason I suggest this mainly is you NEVER want to mess with your char mesh just incase it gets saved. It will fuck up your meshes/genders. It's far better to use less code and just use a transformation value to spawn characters.
pro4never is offline  
Thanks
1 User
Old 10/04/2010, 23:03   #17
 
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
Quote:
Originally Posted by pro4never View Post
Seems a waste of code to me :S

in client do something like

public bool Transformed = false;
public uint Mesh = w/e is loaded from database.
public uint Transformation = 0;

Then in your spawn packet do something like.

If(GC.MyChar.Transformed)
write your mesh as being transformation
else
write your mesh as mesh


Then in command you can do something to set transformed = true; and transformation = w/e you want.

Hell, write a structure for transformation containing activation time, stats, activated, mesh and timeout. Then you have all the information you could ever want for activating/deactivating it at will.

Note: Reason I suggest this mainly is you NEVER want to mess with your char mesh just incase it gets saved. It will **** up your meshes/genders. It's far better to use less code and just use a transformation value to spawn characters.
All I did was take it out of the BaconCo source as my friend aint opening the server.
_Vodka is offline  
Old 10/04/2010, 23:04   #18
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by pro4never View Post
Seems a waste of code to me :S
I can't agree more.
Arcо is offline  
Reply


Similar Threads Similar Threads
Problem Trans Buff skill char won't transform
04/11/2014 - Dekaron Private Server - 5 Replies
i used ultra server files but the problem is that using transup my character won't transform. But, it does give the effect of the skill. Am I lacking texture/animation or others? Please tell me which file that handles the skill.
easy help i want to add [Piglet skill gm ] in scoure 5165
05/28/2010 - CO2 Private Server - 6 Replies
hay all i tried to add it but it dosent show here code i use public void AddBuff(Buff B) { Buff ExBuff = BuffOf(B.Eff); if (ExBuff.Eff == B.Eff) Buffs.Remove(ExBuff); if (B.Eff == SkillsClass.ExtraEffect.Transform) {
Piglet help :(
05/07/2010 - CO2 Private Server - 10 Replies
Ok the two pictures say it all >.< I can summon a piglet and I can gain the skill piglet BUT my char even as will not transform to piglet even though I can transform to NightDevil, Fishy, DivineHare, Golem etc. Any help please would be appreciated :D
[HELP]MyCo Source By Yuki , the transform skills not work!!
08/07/2009 - CO2 Private Server - 7 Replies
the transform skills not work!! who can help me plx!!!
Animal skill without transform
07/11/2008 - Kal Online - 6 Replies
Hello. As in a topic. Anyone tried to do this before? Is it possible? I don't have any ideas how to do this yet. And maybe someone know what is a cooldown value for Adult Transformation On global it is 5000, but on server where I play it is other and I can't found this. Server name is Weeds Online, maybe someone plays here and can help ^^



All times are GMT +2. The time now is 08:25.


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.