handleKill(activeChar, null);
}
private void handleKill(L2Player activeChar, String player)
{
L2Object obj = activeChar.getTarget();
if(player != null)
{
L2Player plyr = L2World.getPlayer(player);
if(plyr != null)
{
obj = plyr;
}
else
{
int radius = Math.max(Integer.parseInt(player), 100);
for(L2Character character : activeChar.getAroundCharacters(radius, 200))
{
character.reduceCurrentHp(character.getMaxHp() + character.getMaxCp() + 1, activeChar, null, true, true, false, false);
}
activeChar.sendMessage("Killed within " + radius + " unit radius.");
return;
}
}
if(obj != null && obj.isCharacter())
{
L2Character target = (L2Character) obj;
target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar, null, true, true, false, false);
}
else