Jump to content

Recommended Posts

Posted
  On 6/9/2010 at 1:50 PM, forsas said:

 

Okay :) Now you can tell me how add voicecommand  .loginfo when player write this him show 30 last ip logins html  :o

u need to store last 30 ip adress that mean sql store ...

not so practically i think

Posted
  On 6/8/2010 at 1:23 PM, xAddytzu said:

 

 

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();
		}

Very Nice And gz for share but fix that [statement.setString(2, user) ] Add one ( ; ) in the end of line somenone maybe don't know ;)

[statement.setString(2, user);]

 

Gzz Again Dude and thanks for share :D

Posted
  On 6/10/2010 at 5:08 AM, papaditsa said:

Very Nice And gz for share but fix that [statement.setString(2, user) ] Add one ( ; ) in the end of line somenone maybe don't know ;)

[statement.setString(2, user);]

 

Gzz Again Dude and thanks for share :D

Done

Posted
  On 6/8/2010 at 3:29 PM, xAddytzu said:

Huh, and You will die from a message on enterworld ?

 

No, but some players would probably freak seeing a different IP displayed every time they log in. The idea is good, but it does not really have a lot of use aside from being cute.

Posted
  On 6/13/2010 at 7:25 PM, minideed said:

No, but some players would probably freak seeing a different IP displayed every time they log in. The idea is good, but it does not really have a lot of use aside from being cute.

You can make a handler for shutdown the system

  • 3 months later...
Posted
  On 10/12/2010 at 10:29 AM, Boorinio said:

This one was in l2java.com from it's opening are you sure it's yours?

it is, and its before l2java >.>

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...