Jump to content
  • 0

Enable Teleport During Siege


Question

Posted

I cant see any shared code or guild here
How can i disable checks if X Town is in siege to Teleport
I mean to be able teleport all time even when is siege

4 answers to this question

Recommended Posts

  • 0
Posted

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;
	-		}

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