Jump to content

Recommended Posts

Posted

Hello guys.

 

I took this idea from League of Legends, but it would be really useful in L2 too, for afkers.

 

So what this is? The time each player makes an action is recorded. A check is made and if current time - last action time is more than 30 minutes(you can modify it), the player is kicked out of game.

 

Here: http://pastebin.com/FJCG9dYD

Posted

that record of an action won't make server lag?

 

 

Good idea anyway!

Posted

that record of an action won't make server lag?

 

 

Good idea anyway!

Nope, it just records the System.currentTimeMillis() when the action is made in L2PcInstance object.

 

Thanks.

Posted

Nope, it just records the System.currentTimeMillis() when the action is made in L2PcInstance object.

 

Thanks.

 

Then we dont need anymore captcha. Good work!!!

Posted

If someone botting he is making actions.

 

True. but captha is kinda boring and  :rage: .

We must find other ways to protect server.

Posted

If someone botting he is making actions.

True, actually this was meant for afkers that wait for vote reward or something. Or for example someone can use it in events too, just decrease the time between actions from 30 minutes and it would work fine. No afkers in tvt/dm etc.

Posted

Well you cant code this java code twice?I mean the first code will kick players after 30 minute of no action and the second code will kick  players that they are AFK at events.

 

Posted

Well you cant code this java code twice?I mean the first code will kick players after 30 minute of no action and the second code will kick  players that they are AFK at events.

 

What's the point? Add an if {} else {} and you're good. There's no need of c/ping the whole code.

Guest Elfocrash
Posted

This already exists in frozen

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