Jump to content
  • 0

[Help - request] Teleport Java code



1 answer to this question

Recommended Posts

  • 0

You must add imports yourself

public final class CustomTeleport extends Quest {
private static final String qn = "CustomTeleport";

private static final int X = 0; // Coordinate X from spawn;
private static final int Y = 0; //   "	  "   Y  "     "  
private static final int Z = 0; //   "    "   Z  "     "
private static final int HEADING = 0; // Heading. Can be 0

private static final int NPC_ID = 0; // NPC which will be used as teleport

private static final String HTML_TELEPORTED = "<html><title>Custom Teleport</title><center><br>You are being teleported to YOUR_PLACE</center></body></html>";
private static final String HTML_LOWLEVEL = "<html><title>Custom Teleport</title><center><br>You must be at least level 79</center></body></html>

public CustomTeleport(int questId, String name, String descr) {
	super(questId, name, descr);

public String onFirstTalk(L2Npc npc, L2PcInstance player) {
	if(player.getQuestState(qn) == null)

	if(player.getLevel() >= 79) {
	} else 

public static void main(String...args) {
	new CustomTeleport(-1,qn,"Custom Teleport");

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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

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