The code i have sends a black name player to jail but it only send the player
to jail if he/she gets direct hit
If you use a skill such as herc, fb, nado, etc. the char dies and does not get
sent to jail. wut am i missing to correct that?
/////////////////////////////////////////////////////////////////////////////////////
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);
}
}
if (LocMap != 6000)
{
if (PTarget.PKPoints > 100)
{
PTarget.Teleport(6000, 028, 071);
World.SendMsgToAll(PTarget.Name + " was captured by " + Name + " and sent automaticaly in jail.", "Police", 2008);
}
}
///
///
World.PVP(this, PTarget, 14, 0);
PTarget.PTarget = null;
PTarget.MobTarget = null;
PTarget = null;
}
}
else
PTarget = null;
}
else if (TGTarget != null)
//////////////////////////////////////////////////////////////////////////////////////
to jail if he/she gets direct hit
If you use a skill such as herc, fb, nado, etc. the char dies and does not get
sent to jail. wut am i missing to correct that?
/////////////////////////////////////////////////////////////////////////////////////
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);
}
}
if (LocMap != 6000)
{
if (PTarget.PKPoints > 100)
{
PTarget.Teleport(6000, 028, 071);
World.SendMsgToAll(PTarget.Name + " was captured by " + Name + " and sent automaticaly in jail.", "Police", 2008);
}
}
///
///
World.PVP(this, PTarget, 14, 0);
PTarget.PTarget = null;
PTarget.MobTarget = null;
PTarget = null;
}
}
else
PTarget = null;
}
else if (TGTarget != null)
//////////////////////////////////////////////////////////////////////////////////////