{
player.setHero(true);
player.updatePledgeClass();
Hero.addSkills(player);
}
player.sendPacket(new SkillList(player));
if(player.isHero())
{
player.broadcastPacket(new SocialAction(player.getObjectId(), 16));
Announcements.getInstance().announceToAll(player.getName() + " has become a hero.");
}
player.sendMessage("Admin changed your hero status.");
player.broadcastUserInfo(true);
}
else if(fullString.startsWith("admin_setnoble"))
{
// Статус сохраняется в базе
L2Object target = activeChar.getTarget();
L2Player player;
if(wordList.length > 1 && wordList[1] != null)
{
player = L2ObjectsStorage.getPlayer(wordList[1]);
if(player == null)
{
activeChar.sendMessage("Character " + wordList[1] + " not found in game.");
return false;
}
}
else if(target != null && target.isPlayer())
{
player = (L2Player) target;
}
else
{
activeChar.sendMessage("You must specify the name or target character.");
return false;
}
if(player.isNoble())
{
Olympiad.removeNoble(player);
player.setNoble(false);
player.sendMessage("Admin changed your noble status, now you are not nobless.");
}
else
{
Olympiad.addNoble(player);
player.setNoble(true);
player.broadcastPacket(new SocialAction(player.getObjectId(), SocialAction.VICTORY));
player.sendMessage("Admin changed your noble status, now you nobless.");
}
player.updatePledgeClass();
player.updateNobleSkills();
player.sendPacket(new SkillList(player));
player.broadcastUserInfo(true);
}
else if(fullString.startsWith("admin_setsex"))
{
L2Object target = activeChar.getTarget();