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