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.");}}}
As you may have noticed, normal members cannot edit their own threads.
I have extended normal members to edit their own content up to 1440 minutes (24 hours or 1 day) after they made their topic/post.
To access unlimited edits of your contents, you need to upgrade to Premium or Gold Member .
what about VIP members which is the only role who can't bump their topics? I've been experiencing this for over a year now. I've contacted both you and Celestine multiple times, but I haven't received any response explaining why this is happening.
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