Jump to content
  • 0

Question

Posted

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.

8 answers to this question

Recommended Posts

  • 0
Posted

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..

  • 0
Posted (edited)

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
  • 0
Posted

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.

  • 0
Posted

 

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.

  • 0
Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..