I am trying to implement anti dualbox when entering the Queen ant zone. I already have a level check, which is working fine.
But I need to add a check so that no more PCs with the same IP can enter
Could someone help me? I don't know why the IP check doesn't work for me
I am a newbie at this Use Java 8
privatevoid checkCharacter(L2Character character, boolean isPet){
final L2PcInstance player = character.getActingPlayer();int count =0;for(L2PcInstance p : L2World.getInstance().getPlayers()){if((p.getIPAddress()== player.getIPAddress())&&(p.getObjectId()!= player.getObjectId())){
count++;}else{continue;}}if(count >0){
player.getActingPlayer().teleToLocation(-14417,123749,-3117);
player.sendMessage("Ya existe otro player con tu ip en esta zona.");}elseif((Config.QUEEN_ANT_CHAR_ENTER_LEVEL_RESTRICTION >0)&&(character.getActingPlayer().getLevel()>Config.QUEEN_ANT_CHAR_ENTER_LEVEL_RESTRICTION)&&!character.getActingPlayer().isGM()){if(isPet){((L2Summon) character).unSummon(character.getActingPlayer());}else{
character.getActingPlayer().teleToLocation(-14417,123749,-3117);
player.sendMessage("No puedes ingresar a la zona de Ant Queen, tu nivel es muy bajo.");}}}
I present to your attention two options for the Hellbound location map
details in the archive
if you have larger effect files, you do not need to replace them
download
updates can be made behind the scenes, so if you catch a crit, post on the forum or download the archive, it may have already been fixed
additionally you can download
all la2 music from the latest version of the game 2025 download
the entire La2 ambisound from the latest version of the game 2025 download
I do what I like because I don't need to push myself to do things for L2 as a means of income. You, on the other hand, are here trying to scam people for $20k files...
But, since you're so talented and competent, I suppose you must be thriving on the fruits of your talents as an L2Off dev, no?
Oh wait
Guess not
Question
Hasl
I am trying to implement anti dualbox when entering the Queen ant zone. I already have a level check, which is working fine.
But I need to add a check so that no more PCs with the same IP can enter
Could someone help me? I don't know why the IP check doesn't work for me
I am a newbie at this
Use Java 8
6 answers to this question
Recommended Posts