KriminalMind Posted August 3, 2012 Posted August 3, 2012 I have a server with 2 max client per IP limit, but I want to set the server like: MAX 2 client per IP (ONLINE) and Infinite disconnected (sell/buy/privatecreation) pg per IP... How can I set this?
0 Joκκєrino Posted August 3, 2012 Posted August 3, 2012 Check Enterworld.java and put condition if(!activeChar.isOnline)
0 vampir Posted August 3, 2012 Posted August 3, 2012 Check Enterworld.java and put condition if(!activeChar.isOnline) u serious? this is not going to work. You will need to do such check in EnterWorld at the beginning String ip = activeChar.getClient().getConnection().getInetAddress().getHostAddress() int onlinePerIp = 0; for(L2PcInstance player : L2World.getInstance().getAllPlayers())//not sure about getAllPlayers, i dont remember method name. if(player.getClient().getConnection().getInetAddress().getHostAddress().equals(ip)) { onlinePerIp++; if(onlinePerIp>=1) { getClient().closeNow(); return; } thats it i think, good luck :)
0 ^Wyatt Posted August 3, 2012 Posted August 3, 2012 @Jokkerino I think that condition is useless. How is supposed anyone to be offline while logging in? O.o... @author Should be one method when a char logout that remove it from being found by dualbox limit. You must find it and add into offline trader method. Edit: maybe it's what vampir posted, it depends on how is your code working, did u show it to us?
0 Joκκєrino Posted August 3, 2012 Posted August 3, 2012 @Jokkerino I think that condition is useless. How is supposed anyone to be offline while logging in? O.o... Yes , you're right sir . I thought this one !
0 KriminalMind Posted August 3, 2012 Author Posted August 3, 2012 I don't see the path that has enterworld.java Q_Q
0 vampir Posted August 3, 2012 Posted August 3, 2012 I don't see the path that has enterworld.java Q_Q i dont know what u mean, enterworld is in client packets in network as i remember, u need to add my code after setting activeChar.
0 KriminalMind Posted August 3, 2012 Author Posted August 3, 2012 Ok, but...how can I do to edit it? Which prog. I've to use?
0 Joκκєrino Posted August 3, 2012 Posted August 3, 2012 Think that should be locked . http://lmgtfy.com/?q=eclipse# http://maxcheaters.com/forum/index.php?topic=81843.0
0 Dr. House Posted August 4, 2012 Posted August 4, 2012 Check Enterworld.java and put condition if(!activeChar.isOnline) Lol, kill yourself.
0 Tryskell Posted August 4, 2012 Posted August 4, 2012 C/P AntiFeedManager from any post-Gracia L2J fork/regular pack.
Question
KriminalMind
I have a server with 2 max client per IP limit, but I want to set the server like: MAX 2 client per IP (ONLINE) and Infinite disconnected (sell/buy/privatecreation) pg per IP...
How can I set this?
10 answers to this question
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