l2jkain

Members
  • Content count

    170
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

1 Neutral

About l2jkain

  • Rank
    Knight

Contact Methods

  • Website URL
    http://l2jkain.com

Profile Information

  • Gender
    Male
  • Country
    Brazil

Recent Profile Visitors

717 profile views
  1. player.java error generates here @Override public void onAction(Player player) { + // Check if this Player is in an event + if (!TeamVsTeam.onAction(player.getName(), getName())) + { + player.sendPacket(ActionFailed.STATIC_PACKET); + return; + } +
  2. I managed to fix it I will patch and update the topic.
  3. yes to much what improves more the location should save correct right in my code there is nothing that of conflict and show this message
  4. My code, I can not find the error anyway I'll remove the teleport and do some tests to see what I can do better. https://pastebin.com/raw/x9GwZugx there is nothing wrong with Player.java error is generated by player.getSavedLocation().set(player.getPosition()); // /implements Runnable and starts itself in constructor + new EventTeleport(player, team.getCoordinates(), false, false); << --- it is saving the location from the start but it goes into watch mode
  5. Help me improve, because the only way I found it was that improvement I did not see any useless method it is well written
  6. no matter what place it does not work I removed all restriction of the same only let the tvt and the npc register does not always work that message should be aCis bug
  7. Hello, this event I was creating, but I do not know what else to do, I took a lot of it out and there is a lot to be removed, I can not finish it any more, so anyone who wants to finish is a good event... https://pastebin.com/raw/x9GwZugx
  8. At the end of the event, the players stay where they were before the event. The only error is that they can not reach the target of the opponents and show that message.
  9. when I remove this it is normal but when the event finishes the players stay in the same place player.getSavedLocation().set(player.getPosition());
  10. so players can attack themselves but when the event ends the players go to the spawn of the first one that registered public static int[] getOriginalCoordinates() { return _originalCoordinates; } public static void setOriginalCoordinates(int[] originalCoordinates) { _originalCoordinates = originalCoordinates; } public static void teleportPlayersToArena() { for (EventTeam team : _teams) { for (Player player : team.getParticipatedPlayers().values()) { if ((player != null)) { int[] playerCoordinates = new int[] { player.getPosition().getX(), player.getPosition().getY(), player.getPosition().getZ(), }; setOriginalCoordinates(playerCoordinates); new EventTeleporter(player, team.getCoordinates(), false); } } } } public static void teleportPlayersBack() { for (EventTeam team : _teams) { for (Player player : team.getParticipatedPlayers().values()) { if ((player != null)) new EventTeleporter(player, getOriginalCoordinates(), false); } } } so they can not, but when the event ends, they go to where they were. public static void teleportPlayersToArena() { for (EventTeam team : _teams) { for (Player player : team.getParticipatedPlayers().values()) { if ((player != null)) { player.getSavedLocation().set(player.getPosition()); new EventTeleporter(player, team.getCoordinates(), false); } } } } public static void teleportPlayersBack() { for (EventTeam team : _teams) { for (Player player : team.getParticipatedPlayers().values()) { final Location loc = player.getSavedLocation(); if (loc.equals(Location.DUMMY_LOC)) return; player.teleToLocation(loc, 0); player.getSavedLocation().clean(); } } }
  11. created this way public static int[] getOriginalCoordinates() { return _originalCoordinates; } public static void setOriginalCoordinates(int[] originalCoordinates) { _originalCoordinates = originalCoordinates; } public static void teleportPlayersToArena() { for (EventTeam team : _teams) { for (Player player : team.getParticipatedPlayers().values()) { if ((player != null)) { int[] playerCoordinates = new int[] { player.getSavedLocation().set(player.getPosition()); player.getPosition().getX(), player.getPosition().getY(), player.getPosition().getZ(), }; setOriginalCoordinates(playerCoordinates); new EventTeleporter(player, team.getCoordinates(), false); } } } } public static void teleportPlayersBack() { for (EventTeam team : _teams) { for (Player player : team.getParticipatedPlayers().values()) { if (player == null) return; Location loc = player.getSavedLocation(); if (loc.equals(Location.DUMMY_LOC)) return; player.teleToLocation(loc, 0); player.getSavedLocation().clean(); new EventTeleporter(player, getOriginalCoordinates(), false); } } } generated this error
  12. Hello, I wanted to know how I can save a coordinate, because on my tvt when the event ends I'm teleported to giran I would like to know how I can get where I was This instead of putting me where I was, leaves me in the same place after the event ends. int[] playerCoordinates = new int[] { player.getPosition().getX(), player.getPosition().getY(), player.getPosition().getZ(), player.getPosition().getHeading() }; new EventTeleporter(player, playerCoordinates, false);
  13. I created a check in ZoneManager for all town zones and it worked perfectly, this should work. ZoneManager.getInstance (). GetZoneById (i, TownZone.class) .setIsTWZone (true) I created this in ZoneManager public TownZone getTown (int townId) { for (TownZone temp: ZoneManager.getInstance (). getAllZones (TownZone.class)) { if (temp.getTownId () == townId) return temp; } return null; }