The original is like this:
I change the blue area(First code) to the red area(Second code)
If anybody can tell me if is right.
I did it in world.cs and character.cs
Code:
if (PTarget.PKPoints < 100)
if (!PTarget.BlueName)
if (!Other.CanPK(LocMap))
if (LocMap != 1005 && LocMap != 6000 && LocMap != 1038 && LocMap != 6001 && LocMap != 1511 && LocMap != 2021 && LocMap != 2022 && LocMap != 2023 && LocMap != 2024 && LocMap != 1700 && LocMap != 1013)
{
GotBlueName = DateTime.Now;
[COLOR="Blue"]BlueName = true;[/COLOR]
MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
World.UpdateSpawn(this);
}
World.PVP(this, PTarget, AtkType, (uint)Damage);
if (PTarget.GetHitDie((uint)Damage))
{
Attacking = false;
if (!Other.CanPK(LocMap))
if (!PTarget.BlueName)
if (PTarget.PKPoints < 100)
{
GotBlueName = DateTime.Now;
BlueName = true;
PKPoints += 10;
MyClient.SendPacket(General.MyPackets.Vital(UID, 6, PKPoints));
if ((PKPoints > 29 && PKPoints - 10 < 30) || (PKPoints > 99 && PKPoints - 10 < 100))
{
MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
World.UpdateSpawn(this);
}
}
Code:
if (PTarget.PKPoints < 100)
if (!PTarget.BlueName)
if (!Other.CanPK(LocMap))
if (LocMap != 1005 && LocMap != 6000 && LocMap != 1038 && LocMap != 6001 && LocMap != 1511 && LocMap != 2021 && LocMap != 2022 && LocMap != 2023 && LocMap != 2024 && LocMap != 1700 && LocMap != 1013)
{
GotBlueName = DateTime.Now;
[COLOR="Red"]BlueName = false;[/COLOR]
MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
World.UpdateSpawn(this);
}
World.PVP(this, PTarget, AtkType, (uint)Damage);
if (PTarget.GetHitDie((uint)Damage))
{
Attacking = false;
if (!Other.CanPK(LocMap))
if (!PTarget.BlueName)
if (PTarget.PKPoints < 100)
{
GotBlueName = DateTime.Now;
BlueName = true;
PKPoints += 10;
MyClient.SendPacket(General.MyPackets.Vital(UID, 6, PKPoints));
if ((PKPoints > 29 && PKPoints - 10 < 30) || (PKPoints > 99 && PKPoints - 10 < 100))
{
MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
World.UpdateSpawn(this);
}
}






