Jump to content
  • 0

Help teleport


tatania

Question

hi people I have a problem with the teleport of nobles, the following happens ... when such is in Giran Castle siege and esoy in Goddart if I am not noble teleported to Giran Castle siege by, well that's fine but if I am Noble does not ... neither common nor teleport teleport DataPack nobles then I opened it and went to the l2jteon L2TeleporterInstance.java this on (net.sf.l2j.gameserver.model.actor.instance) and there modify the code as follows

private void doTeleport(L2PcInstance player, int val)

{

L2TeleportLocation list = TeleportLocationTable.getInstance().getTemplate(val);

if (list != null  && !player.isNoble())

{

// you cannot teleport to village that is in siege

if (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 (TownManager.getInstance().townHasCastleInSiege(list.getLocX(), list.getLocY()))

{

player.sendPacket(new SystemMessage(SystemMessageId.NO_PORT_THAT_IS_IN_SIGE));

the part that is red to add me to let me teleport but he does not like, please tell me if this well but what I did and that is the way to solve thanks ...

chronicle is DataPack l2jteon interlude./color]

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

how to make nose when in some castle siege nobles can be transported to cities like without the restriction of the siege that says you can not travel because the town is in siege ... understand me? I'm from Argentina my English is pretty bad sorry .. but that's ultimately why this portion of the code change that according to the experts say I should leave to travel to the villages to be noble

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.

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

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