Skip to content

Tvt Teleport

Featured Replies

Hello, I'm looking for help to set TvT teleport so the manager would teleport players back to the locations they were taken from, not back to Npc(Giran). l2jFrozen project.

Just open the navicat, go to database/Tvt open it and there you can make your change.

Just open the navicat, go to database/Tvt open it and there you can make your change.

Nop he want to use last location from players where they was before tvt and then tele them again there..

  • Author

Nop he want to use last location from players where they was before tvt and then tele them again there..

Exactly!

If im not wrong olympiad works like this

Simply save player position before teleport, ez. It's one code line.

 

On aCis

player.getSavedLocation().set(player.getX(), player.getY(), player.getZ());

And then you get the coords with

Location loc = player.getSavedLocation();

and teleport

player.teleToLocation(loc.getX(), loc.getY(), loc.getZ(), 0);

Edited by SweeTs

  • Author

If im not wrong olympiad works like this

Yes, I already were browsing through olly file, similar to the goal, only they're stating player one and player two. I could use a quick look on how it is done for All/everyone at once..

tnx for reply.

  • Author

 

Simply save player position before teleport, ez. It's one code line.

 

On aCis

player.getSavedLocation().set(player.getX(), player.getY(), player.getZ());

And then you get the coords with

Location loc = player.getSavedLocation();

and teleport

player.teleToLocation(loc.getX(), loc.getY(), loc.getZ(), 0);

Tnx for reply, I will give it a go.

Yes, I already were browsing through olly file, similar to the goal, only they're stating player one and player two. I could use a quick look on how it is done for All/everyone at once..

tnx for reply.

The same way, but you simply have to for loop all the participants to do it.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.