Register for your free account! | Forgot your password?

You last visited: Today at 00:32

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

Advertisement



[RELEASE] how to add 3rd rb

Discussion on [RELEASE] how to add 3rd rb within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
[RELEASE] how to add 3rd rb

Well, someone asked me to do it in a PM so i figured id post it here.

First things first, open up your source

Open Damage.cs

find if (AType == 2)

below that somewhere you should see this
Code:
				else if(Attacked.Reborn == 2)
				{
					Damage = (int)Math.Floor(Damage*.7);
					if(Attacker.Reborn < 2)
						Damage = (int)Math.Floor(Damage*.5);
                }
below that add this
Code:
                else if (Attacked.Reborn == 3)
                {
                    Damage = (int)Math.Floor(Damage * .02);
                    if (Attacker.Reborn < 3)
                        Damage = (int)Math.Floor(Damage * .02);
                }
the .02 numbers can be changed, you can toggle them to whatever you want, but they shouldn't be higher than 1.

now in Damage.cs find this
Code:
else if (AType == 21)
scroll down some, and you should see this
Code:
				else if(Attacked.Reborn == 2)
				{
					Damage = (int)Math.Floor(Damage*.7);
					if(Attacker.Reborn < 2)
						Damage = (int)Math.Floor(Damage*.5);
				}
add this below it
Code:
                else if (Attacked.Reborn == 3)
                {
                    Damage = (int)Math.Floor(Damage * .2);
                    if (Attacker.Reborn < 3)
                        Damage = (int)Math.Floor(Damage * .2);
                }
The .2 numbers CAN be changed, you may toggle them as you please, they shouldnt be higher than 1.

Now in damage.cs find this
Code:
else if (AType = 25)
scroll down some and you should see this
Code:
				else if(Attacked.Reborn == 2)
				{
					Damage = (int)Math.Floor(Damage*.7);
					if(Attacker.Reborn < 2)
						Damage = (int)Math.Floor(Damage*.5);
                }
Add this below it
Code:
                else if (Attacked.Reborn == 3)
                {
                    Damage = (int)Math.Floor(Damage * .2);
                    if (Attacker.Reborn < 3)
                        Damage = (int)Math.Floor(Damage * .2);
                }
The numbers .2 CAN be changed also. shouldnt be higher than 1.

Next go in Monster.cs and find:
Code:
				else if(Attacked.Client.Reborn == 2)
you should see this
Code:
				else if(Attacked.Client.Reborn == 2)
				{
					Damage = (int)Math.Floor(Damage*.7);
					Damage = (int)Math.Floor(Damage*.5);
				}
below that add this:
Code:
                else if (Attacked.Client.Reborn == 3)
                {
                    Damage = (int)Math.Floor(Damage * .2);
                    Damage = (int)Math.Floor(Damage * .2);
                }
the .2 numbers CAN be changed, shudnt be higher than 1.

Now you can add a command.
Go in Chat.cs
Add this somewhere
Code:
                        case "3rdrb":
                            {
                                if (CSocket.Client.isPM || CSocket.Client.isGM)
                                {
                                    CSocket.Client.Reborn = 3;
                                    ConquerPacket.ToServer(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "CONGRATULATIONS! " + CSocket.Client.Name + " has just been third reborn! Beware!!", Struct.ChatType.Center), 0);
                                }
                                break;
                            }
now open your server and type in /3rdrb and you should be 3rd rb.
You may need to relog to see the potency effect of 3rd rb.
If you have used this code remember to press the thanks button! =P
Akarama is offline  
Thanks
2 Users
Old 06/21/2009, 21:38   #2
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
why not actually add something useful to the source instead of just adding more bullshit that's unnecessary?
InfamousNoone is offline  
Old 06/21/2009, 21:44   #3
 
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
Quote:
Originally Posted by InfamousNoone View Post
why not actually add something useful to the source instead of just adding more bullshit that's unnecessary?
Helping the noobs.

and someone asked me so instead of pming them i figured why not post it on forum
Akarama is offline  
Old 06/21/2009, 21:51   #4
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
#fail.

Please die
Vortex. is offline  
Old 06/21/2009, 21:55   #5
 
elite*gold: 0
Join Date: Jun 2009
Posts: 33
Received Thanks: 3
Hey why dont all the so called "pro" coders here stfu and gtfo this is a noobs release not a "all the pros FLAME because its not a useful code" release =.=
Akarama is offline  
Old 06/21/2009, 21:57   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 425
Received Thanks: 424
Quote:
Originally Posted by Vortex. View Post
#fail.

Please die
noob u suck idiot
BrokeN^WinG is offline  
Old 06/21/2009, 21:57   #7
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
I got an infraction, weeeehheee
Vortex. is offline  
Old 06/21/2009, 22:02   #8
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Quote:
Originally Posted by BrokeN^WinG View Post
noob u suck idiot
If someone insults you, don't insult back, report them. The mods will deal with it.

Quote:
Originally Posted by Vortex. View Post
I got an infraction, weeeehheee
Refrain from spamming the board.
kinshi88 is offline  
Old 06/21/2009, 22:52   #9
 
elite*gold: 0
Join Date: Jun 2006
Posts: 8
Received Thanks: 0
good job
caution2006 is offline  
Old 06/22/2009, 16:02   #10
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
Vortex show me an example of your oooo soo usefull codes ? ouI didnt see anything from you so far so why you dnt shut it? gdbye

Greetz,
Xellios
xellios is offline  
Old 06/22/2009, 20:31   #11
 
elite*gold: 0
Join Date: Apr 2007
Posts: 69
Received Thanks: 3
Quote:
Originally Posted by Vortex. View Post
I got an infraction, weeeehheee
Yea frankly im tired of these so called good coders, they make codes, remove it off their posts saying theyre sick of noobs ******** or want noobs to learn to code. Theyre learning to code and the only thing they can get for their posts is "Useless..." or "Fail..." you need to start somewhere so take that fail or useless and stick it in a very uncomfortable place...
Illustria is offline  
Reply




All times are GMT +1. The time now is 00:32.


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.