if(!player.isClanLeader())
{
player.sendPacket(Msg.ONLY_THE_CLAN_LEADER_IS_ENABLED);
return;
}
L2SkillLearn SkillLearn = SkillTreeTable.getSkillLearn(_id, _level, null, clan, false);
int requiredRep = SkillTreeTable.getInstance().getSkillRepCost(clan, skill);
int itemId = SkillLearn.getItemId();
if(skill.getMinPledgeClass() <= clan.getLevel() && clan.getReputationScore() >= requiredRep)
{
if(mOption.price(player, SkillLearn.getItemId(), SkillLearn.getItemCount()))
{
clan.incReputation(-requiredRep, false, "AquireSkill: " + _id + ", lvl " + _level);
clan.addNewSkill(skill, true);
player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_EARNED_S1).addSkillName(_id, _level));