JustMyStyle Posted May 1, 2010 Posted May 1, 2010 1 stupid thing after another^^ tell me 1 thing please...whats the point of share alredy commited stuff?you will never going to make your own code that way you will just stuck a low lvl thats not even called coding the better word for it is leeching and you are not even a good one since your code dont work (missing SQL column from the castle table)
Vkouk Posted May 1, 2010 Author Posted May 1, 2010 1 stupid thing after another^^ tell me 1 thing please...whats the point of share alredy commited stuff?you will never going to make your own code that way you will just stuck a low lvl thats not even called coding the better word for it is leeching and you are not even a good one since your code dont work (missing SQL column from the castle table) you think you're better or what?have you shared something here?why you critisize other people work and don't look yourself pro dev. About SQL i will do it now
CrazyDeagle Posted May 1, 2010 Posted May 1, 2010 Man i dont find this _taxPercent = rs.getInt("taxPercent"); _treasury = rs.getLong("treasury"); + + _showNpcCrest = rs.getBoolean("showNpcCrest"); } rs.close(); statement.close(); @@ -1129,6 +1133,20 @@ return _treasury; } + public final boolean getShowNpcCrest() + { + return _showNpcCrest; + } + + public final void setShowNpcCrest(boolean showNpcCrest) + { + if (_showNpcCrest != showNpcCrest) + { + _showNpcCrest = showNpcCrest; + updateShowNpcCrest(); + } + } + public List<SeedProduction> getSeedProduction(int period) { return (period == CastleManorManager.PERIOD_CURRENT ? _production : _productionNext); @@ -1579,6 +1597,36 @@ } } + public void updateShowNpcCrest() + { + Connection con = null; + PreparedStatement statement; + try + { + con = L2DatabaseFactory.getInstance().getConnection(); + + statement = con.prepareStatement("UPDATE castle SET showNpcCrest = ? WHERE id = ?"); + statement.setString(1, String.valueOf(getShowNpcCrest())); + statement.setInt(2, getCastleId()); + statement.execute(); + statement.close(); + } + catch (Exception e) + { + _log.info("Error saving showNpcCrest for castle " + getName() + ": " + e.getMessage()); + } + finally + { + try + { + con.close(); + } + catch (Exception e) + { + } + } + } + public FastList<L2Skill> getResidentialSkills() { return _residentialSkills; same here http://www.l2jserver.com/svn/branches/L2_GameServer_T2.3/java/net/sf/l2j/gameserver/model/entity/Siege.java
Vkouk Posted May 1, 2010 Author Posted May 1, 2010 Man,those lines you can find it at Castle.java and not Siege
ConverZe Posted May 1, 2010 Posted May 1, 2010 Thank you for sharing this mod!, btw i preffer GE revisions beacause they already have this inyected! Keep on!
CrazyDeagle Posted May 1, 2010 Posted May 1, 2010 Man,those lines you can find it at Castle.java and not Siege O.O yeh sorry epic error thanks you man :P
marius200597 Posted December 17, 2010 Posted December 17, 2010 Thanks alot for it and keep the great shares
xDMSx Posted January 11, 2011 Posted January 11, 2011 Very nice Ventic.Adapt it this for Interlude servers? Thanks
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