Intrepid Posted February 28, 2009 Posted February 28, 2009 Based on this share: http://www.maxcheaters.com/forum/index.php?topic=44025.0 The difference is in that share you get it with more work and with more time(because i think its very op in high rates if every hero has hero skills on all subclass). So that give you all hero skills but only after x Counts(count means how many times you become a hero in row) in L2PcInstance you can put it anywhere public int getCount() { String HERO_COUNT = "SELECT count FROM heroes WHERE char_name=?"; int _count = 0; Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement(HERO_COUNT); statement.setString(1, getName()); ResultSet rset = statement.executeQuery(); while (rset.next()) { _count=(rset.getInt("count")); } rset.close(); statement.close(); } catch (Exception e) { } finally { try { if (con != null) con.close(); } catch (SQLException e) { e.printStackTrace(); } } if (_count != 0) return _count; else return 0; } and the code that give you the skill.replace X with the count you want. if (hero && _baseClass == _activeClass) { for (L2Skill s : HeroSkillTable.getHeroSkills()) addSkill(s, false); //Dont Save Hero skills to database } else if (getCount() >= x && hero) { for (L2Skill s : HeroSkillTable.getHeroSkills()) addSkill(s, false); //Dont Save Hero skills to database } else Credits to: Cobra(the basic share that give the idea) Rizel for some help for me
Rizel Posted February 28, 2009 Posted February 28, 2009 nice share and thanks for the credits:D i didn't helped much:D
FiX Posted February 28, 2009 Posted February 28, 2009 You Are Just Perfect You Create My Dream !!!! Thx!!!
oneo Posted December 13, 2009 Posted December 13, 2009 for is hit me fo gracia final oh epilogue ??????????
GeRi Posted December 14, 2009 Posted December 14, 2009 Crazy Spamm from February 28, 2009, Today Nice code, thx.
Captian Posted December 25, 2009 Posted December 25, 2009 Give me One site For the best pack please .....
Intrepid Posted December 25, 2009 Author Posted December 25, 2009 Give me One site For the best pack please ..... dont go offtopic otherwise again -1 and you are closer to -4karma a.k.a bann
SySt3MGaM3RFr3aKs Posted December 25, 2009 Posted December 25, 2009 Seems to be an ideal share for High rates servers.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now