Register for your free account! | Forgot your password?

You last visited: Today at 09:36

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

Advertisement



[Release] Atr Points Command

Discussion on [Release] Atr Points Command within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Olodady's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
[Release] Atr Points Command

Put these codes in Chat.cs in your source
Command for free Atr. Points
Code:
           if (GC.AuthInfo.Status == "[PM]")
            {
               if (Cmd[0] == "/statp")
                  {
                     GC.MyChar.StatPoints = 0;
                     GC.MyChar.StatPoints = byte.Parse(Cmd[1]);
                   }
              }
Command for Strenght:
Code:
           if (GC.AuthInfo.Status == "[PM]")
            {
               if (Cmd[0] == "/str")
                  {
                     GC.MyChar.Str = 0;
                     GC.MyChar.Str = byte.Parse(Cmd[1]);
                   }
              }
Command for Agility:
Code:
           if (GC.AuthInfo.Status == "[PM]")
            {
               if (Cmd[0] == "/agi")
                  {
                     GC.MyChar.Agi = 0;
                     GC.MyChar.Agi = byte.Parse(Cmd[1]);
                   }
              }
Command for Vitality:
Code:
           if (GC.AuthInfo.Status == "[PM]")
            {
               if (Cmd[0] == "/vit")
                  {
                     GC.MyChar.Vit = 0;
                     GC.MyChar.Vit = byte.Parse(Cmd[1]);
                   }
              }
Command for Spirit:
Code:
           if (GC.AuthInfo.Status == "[PM]")
            {
               if (Cmd[0] == "/spi")
                  {
                     GC.MyChar.Spi = 0;
                     GC.MyChar.Spi = byte.Parse(Cmd[1]);
                   }
              }

Enjoy



Press if I helped
Olodady is offline  
Thanks
5 Users
Old 01/29/2010, 14:45   #2
 
elite*gold: 0
Join Date: Jan 2010
Posts: 116
Received Thanks: 33
THANK YOU!!!
This helped me a whole bunches! ! !
Jedex is offline  
Old 01/29/2010, 14:46   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Why are you setting the stat points to 0 before setting them to the value in the command? Theres no need for that at all.
Korvacs is offline  
Thanks
1 User
Old 01/29/2010, 14:55   #4
 
Olodady's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
To make sure it works perfectly
But any1 can remove it if they want
Olodady is offline  
Old 01/29/2010, 15:00   #5


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Quote:
Originally Posted by Olodady View Post
to make sure it works perfectly
But it will work perfectly.

When you do:

Code:
int x = 0;
or

Code:
int x = byte.Parse("300");
All your doing is overriding x, so you can just remove x = 0, because x will become 300 on the next line, regardless of what the value was before hand.

If you were doing

Code:
x += byte.Parse("300");
Then there would be cause for you to set the stats to 0 beforehand, but even then you wouldnt want to be using += because you should just be using =
Korvacs is offline  
Thanks
1 User
Old 01/29/2010, 15:05   #6
 
Olodady's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
Quote:
If you were doing

Code:
x += byte.Parse("300");
Then there would be cause for you to set the stats to 0 beforehand, but even then you wouldnt want to be using += because you should just be using =
If your doing it += it will add the atr points you want and I bet there's a max for it
And if it passes that max it might crack
And if it's not you wont be able to reduce them
Lets say u got 5k str if you go += you wont be able to reduce them but if you go = you will be able to set it even back to 0
Olodady is offline  
Old 01/29/2010, 16:06   #7


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Quote:
Originally Posted by Olodady View Post
If your doing it += it will add the atr points you want and I bet there's a max for it
And if it passes that max it might crack
And if it's not you wont be able to reduce them
Lets say u got 5k str if you go += you wont be able to reduce them but if you go = you will be able to set it even back to 0
I said if, however you arnt so you just need to do stat = byte.Parse

It was an example.
Korvacs is offline  
Old 01/29/2010, 16:43   #8
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
I don't get how this code works lol all I see it's that its setting your stats to 0.

Code:
GC.MyChar.StatPoints = byte.Parse(Cmd[1]);
What's this?
copz1337 is offline  
Old 01/29/2010, 17:08   #9
 
Olodady's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
It's geting your stats to 0 but after that it makes them the number you put in the command
Ex: /statp 410
You get 410 stat points it's nothing wrong with it
Olodady is offline  
Thanks
1 User
Old 01/29/2010, 20:39   #10
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
I'd recommend just giving 500 stats because if people input a number like 99999 it
s going to screw up the character.
copz1337 is offline  
Old 01/29/2010, 20:45   #11
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Hmm goodjob anyways o,o
.Ryu is offline  
Old 01/29/2010, 23:28   #12
 
Olodady's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
Quote:
Originally Posted by copz1337 View Post
I'd recommend just giving 500 stats because if people input a number like 99999 it
s going to screw up the character.
This is only for [PM] characters btw...
And it aint gonna screw up anything cuz u can imput a max of 20k or whatever you want ...
Olodady is offline  
Old 02/02/2010, 19:45   #13
 
elite*gold: 0
Join Date: Oct 2009
Posts: 3
Received Thanks: 1
where to put this codes ? in conquer folder? please help..thanks
lockinload is offline  
Old 02/12/2010, 20:34   #14
 
Olodady's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
Rikardo updated or however it's called and search for Chat.cs add it there
Olodady is offline  
Old 06/30/2010, 10:29   #15
 
elite*gold: 0
Join Date: Jul 2007
Posts: 3
Received Thanks: 0
Good Release thanks
Raresh is offline  
Reply


Similar Threads Similar Threads
[Small Release] Set players stat points command
07/14/2010 - CO2 PServer Guides & Releases - 5 Replies
Hey guys some people are having problems on their servers with stat points messing up. Here is a little code to add into chat.cs. These are 100% right went to the Official Conquer website and looked at all the stats "Masters" need. Goto chat.cs and search for /recall Under that void add this code. #region Set Player stats if (Cmd == "/setstats400") { if (GC.AuthInfo.Status...
[Release] a new command
07/16/2009 - CO2 PServer Guides & Releases - 8 Replies
ok this is the /pet command ok its not hard to do and i thank it will only work if u have the summon guard working becaz i us its atk type or u can edit it if u want but ul hafe to fix it up so it wont atk its self if u do that well any way here u go find wear u put commands in and put this if (Splitter == "/pet") { // /pet HP atk name mech lvl ...
[Release]-- New Command --
12/10/2008 - CO2 PServer Guides & Releases - 7 Replies
GOT That Damianpesta _1_
[RElease]Command Virtual points
08/31/2008 - CO2 PServer Guides & Releases - 6 Replies
in client.cs in case 1004:



All times are GMT +2. The time now is 09:36.


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.