Jump to content
  • 0

[ask] Box limit only for Online pg



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?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Check Enterworld.java and put condition


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.

thats it i think, good luck :)

Link to comment
Share on other sites

  • 0


I think that condition is useless. How is supposed anyone to be offline while logging in? O.o...



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?

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock