Skip to content

LeaveBuster

Featured Replies

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

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

 

 

Good idea anyway!

  • Author

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.

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

 

Thanks.

 

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

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

If someone botting he is making actions.

If someone botting he is making actions.

 

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

We must find other ways to protect server.

  • Author

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.

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

We must find other ways to protect server.

Buy lamequard then

What about offline mode char? They will be kicked too since they are not making any action?

What about offline mode char? They will be kicked too since they are not making any action?

 

if isOfflineMode() return;

  • Author

Sorry i would add restriction but in the pack i made it there is not offline mode.

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.

 

  • Author

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.

This already exists in frozen

  • Author

This already exists in frozen

Sorry i didn't know. Frozen got so many mods i don't bother search them.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.