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.");}}}
2 clients:
StyleA: Original client
test1: Unity client
Monster kills are displayed correctly on both clients. Soon it will be possible to kill mobs in a party on 2 different clients
I apologize for my incompetence. The ability to trade is limited only for builder 1. Ordinary characters can trade with each other, and this has nothing to do with auto loot.)
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