Skip to content

Problem with TvT

Featured Replies

Hi,

i have a problem with TvT. At the end of the event, players don't go to village, they stay to coliseum :/

 

 

Can someone help me ?

Yes, your pack developers can help you.. First try to submit this bug to those who created this pack

Read section rules, otherwise noone will help you.

  • Author

Yes, your pack developers can help you.. First try to submit this bug to those who created this pack

 

In fact i search just the file that manage the teleport to village after event. If i find the file, i think i will be able to solve the problem.

I use L2J ( Freya )

Sorry for my english if i made a mistake

In fact i search just the file that manage the teleport to village after event. If i find the file, i think i will be able to solve the problem.

 

There isn't special file to teleport after TvT :P.

 

Where Tvt ends, add some codes to port back all participants. Check how the "admin_recall" is made, and apply it on a "for" loop.

 

for tvt_members
    port somewhere

 

If you want an hint, your tvt's end surely got a custom message "tvt is ended blabla". Just make a search via eclipse in your project with this custom message, you will find the good place where to port back players.

if you are using freya, go to your configs file on the gameserver side and find the info about the TVT, make sure you have all the setting right. if 1 little thing is wrong you will get errors or the event will not work right. I got errors as well here. fixed now and working great.

  • Author

	public static void stopFight()
{
	// Set state INACTIVATING
	setState(EventState.INACTIVATING);
	//Unspawn event npc
	unSpawnNpc();
	// Opens all doors specified in configs for tvt
	openDoors(Config.TVT_DOORS_IDS_TO_CLOSE);
	// Closes all doors specified in Configs for tvt
	closeDoors(Config.TVT_DOORS_IDS_TO_OPEN);

	// Iterate over all teams
	for (TvTEventTeam team : _teams)
	{
		for (L2PcInstance playerInstance : team.getParticipatedPlayers().values())
		{
			// Check for nullpointer
			if (playerInstance != null)
			{
				new TvTEventTeleporter(playerInstance, Config.TVT_EVENT_PARTICIPATION_NPC_COORDINATES, false, false);
			}
		}
	}

	// Cleanup of teams
	_teams[0].cleanMe();
	_teams[1].cleanMe();
	// Set state INACTIVE
	setState(EventState.INACTIVE);
	AntiFeedManager.getInstance().clear(AntiFeedManager.TVT_ID);
}

 

i found it ^^ and i solved the problem =) Thx for your help =)

sound great, not sure if anything i did was help so i can't take the credit. but if I did than this will help others. good luck :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.