Jump to content

melron

Legendary Member
  • Posts

    1,399
  • Credits

  • Joined

  • Last visited

  • Days Won

    27
  • Feedback

    0%

Everything posted by melron

  1. Which one is the correct output? ==========<Raid Bosses>========== or ==========<Raid Bosses>========== ================================= ?
  2. 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; }
  3. 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...
  4. 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...
  5. debug each action to see exactly what command is called. Debug: (your best friend) System.out.println
  6. 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
  7. before the string parse, cast the value to long
  8. 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.
  9. 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)
  10. change if (NumberPartyMembers < 5 && NumberPartyMembers > 9) to if (NumberPartyMembers < 5)
  11. 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)));
  12. You dont need any check. you replacing comma at every case and you are done
  13. 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; } }
  14. Why @Nightw0lf and @DenArt Designs got banned?
  15. 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
  16. 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?
  17. getClient().getConnection().getInetAddress().getHostAddress()
  18. 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
  19. the code that you posted can destroy your server ...
  20. maybe you should post exactly what message you are receiving. also, post the whole code here in code tags
  21. try this one if (player.getLevel >= 80 && player.getLevel <= 85) // Only 80 .. 85 levels if (player.destroyItemByItemId("delevel", 57, 1000, null, true)) // Check the destroy item { player.removeExpAndSp(player.getExp() - ExperienceData.getInstance().getExpForLevel(55), 0); //remove the xp player.addItem("delevel-reward", 7575, 1, null, true); // reward } Note: If this will not work, then you should look before this code if something doesn't allow the conditions
  22. The answer is on the question. Since i dont have your sources and i cant know the name of your methods, try to follow the next steps First of all, get the line where the admin set level in a player instance and see how the delevel works for example player.removeExpAndSp(xp,sp); then , if your destroyitem method returns boolean, check it without even check the item count. for example player.destoryItemByItemId("delevel",57,1000,null,true) the boolean 'true' should inform the player if the item couldn't be destroyed. By doing that, you dont even need to send new message to that player about incorrect item count. then, add your reward for example player.addItem("delevel-reward",7575,1,null,true) finally, a complete code should be like that: if (player.destroyItemByItemId("delevel",57,1000,null,true) { player.removeExpAndSp(xp,sp); player.addItem("delevel-reward",7575,1,null,true); }
×
×
  • Create New...