Stack Sub Code

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Removed20180815
Posts: 93
Joined: Tue Jan 09, 2007 12:41 pm

Stack Sub Code

Post by Removed20180815 »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4204
L2JDP Revision 7415

Well i found this piece of code on the old forum and i wanna ask if it can be converted to work with the current rev.
This is it: http://www.l2jserver.com/old-forum/thre ... adid=22754
I would like to make a stack sub server and i wanna implement that. What need to be changed to the code in order to work with the current rev. Thx alot
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Stack Sub Code

Post by JIV »

i believe it would work, just modify SQL command as in patch.
Removed20180815
Posts: 93
Joined: Tue Jan 09, 2007 12:41 pm

Re: Stack Sub Code

Post by Removed20180815 »

hmm what do you mean? Should i add the exact code as there in my epilogue source or ? i saw that there is nothing about sql there. Can you explain better what you meant? ty
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Stack Sub Code

Post by JIV »

there is added new SQL string, just replace new one with old one for restore skills.
Removed20180815
Posts: 93
Joined: Tue Jan 09, 2007 12:41 pm

Re: Stack Sub Code

Post by Removed20180815 »

ohh you mean i only change the new string from the code with this one?

Code: Select all

 // Retrieve all skills of this L2PcInstance from the databasecon = L2DatabaseFactory.getInstance().getConnection();PreparedStatement statement = con.prepareStatement(RESTORE_SKILLS_FOR_CHAR);statement.setInt(1, getObjectId());statement.setInt(2, getClassIndex());ResultSet rset = statement.executeQuery(); 
Thanks alot.
Post Reply