[RELEASE] how to add 3rd rb

06/21/2009 21:18 Akarama#1
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
06/21/2009 21:38 InfamousNoone#2
why not actually add something useful to the source instead of just adding more bullshit that's unnecessary?
06/21/2009 21:44 Akarama#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
06/21/2009 21:51 Vortex.#4
#fail.

Please die
06/21/2009 21:55 Akarama#5
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 =.=
06/21/2009 21:57 BrokeN^WinG#6
Quote:
Originally Posted by Vortex. View Post
#fail.

Please die
noob u suck idiot :rolleyes:
06/21/2009 21:57 Vortex.#7
I got an infraction, weeeehheee
06/21/2009 22:02 kinshi88#8
Quote:
Originally Posted by BrokeN^WinG View Post
noob u suck idiot :rolleyes:
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.
06/21/2009 22:52 caution2006#9
good job
06/22/2009 16:02 xellios#10
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
06/22/2009 20:31 Illustria#11
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 bitching 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...