Jump to content
  • 0

Question

Posted

How do i make when io hit "To village" or when using /unstuck , SoE ...to teleport me only in Hunters Village and only there.No matter in what areea i am.Im using l2jfrozen [interlude]

6 answers to this question

Recommended Posts

  • 0
Posted

About to village

 

gameserver\network\clientpackets\RequestRestartPoint.java

 

find

 

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

 

and make it

 

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

  • 0
Posted

In L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/handler/usercommandhandlers/Escape.java

try
		{
			if(_activeChar.getKarma()>0 && Config.ALT_KARMA_TELEPORT_TO_FLORAN){
				_activeChar.teleToLocation(17836, 170178, -3507, true); // Floran
				return;
			}

			_activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town);
		}

replace that _activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town);

with that _activeChar.teleToLocation(x, y, z);

if you want to teleport the player to HV even if he got karma then change these lines too

if(_activeChar.getKarma()>0 && Config.ALT_KARMA_TELEPORT_TO_FLORAN){

_activeChar.teleToLocation(17836, 170178, -3507, true); // Floran

i think it should work perfectly

 

  • 0
Posted

About to village

 

gameserver\network\clientpackets\RequestRestartPoint.java

 

find

 

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

 

and make it

 

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

 

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

 

should i edit "new Location" too?

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