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) Quote
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 Quote
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 Quote
Vkouk Posted May 1, 2010 Author Posted May 1, 2010 Man,those lines you can find it at Castle.java and not Siege Quote
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! Quote
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 Quote
marius200597 Posted December 17, 2010 Posted December 17, 2010 Thanks alot for it and keep the great shares Quote
xDMSx Posted January 11, 2011 Posted January 11, 2011 Very nice Ventic.Adapt it this for Interlude servers? Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.