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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..