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.");}}}
Unlock Unlimited Access with GoProxy's Residential Proxies!
Experience seamless, secure, and unrestricted connectivity worldwide with GoProxy's Unlimited Residential Proxies.
Our service offers access to a global network of rotating residential IPs, ensuring top performance for your large-scale data collection, streaming, and more.
✔️Unlimited Traffic & IPs: Enjoy unrestricted access with our rotating residential proxies, delivering high performance through a vast global IP pool.
✔️High Success Rate: Achieve a 99.96% success rate with a rapid 0.6-second response time, ensuring efficient and reliable operations.
✔️Flexible Sessions: Customize IP rotation to fit your project needs, with options for automatic rotation and sticky sessions lasting up to 60 minutes.
✔️Global Coverage: Access IPs from over 120 countries, making it ideal for businesses requiring high bandwidth without region-specific constraints.
All plans include unlimited traffic and IPs, unlimited concurrent requests, and access to real residential IP addresses.
Elevate your online operations with GoProxy's Unlimited Residential Proxies—your smart choice for large-scale projects.
👉 Learn more and get started today: GoProxy Unlimited Proxies
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