Jump to content

Question

Posted

*Hello , for those who wondering about tittle well , I HAVE NO F* IDEA how to call this ! XD
*I had seen inside all  brazil server , when you enter the world with a second(+) char, a message popup in showexscreen ,which says you not allowed to farm with a second char  or  a char is already in the world and you earn nothing with the 2nd window you enter, its like it prohibits dualbox from everything and only the 1st window per ip or hwid  can earn drops from monsters,rb & etc.

*I want to do the same for my server ,i use l2jfrozen last rev. Can someone help or suggest how or give me the entire code ?XD

 

Thanks in advance!
P.S: Suggestions for title of topic are welcome :D :D :D :D 

12 answers to this question

Recommended Posts

  • 0
Posted (edited)

any free shared brasil pack can have this simple download any pack that contains source and get it from there 99% of br packs use that thing

Edited by Celestine
  • 0
Posted
25 minutes ago, Celestine said:

any free shared brasil pack can have this simple download any pack that contains source and get it from there 99% of br packs use that thing

i though about it ,and i check for shared packs and most recently i found was from 2018 :/ so i am not sure if that was inserted back then

  • 0
Posted
1 hour ago, Irrelevant said:

*Hello , for those who wondering about tittle well , I HAVE NO F* IDEA how to call this ! XD
*I had seen inside all  brazil server , when you enter the world with a second(+) char, a message popup in showexscreen ,which says you not allowed to farm with a second char  or  a char is already in the world and you earn nothing with the 2nd window you enter, its like it prohibits dualbox from everything and only the 1st window per ip or hwid  can earn drops from monsters,rb & etc.

*I want to do the same for my server ,i use l2jfrozen last rev. Can someone help or suggest how or give me the entire code ?XD

 

Thanks in advance!
P.S: Suggestions for title of topic are welcome 😄 😄 😄 😄

 

Ln6s45k.gif

 

The idea is that you have to create a class file to hold/store the IP of all character that are logged-in the game (Preferable a ConcurrentHashMap that store the IP and a AtomicInteger or whatever you want as a counter).

 

Once you do this, you can check onPlayerEnter() or EnterWorld.java if in this map you just created exists or not the player's IP and if it does to retrieve the size.

 

An example of that line could be: 

 

final int size = MAP.computeIfAbsent("PLAYER_IP_HERE", k -> new AtomicInteger()).incrementAndGet();

 

After that you can control the maximum limit inside your server. Once you reach that limit with a simple check you can create a new method that accepts and return BOOLEAN in Player.java

 

This method can be like:

 

public void setRewardBlocked(final boolean val)
{
    _rewardBlocked = val;
}

public boolean isRewardBlocked()
{
   return _rewardBlocked;
}

 

Now you can do this check to any file you give drops/EXP e.t.c. and stop that player from receiving any reward. 

 

Obviously upon player log out you have to reduce the counter in your custom class. 

Preferable the method void cleanup() inside Player.java to place your check and reduce the counter or remove from MAP if it's less than 1 (to avoid having this map filled until the next server restart).

  • 0
Posted
10 minutes ago, Kara said:

 

Ln6s45k.gif

 

The idea is that you have to create a class file to hold/store the IP of all character that are logged-in the game (Preferable a ConcurrentHashMap that store the IP and a AtomicInteger or whatever you want as a counter).

 

Once you do this, you can check onPlayerEnter() or EnterWorld.java if in this map you just created exists or not the player's IP and if it does to retrieve the size.

 

An example of that line could be: 

 


final int size = MAP.computeIfAbsent("PLAYER_IP_HERE", k -> new AtomicInteger()).incrementAndGet();

 

After that you can control the maximum limit inside your server. Once you reach that limit with a simple check you can create a new method that accepts and return BOOLEAN in Player.java

 

This method can be like:

 


public void setRewardBlocked(final boolean val)
{
    _rewardBlocked = val;
}

public boolean isRewardBlocked()
{
   return _rewardBlocked;
}

 

Now you can do this check to any file you give drops/EXP e.t.c. and stop that player from receiving any reward. 

 

Obviously upon player log out you have to reduce the counter in your custom class. 

Preferable the method void cleanup() inside Player.java to place your check and reduce the counter or remove from MAP if it's less than 1 (to avoid having this map filled until the next server restart).

wow, thats really good as idea. 
To be honest i was thinking something much simplier like prohibit dualbox by drop a specific ID

like  " check player.ip.client and blablabla and if itemId=57  " .
But your idea seems much better,i will try that.

  • 0
Posted
Just now, Irrelevant said:

wow, thats really good as idea. 
To be honest i was thinking something much simplier like prohibit dualbox by drop a specific ID

like  " check player.ip.client and blablabla and if itemId=57  " .
But your idea seems much better,i will try that.

❤️ 

  • 0
Posted (edited)
6 minutes ago, Rootware said:

CatGuard it's free for L2J Frozen and use HWID as you want.

u have a link for that?(for windows 8+) i think i tested once but was error in system/client files

Edited by Irrelevant
  • 0
Posted
27 minutes ago, Irrelevant said:

u have a link for that?(for windows 8+) i think i tested once but was error in system/client files

 

https://www.4shared.com/rar/73hiS1Aaba/CatsGuard.html

 

Inside client files and diff patch for L2J Frozen. All what you need is adapt HWID for your wishes.

  • Thanks 1
  • 0
Posted (edited)
1 hour ago, Rootware said:

 

https://www.4shared.com/rar/73hiS1Aaba/CatsGuard.html

 

Inside client files and diff patch for L2J Frozen. All what you need is adapt HWID for your wishes.

windows block this .virus detected :/  

 

Edit: i managed to download , i will check it. thanks both of u for replies.

Edited by Irrelevant
  • 0
  • 0
Posted

As kara said, you can create your own conditions to catch double ips but it is something that i wouldn't suggest you. Use HWID or any other information from the player's PC to detect 2nd window (it requires client modification)

  • 0
Posted
8 hours ago, melron said:

As kara said, you can create your own conditions to catch double ips but it is something that i wouldn't suggest you. Use HWID or any other information from the player's PC to detect 2nd window (it requires client modification)

Yes i see what you mean. Thanks for suggest, i checked the catsguard code and it isnt that i am looking for, so i will go with karas way or i will just disabled dualbox in every farm/rb zone.

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