Jump to content

Recommended Posts

  • 4 weeks later...
  • 6 months later...
Posted

no work for frozen :(

It just needs some minor modifications to work on l2jfrozen. It is not that hard to do it even if you are a newbie.

 

But someone has already shared this on frozen forum adapted for frozen.

Posted

It just needs some minor modifications to work on l2jfrozen. It is not that hard to do it even if you are a newbie.

 

But someone has already shared this on frozen forum adapted for frozen.

 

yeah i changed all imports and works fine no errors while compile but when login no appear in screen..

  • 2 weeks later...
  • 3 weeks later...
Posted

mia xara douleuei eseis logika tha kanete kapoio lathos sto code

no work for frozen :(

[code]Index: LoginController.java

		if (ok)
		{
			client.setAccessLevel(access);
			client.setLastServer(lastServer);
+				statement = con.prepareStatement("UPDATE accounts SET lastactive=?, lastIP=? WHERE login=?");
-				statement = con.prepareStatement("UPDATE accounts SET lastactive=? WHERE login=?");
			statement.setLong(1, System.currentTimeMillis());
+				statement.setString(2, address.getHostAddress());
+				statement.setString(3, user);
-				statement.setString(2, user);
			statement.execute();
			statement.close();
		}

should be:

Index: LoginController.java

		if (ok)
		{
			client.setAccessLevel(access);
			client.setLastServer(lastServer);
-				statement = con.prepareStatement("UPDATE accounts SET lastactive=?, lastIP=? WHERE login=?");
+				statement = con.prepareStatement("UPDATE accounts SET lastactive=? WHERE login=?");
			statement.setLong(1, System.currentTimeMillis());
-				statement.setString(2, address.getHostAddress());
-				statement.setString(3, user);
+				statement.setString(2, user);
			statement.execute();
			statement.close();
		}

check +/-

Posted

Tested and working fine in my server, in few hours I will post picture!

yea of course it's working, I just tested it.. but as I said, the plus should be minus in the patch of LoginController.java
  • 4 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...