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?

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