Jump to content

DzStunk

Members
  • Posts

    7
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by DzStunk

  1. this verification will not work because the player himself will be on the list and will not attack.
  2. Is there an example of how to do it somewhere?
  3. I created a debug on the list and had no success
  4. I would like to know which method I use for a player not to catch the target of a monster that is being attacked, if I use isInCombat the player does not hit the target when he is in combat use l2jfrozen 1132
  5. I used keySet() found it more viable for (String className : Config.LIMIT_CASTING_SPEED.keySet()) { if (className.equals(_actor.getClassId().toString())) val = Config.LIMIT_CASTING_SPEED.get(className); }
  6. hello I have a doubt I'm creating a configuration to limit casting speed for each class but if the value of a class is different from the other I have the value of the last configuration. I created a loop to map all configuration: int val = (int) calcStat(Stats.MAGIC_ATTACK_SPEED, base, null, null); for (String className : Config.LIMIT_CASTING_SPEED.keySet()) { if (Config.LIMIT_CASTING_SPEED.containsKey(_actor.getClassId().toString()) && val > Config.LIMIT_CASTING_SPEED.get(className)) val = Config.LIMIT_CASTING_SPEED.get(className); } Cardinal-1000;Arcana Lord-1300 let's say if the value is like this I get 1300 for all. Fixed I used the java 17 documentation to understand a little about Maps Map (Java SE 17 & JDK 17) (oracle.com)
  7. Hi I'm new here I came from united-extreme, no one helped me there so I came here to ask for help. I'm using L2Eola!! I created this config to set my monster's spawn with its id. Config.java public static Map<Integer, List<Location>> SPOIL_MONSTER_LOC; SPOIL_MONSTER_LOC = new HashMap<>(); for (String data : events.getProperty("SpoilMonsterLocs", "0,0,0,0").split(";")) { String[] spawnData = data.split(","); List<Location> loc = new ArrayList<>(); loc.add(new Location(Integer.parseInt(spawnData[1]), Integer.parseInt(spawnData[2]), Integer.parseInt(spawnData[3]))); SPOIL_MONSTER_LOC.put(Integer.parseInt(spawnData[0]), loc); loc = new ArrayList<>(); } Return Map in Event.java for (int npcId : Config.SPOIL_MONSTER_LOC.keySet()) { final List<Location> teleports = Config.SPOIL_MONSTER_LOC.get(npcId); for (int index = 0; index < teleports.size(); index++) { final Location teleport = teleports.get(index); if (teleport == null) continue; spawnNpc(npcId, teleport, "Event"); } } # Spawn Monsters Location. MonsterLocs = 18011,178008,-15640,-2256;\ 18011,178275,-15690,-2256;\ 18011,178696,-15768,-2256;\ 18012,178990,-16052,-2256;\ 18012,179480,-16216,-2256;\ 18012,179608,-16008,-2256;\ 18012,179432,-15784,-2256;\ 18012,178440,-16024,-2256;\ it does not return all spawns in the list. Only the first on the list is born.
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock