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
below that add this
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
scroll down some, and you should see this
add this below it
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
scroll down some and you should see this
Add this below it
The numbers .2 CAN be changed also. shouldnt be higher than 1.
Next go in Monster.cs and find:
you should see this
below that add this:
the .2 numbers CAN be changed, shudnt be higher than 1.
Now you can add a command.
Go in Chat.cs
Add this somewhere
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
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