Skip to content

[Help] Teleport

Featured Replies

How make then you in combat mode, not in karma or flag, but IN COMBAT MODE.

You can't use TP?

  • Author

Don't working, only then i hiting mob i can teleport, but then mob hiting me i can teleport...

Don't working, only then i hiting mob i can teleport, but then mob hiting me i can teleport...

you prolly placed it in a wrong place.
  • Author
		L2TeleportLocation list = TeleportLocationTable.getInstance().getTemplate(val);
	if(list != null)
	{
		//you cannot teleport to village that is in siege
		if(!SiegeManager.getInstance().is_teleport_to_siege_allowed() && SiegeManager.getInstance().getSiege(list.getLocX(), list.getLocY(), list.getLocZ()) != null && !player.isNoble())
		{
			player.sendPacket(new SystemMessage(SystemMessageId.NO_PORT_THAT_IS_IN_SIGE));
			return;
		}
		else if(!SiegeManager.getInstance().is_teleport_to_siege_town_allowed() && TownManager.getInstance().townHasCastleInSiege(list.getLocX(), list.getLocY()) && !player.isNoble())
		{
			player.sendPacket(new SystemMessage(SystemMessageId.NO_PORT_THAT_IS_IN_SIGE));
			return;
		}
		else if(player.isInCombat())
		{
			player.sendMessage("Can't teleport while you are in combat!");
			player.sendPacket(new ExShowScreenMessage("Can't teleport while you are in combat!", 5000));
			return;
		}

Guest
This topic is now closed to further replies.

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.