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?

  • 0
Posted

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

 

should i edit "new Location" too?

Nop, just X,Y,Z of you new location :)

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