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

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