Jump to content

arm4729

Members
  • Posts

    231
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

arm4729 last won the day on July 29 2022

arm4729 had the most liked content!

1 Follower

About arm4729

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

arm4729's Achievements

Rising Star

Rising Star (9/16)

  • Dedicated Rare
  • Reacting Well Rare
  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare

Recent Badges

26

Reputation

  1. protected void runImpl() { L2Player player = getClient().getActiveChar(); if (player == null) return; +if (_link.startsWith("bp_close")) { + player.sendPacket(TutorialCloseHtml.STATIC_PACKET); + } L2ClassMasterInstance.onTutorialLink(player, _link); player.onTutorialLink(_link); QuestState qs = player.getQuestState("255_Tutorial"); if (qs != null) qs.getQuest().notifyEvent(_link, null, player); sendAF(); } make button on html file with bypas bp_close , it should close tutorial htm window... if not works you should register your bypass somewhere i don't remember right now search for bypass handlers .. try it and reply
  2. maybe you can get all that info from registering account on website , with some edits on accounts table you can have something like hwid protection without needing to know to edit client files ?
  3. you asked if you can do it from xml files , i answer your question. did you encounter any errors in your code , posted here and no one help you ? i think not.
  4. int a = 0; for (Player player1 : World.getInstance().getPlayers()) { if (player1.isInsideZone(ZoneId.YOURZONEID) && player1.getClan() == player.getClan() { a = a++; (if a > 8){ player.abortAttack(); player.abortCast(); player.teleportTo(TeleportType.TOWN); player.sendMessage("Clan members limit reached in this zone. You have been teleported out.") } } }
  5. i give you what you want in 3 lines of code but you paste all this non sense code... if all you wanna do is not having 2 players with same ip in a specific zone you should use what i pasted above. why are you using code that you don't have any clue what is doing ? what is this line is supposed to do ?? i bet you are clueless you should start by understanding you're code , if you can't read code as machine how you expect to write it ? final AtomicInteger connectionCount = event.computeIfAbsent(addrHash, k -> new AtomicInteger()); anyway if you really wanna use this system you should paste all zone lines not only exit and enter. public boolean tryAddClient(, GameClient client, int max) { if (client == null) return false; // unable to determine IP address -->> i think you're problem is related to "event" probably this is antifeed for an automatic event engine .. and probably events are registered when they are starting , you might not have any active event at the this of this time check.. man just use the 3 lines i pasted above. final Map<Integer, AtomicInteger> event = _eventIPs.get(eventId); if (event == null) return false; // no such event registered final Integer addrHash = client.getConnection().getInetAddress().hashCode(); final AtomicInteger connectionCount = event.computeIfAbsent(addrHash, k -> new AtomicInteger()); int whiteListCount = Config.DUALBOX_CHECK_WHITELIST.getOrDefault(addrHash, Integer.valueOf(0)).intValue(); if (whiteListCount < 0 || connectionCount.get() + 1 <= max + whiteListCount) { connectionCount.incrementAndGet(); return true; } return false; }
  6. or you can make the character that is in the zone to be teleported out as soon as other character with same ip enters zone. this is undestroyable. onEnter. for (Player player1 : World.getInstance().getPlayers()) { if (player1.isInsideZone(ZoneId.YOURZONEID) && player1.getClient().getConnection().getInetAddress().getHostAddress() == player.getClient().getConnection().getInetAddress().getHostAddress() ) { player1.abortAttack(); player1.abortCast(); player1.teleportTo(TeleportType.TOWN); player.sendMessage("You're character that is using same ip address has been teleported out from this area. Dual-Box is not allowed in this zone.") player1.sendMessage("You have been teleported out. Dual-Box is not allowed in this zone.."); } } if you want to have only 2 players with same ip use this: int a = 0; for (Player player1 : World.getInstance().getPlayers()) { if (player1.isInsideZone(ZoneId.YOURZONEID) && player1.getClient().getConnection().getInetAddress().getHostAddress() == player.getClient().getConnection().getInetAddress().getHostAddress() ) { a = a++; if(a > 1){ player1.abortAttack(); player1.abortCast(); player1.teleportTo(TeleportType.TOWN); player.sendMessage("You're character that is using same ip address has been teleported out from this area. Dual-Box is not allowed in this zone.") player1.sendMessage("You have been teleported out. Dual-Box is not allowed in this zone.."); } } }
  7. i guess you can search a clan leader in order to make your server populated , but there are any clans on this game anymore ?
  8. <tr><td widht="250"><font color=\"00cc66\">Chance: </font> try messing with width 250 , try bigger or lower until you fit it. is funny how this is a java topic and you are supposed to already know editing basic htm xD
  9. did you made setter / getter ? if you dont use a hwid protection for this kind of rewards it will be very easy to exploit. Date dt = new Date(_loginTime); final SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); activeChar.sendMessage("You are logged in since -> " + df.format(dt) + ". Enjoy the Game.");
×
×
  • Create New...