Jump to content
  • 0

To Village


kidutz92

Question

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]

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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

 

should i edit "new Location" too?

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

Link to comment
Share on other sites

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