Jump to content

Zake

Global Moderator
  • Posts

    5,317
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    100%

Everything posted by Zake

  1. there is a check which he apparently missed if (character instanceof L2PcInstance) so there is no need to count furnitures If you are referring to Collectors.counting() this is the exact same way to count elements in a stream. There are also 5(+?) more ways, none of them makes an actual difference You have to store them upon enter/remove upon exit .If this guy wants to create 100 raid(custom?) zones, there would be like 100 concurrent maps/lists(whatever he wants to use) in memory, unfortunately most of them empty. This is still a faster road for a cpu though (especially for high player counts), but almost redundant. this is indeed unnecessary, my apologies
  2. If there is not you should create one.
  3. Lel i though java streams were introduced in java 7. nvm @Override protected void onEnter(final L2Character character) { if (character instanceof L2PcInstance) { final L2PcInstance player = character.getActingPlayer(); int count=0; for (L2PcInstance p : L2World.getInstance().getAllPlayers()) { if (p == null || p.getIpAddress() ==null || p.getObjectId() == player.getObjectId() || !p.isInsideZone(L2Character.ZONE_PEACE) || p.getIpAddress()!= player.getIpAddress()) continue; count++; } if (count > 0) { player.teleToLocation(MapRegionTable.TeleportWhereType.Town); return; } player.setInsideZone(L2Character.ZONE_PEACE, true); } }
  4. @Override protected void onEnter(final L2Character character) { if (character instanceof L2PcInstance) { final L2PcInstance player = character.getActingPlayer(); if (L2World.getInstance().getAllPlayers().stream().filter(p->p.isInsideZone(L2Character.ZONE_PEACE) && p.getIpAddress()!=null && p.getIpAddress().equals(player.getIpAddress())).count() > 0) { player.teleToLocation(MapRegionTable.TeleportWhereType.Town); return; } player.setInsideZone(L2Character.ZONE_PEACE, true); } } Instead of zone_peace you should put your desired zone. Also in L2PcInstance public String getIpAddress() { if (getClient()==null) return null; return getClient().getConnection().getInetAddress().getHostAddress(); }
  5. I wanted to check in documentbase if there is a condition for olympiad. Unfortunately in l2jfrozen there is not. You can add a quick one though by editing ConditionPlayerState.java. All you have to do is to add an olympiad enumeration and a simple isInOlympiad() check in testImpl (or whatever this method is called in frozen)
  6. Which pack are you using?
  7. Either include them in your database_installer.bat or execute these sql files manually.
  8. http://subversion.assembla.com/svn/L2jFrozenInterlude/trunk/gameserver/head-src/com/l2jfrozen/gameserver/network/serverpackets/CharInfo.java http://subversion.assembla.com/svn/L2jFrozenInterlude/trunk/gameserver/head-src/com/l2jfrozen/gameserver/network/serverpackets/UserInfo.java Unless you mean the part of code was not there. If it's not then probably it's handled in L2PcInstance#doDie which is a bad implementation. Disconnected players may find themselves with a crappy title after the event.
  9. 1) for the love of god, i have moved like 20 topics of you. THIS is the right section. 2) userinfo and charinfo, both can be found in network.serverpackets 3) i would suggest you to use acis instead
  10. Control+h -> search for this config -> find the declaration -> open call hierarchy
  11. Locked
  12. I think he asked to cooperate with l2j many years ago and they rejected
  13. Just add a restriction on autopot start and an interruption upon olympiad join
  14. I have never tried on my own, i just read feedback from others.
  15. https://bitbucket.org/MobiusDev/l2j_mobius/src/master/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/communitybbs/CommunityBoard.java
  16. This is an intellij/eclipse feature, not a java 14 one. If you are using eclipse check at windows-> preferences-> Java-> Editor-> Save Actions, (depends on the eclipse version, path might be similar)
  17. Active anticheat seems to be the "best" option. Although nothing changed, most of them lack in support.
  18. requestbypasstoserver may help you find where cb bypasses are handled. Usually its under gameserver/communityboard. Although which pack do you use?
  19. Depends, if you just want to edit their name sysstring-e.dat is your file. If you want to edit the bypass name you should do what root mentioned. If though you want to edit/create bypasses for each button you should do it server side.
  20. Locked
  21. You're welcome, locked
  22. #rate is a table that you didn't post, although yes if you change #rate to 2 it will replace effects with stack order 1
  23. Effects with the same stacktype are going to replace each other unless there is a higher stack order
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..