Jump to content
  • 0

Teleport to specific town


Question

Posted

Hello,

 

How can i make someone is teleported to a specific town only if he click on 'to village'.

 

If gm or other member res him, he won't go to this town.

 

if ((this instanceof L2PcInstance) && (((L2PcInstance) this).isvip()))
			                   {
			                       teleToLocation(Config.xvip,Config.yvip,Config.zvip);
			                   }

 

Actually, i have this code in method doRevive in L2Character.java but when the problem is the same. Still teleport by clicking to village or res by gm/player.

3 answers to this question

Recommended Posts

  • 0
Posted

gameserver\network\clientpackets\RequestRestartPoint.java

 

default:
				loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);

 

default:
				loc = new Location(x, y, z);

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