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.");}}}
You shouldn't use rev 382, not sure why everyone keep using that.
Â
I don't make changesets for fun, I don't make new revisions for nothing.
Â
Follow the revisions.
Mustang Service — not “just another service”
▪ We don’t just redraw documents — we reverse-engineer the system’s logic. And we do it beautifully.
▪ Mustang Service is for when you need more than a quick Photoshop touch-up — you need to pass verification at the edge of the impossible.
When you’re not looking for a template, but ordering a solution for your case.
› What we deliver in practice:
→ deep redraws with no traces of editing
→ an expert approach to verification algorithms
→ guides from people who actually do it — not rehashes of someone else’s manual
▪ With us you get not just a service — you get context.
We show how the system thinks, and how to navigate it.
â–Ş We work with those who value results, not excuses.
If you’re not with us yet — just take a look at what we publish.
Mustang Service — done right when everything else hasn’t worked.
› TG: @mustang_service ( https:// t.me/ mustang_service )
› Channel: Mustang Service ( https:// t.me/ +6RAKokIn5ItmYjEx )
#redraw #verification #documents #graphics #photoshop #kyc #MustangService
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
Â
Edited by Hasl6 answers to this question
Recommended Posts