An4rchy Posted July 5, 2013 Posted July 5, 2013 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
GOld3x Posted July 5, 2013 Posted July 5, 2013 that record of an action won't make server lag? Good idea anyway!
An4rchy Posted July 5, 2013 Author Posted July 5, 2013 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.
GOld3x Posted July 5, 2013 Posted July 5, 2013 Nope, it just records the System.currentTimeMillis() when the action is made in L2PcInstance object. Thanks. Then we dont need anymore captcha. Good work!!!
FinalGod Posted July 5, 2013 Posted July 5, 2013 Then we dont need anymore captcha. Good work!!! If someone botting he is making actions.
GOld3x Posted July 5, 2013 Posted July 5, 2013 If someone botting he is making actions. True. but captha is kinda boring and :rage: . We must find other ways to protect server.
An4rchy Posted July 5, 2013 Author Posted July 5, 2013 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.
FinalGod Posted July 5, 2013 Posted July 5, 2013 True. but captha is kinda boring and :rage: . We must find other ways to protect server. Buy lamequard then
Gries Posted July 7, 2013 Posted July 7, 2013 What about offline mode char? They will be kicked too since they are not making any action?
drake2wow Posted July 7, 2013 Posted July 7, 2013 What about offline mode char? They will be kicked too since they are not making any action? if isOfflineMode() return;
An4rchy Posted July 7, 2013 Author Posted July 7, 2013 Sorry i would add restriction but in the pack i made it there is not offline mode.
JaharakaL Posted July 7, 2013 Posted July 7, 2013 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.
An4rchy Posted July 7, 2013 Author Posted July 7, 2013 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.
An4rchy Posted July 7, 2013 Author Posted July 7, 2013 This already exists in frozen Sorry i didn't know. Frozen got so many mods i don't bother search them.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now