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);
}
Code:
else if (Attacked.Reborn == 3)
{
Damage = (int)Math.Floor(Damage * .02);
if (Attacker.Reborn < 3)
Damage = (int)Math.Floor(Damage * .02);
}
now in Damage.cs find this
Code:
else if (AType == 21)
Code:
else if(Attacked.Reborn == 2)
{
Damage = (int)Math.Floor(Damage*.7);
if(Attacker.Reborn < 2)
Damage = (int)Math.Floor(Damage*.5);
}
Code:
else if (Attacked.Reborn == 3)
{
Damage = (int)Math.Floor(Damage * .2);
if (Attacker.Reborn < 3)
Damage = (int)Math.Floor(Damage * .2);
}
Now in damage.cs find this
Code:
else if (AType = 25)
Code:
else if(Attacked.Reborn == 2)
{
Damage = (int)Math.Floor(Damage*.7);
if(Attacker.Reborn < 2)
Damage = (int)Math.Floor(Damage*.5);
}
Code:
else if (Attacked.Reborn == 3)
{
Damage = (int)Math.Floor(Damage * .2);
if (Attacker.Reborn < 3)
Damage = (int)Math.Floor(Damage * .2);
}
Next go in Monster.cs and find:
Code:
else if(Attacked.Client.Reborn == 2)
Code:
else if(Attacked.Client.Reborn == 2)
{
Damage = (int)Math.Floor(Damage*.7);
Damage = (int)Math.Floor(Damage*.5);
}
Code:
else if (Attacked.Client.Reborn == 3)
{
Damage = (int)Math.Floor(Damage * .2);
Damage = (int)Math.Floor(Damage * .2);
}
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;
}
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






