Jump to content
  • 0

[Help] Teleport


Question

6 answers to this question

Recommended Posts

  • 0
Posted

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


×
×
  • Create New...