Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP] Code to add strength for npc?

Discussion on [HELP] Code to add strength for npc? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2007
Posts: 116
Received Thanks: 16
[HELP] Code to add strength for npc?

Heres an npc im working on

Code:
                case 10151:// Stat Adder
                    {
                        if (LinkBack == 0)
                        {
                            Text("Want your stats increased by 100? You cannot have your stats higher than 10k. It'll cost you 1 million cps. Pick your stat you wanna increase. You must be level 120+.", CSocket);
                            Link("Str", 1, CSocket);
                            Link("Vit", 2, CSocket);
                            Link("Agi", 3, CSocket);
                            Link("Spi", 4, CSocket);
                            Link("No thanks", 225, CSocket);
                            End(CSocket);

                        }
                        else if (LinkBack == 1)
                        {
                            if (CSocket.Client.Strength <= 10000)
                                if (CSocket.Client.Level >= 120)
                                    if(CSocket.Client.CPs >= 1000000)
                                {
                                    CPs(-1000000, CSocket);
                                    Strength(+100, CSocket); ConquerPacket.ToServer(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "CONGRATULATIONS! " + CSocket.Client.Name + " has increased his strength stat by 100! Good job!", Struct.ChatType.Center), 0);
                                }
                                else
                                {
                                    Text("You dont meet the requirements!", CSocket);
                                    Link("Damn!", 255, CSocket);
                                    End(CSocket);
                                }
                        }
                        else if (LinkBack == 2)
                        {
                            if (CSocket.Client.Vitality <= 10000)
                                if (CSocket.Client.Level >= 120)
                                    if (CSocket.Client.CPs >= 1000000)
                                {
                                    CPs(-1000000, CSocket);
                                    Vitality(+100, CSocket); ConquerPacket.ToServer(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "CONGRATULATIONS! " + CSocket.Client.Name + " has increased his strength stat by 100! Good job!", Struct.ChatType.Center), 0);
                                }
                                else
                                {
                                    Text("You dont meet the requirements!", CSocket);
                                    Link("Damn!", 255, CSocket);
                                    End(CSocket);
                                }
                        }
                        else if (LinkBack == 3)
                        {
                            if (CSocket.Client.Dexterity <= 10000)
                                if (CSocket.Client.Level >= 120)
                                    if (CSocket.Client.CPs >= 1000000)
                                    {
                                        CPs(-1000000, CSocket);
                                        Dexterity(+100, CSocket); ConquerPacket.ToServer(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "CONGRATULATIONS! " + CSocket.Client.Name + " has increased his strength stat by 100! Good job!", Struct.ChatType.Center), 0);
                                    }
                                    else
                                    {
                                        Text("You dont meet the requirements!", CSocket);
                                        Link("Damn!", 255, CSocket);
                                        End(CSocket);
                                    }
                        }
                        else if (LinkBack == 4)
                        {
                            if (CSocket.Client.Spirit <= 10000)
                                if (CSocket.Client.Level >= 120)
                                    if (CSocket.Client.CPs >= 1000000)
                                    {
                                        CPs(-1000000, CSocket);
                                        Spirit(+100, CSocket); ConquerPacket.ToServer(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "CONGRATULATIONS! " + CSocket.Client.Name + " has increased his strength stat by 100! Good job!", Struct.ChatType.Center), 0);
                                    }
                                    else
                                    {
                                        Text("You dont meet the requirements!", CSocket);
                                        Link("Damn!", 255, CSocket);
                                        End(CSocket);
                                    }
                        }
                        break;
                    }
It will take your cps, but wont give you the stats. Can anyone tell me the method for adding the stats?
I tried using (CSocket.Client.Strength + 100); and (CSocket.Client.Strength += 100); but they didnt work either.
quadruple1 is offline  
Old 06/15/2009, 22:02   #2

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
I think you also need to add this:
Code:
CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.Strength, Struct.StatusTypes.StrengthStatPoints));
                                                            Calculation.Vitals(CSocket, false);
Kiyono is offline  
Old 06/15/2009, 22:34   #3
 
elite*gold: 0
Join Date: Oct 2007
Posts: 116
Received Thanks: 16
Well I added it in front of Strength(+100, CSocket); if thats the correct place
and it still didnt work...
quadruple1 is offline  
Reply


Similar Threads Similar Threads
max strength in game
12/20/2008 - 9Dragons - 10 Replies
i saw a player with 437 str anyone know how to get this the best i can do with my math skills is 378. please help me are they cheatting?
tao with strength
10/14/2007 - Conquer Online 2 - 5 Replies
i saw a tao lvl 99 with EliteGoldGlaive (for lvl 95) and the tao is not reborn so how he do this? or its hack? :confused::confused::confused:
strength??
10/06/2007 - Conquer Online 2 - 4 Replies
hi all i got a 130 archer non rb but my mate put all attp on strength after 120 he told me you get more attack power can anyone give feedback if its true ore false? every other player put attp on hp when they have enouf to carry wapen plz let me know what you all think about this
is a strength hack possiable
04/19/2006 - Conquer Online 2 - 6 Replies
sorry if i have posted in wrong spot but would it be possiable to create a hack that would increase the strength of your attack if it is and one does already exsist could you please send it to [email protected] i know nothing about hacks so be nice people :)



All times are GMT +1. The time now is 18:09.


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