Jump to content

melron

Legendary Member
  • Posts

    1,403
  • Credits

  • Joined

  • Last visited

  • Days Won

    32
  • Feedback

    0%

Everything posted by melron

  1. 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) ?
  2. 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(); }
  3. Τόσο πήξιμο έφαγες εν έτη 2020;
  4. Πλύνετε σχολαστικά το ποντίκι και το πληκτρολόγιο και αφήστε το σώμα σας να σαπίσει στον υπολογιστή μέχρι να φύγει ο covid. Σας χαλάει η καραντίνα;;;
  5. Which one is the correct output? ==========<Raid Bosses>========== or ==========<Raid Bosses>========== ================================= ?
  6. You should save somewhere the npc Filho when it will be spawned and when the mob Pai dies, you have to get the instance of the other npc... like: switch (npc.getNpcId()) { case Pai: YourData.getFilho().deleteMe(); break; }
  7. Okey, lets see it again with examples: @Override public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) { int Pai = 50; int Filho = 100; switch (npc.getNpcId()) // Get the id of the dead monster { case Pai: // We found it and the dead monster ID is 50 if (npc.getNpcId() == Filho) // We comparing if the dead monster's ID is 100. IT is not ... It is 50... { npc.deleteMe(); // This should never run.. } break; } return super.onKill(npc, player, isPet); } its like: int value = 50; switch (value) { case 50: if (value == 100) System.out.println("hi"); break; } We wont get any print at our console...
  8. Aposo thumamai to frozen exei 2 custom tabels gia spawnlists mazi me configs gia na rithmiseis pou paei pou otan o admin kanei spawn. Pithanon na mhn apothikeuei to respawn time - death time dioti to valakas exei enabled to script pou exei oristei ekei to respawn time kai sthn ousia ginete override to time apo to spawn command tou admin. @ontopic elenkse ta custom tables kai ta configs sou na deis kai kane delete to valakas script apo thn stigmh pou tha exeis ws custom auta ta raids. 2h pithanh lush, c/p ton valakas (kai client) kai ftiakse ena RAID (oxi grandboss) me ta idia stats ta panta kai apla orise tou to respawn time apo db 3h apotelesmatikh lush, peta to...
  9. debug each action to see exactly what command is called. Debug: (your best friend) System.out.println
  10. Well, i do like the low rate gaming style but we are in 2k20... ppl haven't much time to sit in front of their pc to xp... Even if you will add customs in order to help them for the 'xp' case, they will play until the 1st siege (max until heroes) and then probably they will leave .... Not by your fault, its just the way that ppl are playing IL these days... So by me, no... Gl anyway
  11. before the string parse, cast the value to long
  12. Its not working because you are teleporting the player who left the party. look at your code dude if (player.isInsideZone(L2Character.ZONE_UNUSED)) player.teleToLocation(81035,148614,-3464); You need to add a check (again) about the party size (< 4) and then teleport them all back.
  13. L2 Isn't dead at all. If you are talking about interlude, what do you expecting in 2020 when C6 released at 2003? (17 fucking years old update)
  14. change if (NumberPartyMembers < 5 && NumberPartyMembers > 9) to if (NumberPartyMembers < 5)
  15. Your code cant run that way, an int that starts with 09 is just not allowed in this specific example. If you need '0' at the begging of of any int, you should format it. ex: Arrays.asList(254,156,641,974,112).forEach(val -> html.append(String.format("<td width=30><img src=\"icon.customtex_%s\" width=32 height=32></td>",String.format("0%s", val)))); Arrays.asList("A","B","C","D","E").forEach(val -> html.append(String.format("<td align=\"center\" width=290>%s</td>",val)));
  16. write an example with typical values for better understanding
  17. You dont need any check. you replacing comma at every case and you are done
  18. Like @TGSLineage2 mentioned, you should replace "," with nothing. ""... also, you have to add the lineFound inside of the line check. so it should be while ((line = br.readLine()) != null) { if (line.contains("color:#e7ebf2")) { votes = Integer.parseInt(line.split(">")[2].split("<")[0].replace(",","")); lineFound = true; } }
  19. Why @Nightw0lf and @DenArt Designs got banned?
  20. if (character instanceof Player) { final Player player = (Player) character; final ItemInstance item = player.getInventory().getItems().stream().filter(item -> item.getEnchantLevel() > 6 && item.isEquipped()).findFirst().orElse(null); if (item != null) { player.sendMessage(String.format("Maximum enchant in this zone +6. You can't use the item %s", item.getName())); // Handle telportation here } } This code is written in acis. adapt it with the proper method names to fit on frozen Note: You MUST handle the equip case when the player is already in the zone. onEnter is not enough for this kind of feature
  21. You probably wanted again free items by "advertising" his server with the excuse that you don't have time to farm and bla bla bla and he didn't accepted. Oh, again you?
  22. getClient().getConnection().getInetAddress().getHostAddress()
  23. you tried to compile with Java 11 and tried to run it with Java 8. 45 = Java 1.1 46 = Java 1.2 47 = Java 1.3 48 = Java 1.4 49 = Java 5 50 = Java 6 51 = Java 7 52 = Java 8 53 = Java 9 54 = Java 10 55 = Java 11 56 = Java 12 57 = Java 13
×
×
  • Create New...