Jump to content
  • 0

Problem with TvT


Question

7 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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.

  • 0
Posted

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.

  • 0
Posted

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

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