else
{
DecayTaskManager.getInstance().cancelDecayTask(character);
}
character.broadcastPacket(new SocialAction(character.getObjectId(), SocialAction.LEVEL_UP));
character.broadcastPacket(new Revive(character));
character.doRevive();
}
activeChar.sendMessage("Resurrected within " + radius + " unit radius.");
return;
}
catch(NumberFormatException e)
{
activeChar.sendMessage("Enter valid player name or radius");
return;
}
}
}
if(obj == null)
{
obj = activeChar;
}
if(obj.isCharacter())
{
L2Character target = (L2Character) obj;
if(!target.isDead())
{
return;
}
target.setCurrentHpMp(target.getMaxHp(), target.getMaxMp(), true);
target.setCurrentCp(target.getMaxCp());
// GM Resurrection will restore any lost exp
if(target.isPlayer())
{
L2Player deadplayer = (L2Player) target;
deadplayer.restoreExp();
}
target.broadcastPacket(new SocialAction(target.getObjectId(), 15));
target.broadcastPacket(new Revive(target));
target.doRevive();
}
else
{
activeChar.sendPacket(Msg.INVALID_TARGET);