Jump to content
  • 0

Enable Teleport During Siege


Bobi

Question

4 answers to this question

Recommended Posts

  • 0

L2TeleporterInstnace.java

 

There is a check if siege is active. Drop it or adjust (put config if you want).

Link to comment
Share on other sites

  • 0

I hope that is right

 

L2TeleportLocation list = TeleportLocationTable.getInstance().getTemplate(val);
        -	if (list != null)
        +       if (list != null);
	-	{
	-		// you cannot teleport to village that is in siege
	-		if (SiegeManager.getSiege(list.getLocX(), list.getLocY(), list.getLocZ()) != null)
	-		{
	-			player.sendPacket(SystemMessageId.NO_PORT_THAT_IS_IN_SIGE);
	-			return;
	-		}
	-		else if (MapRegionTable.townHasCastleInSiege(list.getLocX(), list.getLocY()) && isInsideZone(ZoneId.TOWN))
	-		{
	-			player.sendPacket(SystemMessageId.NO_PORT_THAT_IS_IN_SIGE);
	-			return;
	-		}

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