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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...