Even better, change this
if (((player.getClan().getLevel() <= 1) || (player.getClan().getLevel() == 2) || (player.getClan().getLevel() == 3) || (player.getClan().getLevel() == 4) || (player.getClan().getLevel() == 5) || (player.getClan().getLevel() == 6) || (player.getClan().getLevel() == 7)))
to
if (player.getClan().getLevel() < 8 )
About skills, if you want to load it inside core, then do it properly (no offense Devlin) :P
Index: java/net/sf/l2j/gameserver/datatables/SkillTable.java
+ private static final L2Skill[] _clanSkills = new L2Skill[22];
+ private static final int[] _clanSkillsId =
+ {
+ 370,371,372,373,374,375,376,377,378,379,
+ 380,381,382,383,384,385,386,387,388,389,
+ 390,391
+ };
+
private static final L2Skill[] _nobleSkills = new L2Skill[8];
@@ -99,6 +107,9 @@
for (int i = 0; i < _heroSkillsId.length; i++)
_heroSkills[i] = getInfo(_heroSkillsId[i], 1);
+ for (int i = 0; i < _clanSkillsId.length; i++)
+ _clanSkills[i] = getInfo(_clanSkillsId[i], 1);
+
for (int i = 0; i < _nobleSkills.length; i++)
}
@@ -175,6 +186,11 @@
+ public static L2Skill[] getClanSkills()
+ {
+ return _clanSkills;
+ }
and then call this method inside your bypass to give the clan skills
for (L2Skill cs : SkillTable.getClanSkills())
player.getClan().addNewSkill(cs);