Jump to content

melron

Legendary Member
  • Posts

    1,399
  • Credits

  • Joined

  • Last visited

  • Days Won

    27
  • Feedback

    0%

Everything posted by melron

  1. That was it. No, create the next method private boolean isClientOk(L2PcInstance player) { try { player.getClient().getConnection().getInetAddress().getHostAddress(); } catch (Exception e) { return false; } return true; } and then, change this line final Collection<L2PcInstance> players = L2World.getInstance().getAllPlayers(); to final Collection<L2PcInstance> players = L2World.getInstance().getAllPlayers().stream().filter(p -> isClientOk(p)).collect(Collectors.toList());
  2. Strange, debug it .... before the current code, add this one. System.out.println("Players online " + L2World.getAllPlayersCount()); L2World.getInstance().getAllPlayers().forEach(p -> System.out.println(String.format("Player %s , ip %s", p.getName(), p.getClient().getConnection().getInetAddress().getHostAddress()))); and when you click mass create, check the console i need the output
  3. final int id = 57; final int num = 5000000; final Collection<L2PcInstance> players = L2World.getInstance().getAllPlayers(); final HashSet<Object> seen = new HashSet<>(); players.removeIf(e -> !seen.add(e.getClient().getConnection().getInetAddress().getHostAddress())); players.forEach(player -> player.addItem("Admin-Reward", id, num, null, true)); activeChar.sendMessage(String.format("Mass-created items in the inventory of %s player(s)",players.size())); LOGGER.info(String.format("GM %s mass_created item Id: %s ( %s )",activeChar.getName(),id, num)); If you need the number of the players who did not get the reward, you can get them by "seen.getSize()"
  4. Pick some sources to start with, (as you mentioned acis installed without any issue, thats good.) and start exploring every thing until you can create something by your own. A weapon , a code or something bigger. As a begginer, don't searching for the best sources arround (that cover your needs) because you will give up. There are hundreds of free sources out there, but most of them are outdated with probably different java version than you and with different structure about their static data. Start with something easy, learn, and go ahead.
  5. The problem is clearly the "Communication". Both sides are correct in this case. zemaitis wanted his problem to be solved with a cost of X E. At the end the problem wasn't full fixed by the dev's side. So he gave him 50% of the price that they agreed (fair move by my side) amarantthe92 made a deal to fix what exactly the customer requested which is the loginserver part based on the image https://imgbb.com/cQLLcK9 . He fixed the loginserver with the price they agreed (100E) and then he got the 50% of that. Another problem comes up but they didn't agree for GS too. Find the solution guys, you are both right
  6. https://acis.i-live.eu/index.php?topic=30.0 spend some minutes and see the changesets from 382 until the current last. There are a lot of bug fixes. I think its worth to give 10 euro and get the latest ;)
  7. When you create a new database and open its tree data, at the last item you should see Backups item. Right click on it, and select Restore Backup from... then locate at your psc and then click restore
  8. How are you trying to implement the file? Step by step.
  9. As kara said, you can create your own conditions to catch double ips but it is something that i wouldn't suggest you. Use HWID or any other information from the player's PC to detect 2nd window (it requires client modification)
  10. Doesn't frozen have getPlayersInside/getCharactersInside method?
  11. Client's responsibility is to show a name up on the creature texture. Server is sending the message by adding as holders the creature name,and the damage. So, the server have stored the name of the creature somewhere. Take a look in your database (if you are not using aCis, or check at your npcs xml by searching its npc id if you are using aCis). You should find the name field with the old npc name. Its all about what server files you are using.
  12. You need to change the server side name too. not only the client part
  13. If you need just the item name (without the questionmark icon with all the description) to your chat, you should edit ToolTip.uc
  14. Hello, i'm not sure if you still updating your codes at all your revisions, but you could (at least for acis) review the whole thing in order to achieve a better performance ... Seems like you haven't review it long time ago. Auto-closable classes like Connection are out of try-with-resources, executing new thread with Thread class while ThreadPool is there, xml needs to be edited aswell, repeatable switches just to return a different piece of the main value etc. I'm suggesting you, to think about interfaces and abstract classes since you have a lot of vote sites. You could even get the same results way faster, with even half of the lines of your diff and ofcourse with a better readability. Don't let people to judge you for these kind of mistakes...
  15. Καλά Χριστούγεννα και καλή χρονιά σε όλους. Με υγεία και αγάπη …. Και πολύ κώδικα...
  16. Can you explain it better? You need to move out of town 60 bots at different locations OR to 'create' 100 bots (30 spawn at town, 60 at not peace zones) ?
  17. If you want only the count and not a list with all those fakes, change the return type to long (since you are looking for a value) and use the method .count() public long getFakePlayers() { return World.getInstance().getPlayers().stream().filter(x -> x instanceof FakePlayer && !x.isInsideZone(ZoneId.PEACE)).count(); }
  18. Τόσο πήξιμο έφαγες εν έτη 2020;
  19. Πλύνετε σχολαστικά το ποντίκι και το πληκτρολόγιο και αφήστε το σώμα σας να σαπίσει στον υπολογιστή μέχρι να φύγει ο covid. Σας χαλάει η καραντίνα;;;
×
×
  • Create New...