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.");}}}
Hello everyone!
I have a problem with editing mobs. I took some Mobs from here without sound and added them,
they looked good !!! BUT BUT !
When I hit him it does generate the effect, but when he hits it it doesn't.
Is this effect controlled from Npcgrp.dat?
PD_ I add capture of the event / effect I mention.
I await your answers, thank you!
Alguém que saiba trabalhar com Engine.dll e Core.dll? Tenho hwid no servidor o código adaptado, mas não tenho parte do cliente, pois meu cliente é c4.. Alguém que faça esse tipo de serviço
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